By checking http://wiki.openttd.org/Compiling_on_Windows_using_MinGW,
I realized that you should first start your msys.bat at ${MinGW_PATH}\msys\1.0\msys.bat( mine is C:\MinGW\msys\1.0\msys.bat ).
There you can then do whatever you likes to do.
./configure
make
make install
...
Answer from langdead on Stack OverflowBy checking http://wiki.openttd.org/Compiling_on_Windows_using_MinGW,
I realized that you should first start your msys.bat at ${MinGW_PATH}\msys\1.0\msys.bat( mine is C:\MinGW\msys\1.0\msys.bat ).
There you can then do whatever you likes to do.
./configure
make
make install
...
Uhm...I just found that running the msys.bat file directly (open the msys directory and MANUALLY start msys.) works as well. Once using the Msys console, change directories to the file you are trying to config/install and you can use the "./" prefixed commands there...
So effin annoying....
Thread: [Mingw-msys] ./configure | MinGW - Minimalist GNU for Windows
cmd - How to run ./configure on windows - Stack Overflow
compiling - Can not run configure command: "No such file or directory" - Unix & Linux Stack Exchange
bash - "Command not found" errors in configure script how to diagnose? - Stack Overflow
Videos
If a software project is set up to be built using autoconf, that tool generates a script canonically called configure. It queries the system for various parameters that are subsequently used in the build, and is specific to the software package to be built. Different software projects have different configure scripts. They are all called configure, but their contents are not the same.
So, to actually build such a software project once that script was set up (usually done by the maintainers when packaging the source tarball for distribution), you call:
tar xzf <tarball>.gz # or xjf <tarball>.bz2 or whatever
cd <sourcedir> # the one you just untarred
./configure
make
make install
Note the prefix ./, which means "located in this directory" (i.e. the top directory of that project's source tree).
Actually, the better procedure is the so-called "out-of-tree build", when you set up a different directory for the binaries to be built in, so the source tree remains unmodified:
tar xzf <tarball>.gz # or xjf <tarball>.bz2 or whatever
mkdir builddir
cd builddir
../<sourcedir>/configure
make
make install
So, there is supposed to be no configure executable in your PATH, you are supposed to call the script of that name from the source tree you are trying to build from.
If I correctly understood...
Configure is not an application that should be installed on your system, but script that should be delivered with source code to prepare for make command. File named configure should be in the main directory of source code.
If the file is called configure.ac,
do $> autoconf
Depends: M4, Automake
If you're not sure what to do,
try $> cat readme
They must mean that you use "autoconf" to generate an executable "configure" file.
So the order is:
$> autoconf
$> ./configure
$> make
$> make install
The failsafe for generating a configure script is autoreconf -i, which not only takes care of calling autoconf itself, but also a host of other tools that may be needed.
I've been using Linux for some time now, and I'd like to start compiling the programs I use myself (just to test it and understanding how things work).
So I downloaded the source code of JuK (version 21.04), unzipped it and tried to run ./configure in its directory, which outputs the message 'command not known'.
I've got GCC installed, do I need anything else? The README doesn't provide any information for compiling it myself.
I'm installing a C library dependency using configure.ac. Here's the branch in question, named "subtrees":
https://github.com/mskilab/bambi/tree/subtrees
This is to be installed with cmake:
# Minimum of autoconfg 2.69
AC_PREREQ(2.69)
AC_INIT([my_library], [0.0.1])
AC_LANG(C++)
AC_REQUIRE_CPP
AC_PROG_CXX
AC_GNU_SOURCE
AC_SUBST([PKG_CXXFLAGS],["-std=c++11"])
base_dir=$(pwd)
## install https://github.com/madler/zlib
AC_MSG_NOTICE([begin build])
$(
cd "src/zlib"; \
mkdir -p "build"; \
cd "build"; \
cmake .. ; \
make;
)
AC_MSG_NOTICE([build finished])
I run autoreconf -f to get a configure file. Upon installation, I get the following error:
configure: begin build ./configure: line 3212: --: command not found configure: build finished
Heree are the exact lines sed -ne '3205,3220p' configure:
$as_echo "$as_me: Building zlib library" >&6;}
$(
cd "src/zlib"; \
mkdir -p "build"; \
cd "build"; \
cmake .. ; \
make;
)
{ $as_echo "$as_me:${as_lineno-$LINENO}: zlib build complete" >&5
$as_echo "$as_me: zlib build complete" >&6;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: Building ck library" >&5
$as_echo "$as_me: Building ck library" >&6;}
I'm confused how to de-bug ./configure: line 3212: --: command not found in this case. The source code in question in is /src.
(1) What does this error mean?
(2) How could I go about debugging this?
configure is normally a (generated) shell script which is packaged in Unix-based applications and is used to detect certain machine settings and set up needed files for make to do its job.
Look for a configure.bat or a file called configure in the QT directory and run it.
I have a shortcut to command window under:
CopyStart > All Programs > Qt 5.3.0 > mingw > Qt 5.3.0 for Desktop
It starts Windows command window with parameters:
CopyC:\Windows\System32\cmd.exe /A /Q /K D:\Programowanie\Qt5.3\5.3\mingw482_32\bin\qtenv2.bat