所以我试图建立Qt Static 5.3.2。我在http://qt-project.org/wiki/Building_Qt_Desktop_for_Windows_with_MSVC找到的windowspowershell脚本自动构建了构建版本。我收到的错误我并不完全理解,因为我已经在源代码中验证了以下文件的存在,并且我已经检查过它们是否已被复制到正确的目录中,并且它们就在那里。
copy /y C:\Qt\Static\src\qt-everywhere-opensource-src-5.3.2\qtbase\examples\widgets\widgets.pro C:\Qt\Static\5.3.2\examp
les\widgets
1 file(s) copied.
mingw32-make[3]: Target 'install' not remade because of errors.
mingw32-make[3]: Leaving directory 'C:/Qt/Static/src/qt-everywhere-opensource-src-5.3.2/qtbase/examples/widgets'
Makefile:415: recipe for target 'sub-widgets-install_subtargets' failed
mingw32-make[2]: *** [sub-widgets-install_subtargets] Error 2
copy /y C:\Qt\Static\src\qt-everywhere-opensource-src-5.3.2\qtbase\examples\README C:\Qt\Static\5.3.2\examples
1 file(s) copied.
mingw32-make[2]: Target 'install' not remade because of errors.
mingw32-make[2]: Leaving directory 'C:/Qt/Static/src/qt-everywhere-opensource-src-5.3.2/qtbase/examples'
Makefile:78: recipe for target 'sub-examples-install_subtargets' failed
mingw32-make[1]: *** [sub-examples-install_subtargets] Error 2
xcopy /s /q /y /i C:\Qt\Static\src\qt-everywhere-opensource-src-5.3.2\qtbase\doc\global C:\Qt\Static\5.3.2\doc\global
59 File(s) copied
mingw32-make[1]: Target 'install' not remade because of errors.
mingw32-make[1]: Leaving directory 'C:/Qt/Static/src/qt-everywhere-opensource-src-5.3.2/qtbase'
Makefile:75: recipe for target 'module-qtbase-install_subtargets' failed
mingw32-make: *** [module-qtbase-install_subtargets] Error 2
mingw32-make: Target 'install' not remade because of errors.
答案 0 :(得分:0)
尝试输出powershell脚本输出(。\ windows-build-qt-static.ps1> out.txt)并查找包含错误信息的字符串,以获得更多的了解。
我遇到了同样的最终错误,并且在检查脚本输出时,我发现在编译过程中使用了WATCOM标头。
...
Environment:
INCLUDE=
C:\WATCOM\H
C:\WATCOM\H\NT
C:\WATCOM\H\NT\DIRECTX
C:\WATCOM\H\NT\DDK
...
问题的根源是设置为WATCOM编译器标头的INCLUDE环境变量
INCLUDE
C:\WATCOM\H;C:\WATCOM\H\NT;C:\WATCOM\H\NT\DIRECTX;C:\WATCOM\H\NT\DDK
我已对其进行修改以指向MinGw标头
INCLUDE
C:\Qt\Qt5.3.1\Tools\mingw482_32\i686-w64-mingw32\include;C:\Qt\Qt5.3.1\Tools\mingw482_32\include
这为我解决了问题。
这可能不是您的错误,但重点是,您应该查看脚本输出。
答案 1 :(得分:-1)
可能是您没有安装ActivePerl或Python。试试吧。它帮助了我。