在Win32上构建QT 5.5.1源代码的错误

时间:2015-10-18 11:30:06

标签: qt static mingw

我正在尝试在win32上构建新版本5.5.1 之后

configure -static -release -opensource -qt-sql-sqlite –platform win32-g++ -opengl desktop

MinGW-make 

一分钟后:

c:\mingw\include\math.h: In function 'float hypotf(float, float)':
c:\mingw\include\math.h:635:30: error: '_hypot' was not declared in this scope
 { return (float)(_hypot (x, y)); }
                              ^
Makefile.Release:316: recipe for target '.obj/release/moc.o' failed
mingw32-make[4]: *** [.obj/release/moc.o] Error 1
mingw32-make[4]: Leaving directory 'c:/Qt/5.5/qt-everywhere-opensource-src-5.5.1
/qtbase/src/tools/moc'
Makefile:34: recipe for target 'release' failed
mingw32-make[3]: *** [release] Error 2
mingw32-make[3]: Leaving directory 'c:/Qt/5.5/qt-everywhere-opensource-src-5.5.1
/qtbase/src/tools/moc'
Makefile:86: recipe for target 'sub-moc-make_first' failed
mingw32-make[2]: *** [sub-moc-make_first] Error 2
mingw32-make[2]: Leaving directory 'c:/Qt/5.5/qt-everywhere-opensource-src-5.5.1
/qtbase/src'
Makefile:41: recipe for target 'sub-src-make_first' failed
mingw32-make[1]: *** [sub-src-make_first] Error 2
mingw32-make[1]: Leaving directory 'c:/Qt/5.5/qt-everywhere-opensource-src-5.5.1
/qtbase'
Makefile:68: recipe for target 'module-qtbase-make_first' failed
mingw32-make: *** [module-qtbase-make_first] Error 2

我读到可能执行构造msvc或尝试mingw64但是我需要在Windows 32上使用平台win32-g ++ 你真的不能用win32和win32-g ++平台构建这个版本? 如有任何建议,欢迎任何帮助。

解........................................ .................................................. .................................................. .....

您可以使用MinGW-64项目编译QT 5.5.1。 该项目也适用于32位。

无法使用“典型”版本极简主义进行编译,也无法更改库。 MinGW安装管理器不提供MinGW-64项目,我不明白这一点,并且不喜欢我作为mingw等替代品的倡导者,我总是可以从这位经理那里下载所有我需要的东西,现在这位经理......应该改进。

在MinGW-64项目的所有程序中安装MinGW-64项目后运行终端

cd pathQTconfigure
configure -static -release -opensource –platform win32-g++ -opengl desktop
mingw-make

感谢所有人:)

0 个答案:

没有答案