我正在尝试使用此链接Qt - 4.7.3 - How to make static build中的信息构建QT静态版本。但我使用5.0.2,因为我开发了一些使用相同的应用程序。
我正在使用Windows 64位+ MINGW32和active-perl。
第一修正: 我不得不在文件qt-everywhere-opensource-src-5.0.2 \ qtbase \ configure.bat
中注释第45行(如果不存在%QTSRC%.gitignore goto sconf)我的配置命令看起来像这个..\qt-everywhere-opensource-src-5.0.2\configure -platform win32-g++ -static -release -no-opengl
。这很好地执行,没有任何错误。
问题:
现在我运行mingw32-make
。我得到一个错误,说
/ usr / bin / sh:c:/Qt/qt-everywhere-opensource-src-5.0.2/qt/qtbase/bin/qmake.exe:参数无效 mingw32-make [2]:*** [sub-tools-make_first]错误126
我已粘贴下面的整个错误日志。请问任何正文请指出我这个错误或解决方案的原因。
整个错误日志
C:\Qt\qt-everywhere-opensource-src-5.0.2\qt>mingw32-make
cd qtbase/ && ( test -e Makefile || C:/Qt/qt-everywhere-opensource-src-5.0.2/qt/qtbase/bin/qmake C:/Qt/qt-everywhere-ope
nsource-src-5.0.2/qt-everywhere-opensource-src-5.0.2/qtbase/qtbase.pro -o Makefile ) && mingw32-make -f Makefile
mingw32-make[1]: Entering directory `c:/Qt/qt-everywhere-opensource-src-5.0.2/qt/qtbase'
cd src/ && ( test -e Makefile || C:/Qt/qt-everywhere-opensource-src-5.0.2/qt/qtbase/bin/qmake C:/Qt/qt-everywhere-openso
urce-src-5.0.2/qt-everywhere-opensource-src-5.0.2/qtbase/src/src.pro -o Makefile ) && d:/tools/Dev-Cpp/MinGW32/bin/mingw
32-make -f Makefile
mingw32-make[2]: Entering directory `c:/Qt/qt-everywhere-opensource-src-5.0.2/qt/qtbase/src'
cd tools/ && ( test -e Makefile || c:/Qt/qt-everywhere-opensource-src-5.0.2/qt/qtbase/bin/qmake.exe C:/Qt/qt-everywhere-
opensource-src-5.0.2/qt-everywhere-opensource-src-5.0.2/qtbase/src/tools/tools.pro -o Makefile ) && d:/tools/Dev-Cpp/Min
GW32/bin/mingw32-make -f Makefile
/usr/bin/sh: c:/Qt/qt-everywhere-opensource-src-5.0.2/qt/qtbase/bin/qmake.exe: Invalid argument
mingw32-make[2]: *** [sub-tools-make_first] Error 126
mingw32-make[2]: Leaving directory `c:/Qt/qt-everywhere-opensource-src-5.0.2/qt/qtbase/src'
mingw32-make[1]: *** [sub-src-make_first] Error 2
mingw32-make[1]: Leaving directory `c:/Qt/qt-everywhere-opensource-src-5.0.2/qt/qtbase'
mingw32-make: *** [module-qtbase-make_first] Error 2