C++ 静态构建Qt5.1

C++ 静态构建Qt5.1,c++,qt,static,C++,Qt,Static,我试图编译Qt5.1源代码,以便能够进行静态链接。 我的配置是: configure -static -release -platform win32-msvc2010 -nomake tests -nomake examples -opengl desktop 问题是生成失败,错误是Qt5v8.lib不存在 cd qml\ && ( if not exist Makefile C:\Qt5.1\5.1.0\msvc2010_static\qtbase \bin

我试图编译Qt5.1源代码,以便能够进行静态链接。 我的配置是:

configure -static -release -platform win32-msvc2010 -nomake tests -nomake examples -opengl desktop
问题是生成失败,错误是Qt5v8.lib不存在

        cd qml\ && ( if not exist Makefile C:\Qt5.1\5.1.0\msvc2010_static\qtbase
\bin\qmake C:\Qt5.1\5.1.0\msvc2010_static\qtdeclarative\src\qml\qml.pro -o Makef
ile ) && C:\Qt5.1\5.1.0\msvc2010_static\jom.exe -f Makefile
        C:\Qt5.1\5.1.0\msvc2010_static\jom.exe -f Makefile.Release
Error: dependent 'C:\Qt5.1\5.1.0\msvc2010_static\qtbase\lib\Qt5V8.lib' does not
exist.
jom: C:\Qt5.1\5.1.0\msvc2010_static\qtdeclarative\src\qml\Makefile [release] Err
or 2
jom: C:\Qt5.1\5.1.0\msvc2010_static\qtdeclarative\src\Makefile [sub-qml-make_fir
st-ordered] Error 2
jom: C:\Qt5.1\5.1.0\msvc2010_static\qtdeclarative\Makefile [sub-src-make_first]
Error 2
jom: C:\Qt5.1\5.1.0\msvc2010_static\Makefile [module-qtdeclarative-make_first] E
rror 2

我用这些配置构建了Qt5.1,它对我来说运行良好

configure -release -platform win32-msvc2012  -nomake demos -nomake examples -nomake tests -opengl desktop -qt-sql-sqlite -audio-backend -static -opensource -ltcg 

以下是我作为临时解决方案所做的,我从预编译的Qt包中复制了文件
Qt5v8.lib
,并将其放入
\qtbas\lib
中,然后再次运行jom命令,使其编译成功。

感谢您的回复,我尝试了相同的配置,但不起作用,除了我的平台是win32-msvc2010,我还尝试了win32-g++并使用了minGW32编译器。我做了同样的事情。