Building qt 4.7.4 statically unsuccessful
-
Hello all.
I have been trying to build qt on cygwin using the following command in the Path/to/qt folder:
./configure -static -fast -release -confirm-license -opensource -platform win32-msvc2008
I followed this guide: http://doc.qt.nokia.com/4.1/deployment-windows.html
This is what I receive at the end:
Creating qmake. Please Wait...
$QMAKE_CC -c -o project.o -nologo -Zm200 -Zc:wchar_t- -DQMAKE_OPENSOURCE_EDITION
-I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -Igenera
tors/symbian -I/cygdrive/d/qt/include -I/cygdrive/d/qt/include/QtCore -I
/cygdrive/d/qt/src/corelib/global -I/cygdrive/d/qt/src/corelib/xml -I/cy
gdrive/d/qt/tools/shared -DQT_NO_PCRE -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DQLIBRARYINFO_EPOCROOT -DQT_NO_TEXTCODEC -
DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/cygdrive/
d/qt/mkspecs/win32-msvc2008 -DHAVE_QCONFIG_CPP -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT project.cpp/bin/sh: -c: command not found
make: *** [project.o] Error 127Can someone tell me what is wrong with it?
Thanks
-
If you go to the "download page":http://qt.nokia.com/downloads/downloads#qt-lib you have three choices. The .zip achive for Wndows, the .tar.gz archive for linux and gitorious. Even so there is no obvious reason at first glance you should use .zip archive for windows. Presumably merely the line endings are different. I am not sure, if this make really much of a difference (besides the size of the archive). Because in both you have a configure.exe for windows configuration.
I never used a gitorious clone yet. Probably you have the same information in there, but the archives provides it conveniently packed together.
From your error message it looks like you have renamed one the cmd-files for linux into a bat for windows. This does not work. You need to use the configure.exe, which does the thing for windows.