Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Building Qt 5.4 statically on Windows 7
Vivvar last edited by
First I open Qt 5.4 command prompt , then cd the the Src location.
the command which I am using to configure is this
"configure -static -platform win32-g++ -prefix "C:\Qt\Qt5.4.0_Static" -debug-and-release -opensource -confirm-license -nomake examples -nomake tests -nomake tools -opengl desktop -no-angle -qt-sql-sqlite -make libs -qt-zlib -qt-pcre -qt-libpng -qt-libjpeg -qt-freetype -strip"
This got executed successfully.
after this when I enter mingw32-make , the error I get is as follows,
cd qtbase/ && ( test -e Makefile || C:/Qt/Qt5.4.0/5.4/Src/qtbase/bin/qmake C:/Qt
/Qt5.4.0/5.4/Src/qtbase/qtbase.pro -o Makefile ) && mingw32-make -f Makefile
mingw32-make: Entering directory 'c:/Qt/Qt5.4.0/5.4/Src/qtbase'
cd src/ && ( test -e Makefile || c:/Qt/Qt5.4.0/5.4/Src/qtbase/bin/qmake.exe C:/Q
t/Qt5.4.0/5.4/Src/qtbase/src/src.pro -o Makefile ) && c:/Qt/Qt5.4.0/Tools/mingw4
91_32/bin/mingw32-make -f Makefile
/usr/bin/sh: c:/Qt/Qt5.4.0/Tools/mingw491_32/bin/mingw32-make: Invalid argument
Makefile:41: recipe for target 'sub-src-make_first' failed
mingw32-make: *** [sub-src-make_first] Error 126
mingw32-make: Leaving directory 'c:/Qt/Qt5.4.0/5.4/Src/qtbase'
makefile:65: recipe for target 'module-qtbase-make_first' failed
mingw32-make: *** [module-qtbase-make_first] Error 2
Now , a work around for this(which i feel) is cd to qtbase directory , and run mingw32-make . In this as well I come across the above error but directing to some sub folder within this .
Again I do cd to that sub folder, I end up getting the same error.
But what I expect is when I enter mingw32-make in which ever folder , it should get compiled .
But it is not happening .
It has become really frustrating now .