Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Building qt 4.7.4 statically unsuccessful
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 127
Can someone tell me what is wrong with it?
koahnig last edited by
Welcome to this forum
I guess that you have downloaded the wrong zip-file. Even so, I am not sure if your error message will be possible then.
You need to have the sources in the compressed archive with extension .zip
I should add that with the same source file, cloned from the repository unchanged, I could compile it in linux.
koahnig last edited by
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.
I have figured it out in the end. The problem was cygwin.
I am now using VS2008 command prompt to compile qt.
I used the same command and I took the -fast config option off because that was giving me errors as well.
Thanks for the help