Qt5.3.1编译失败

时间:2014-08-06 10:27:06

标签: qt mingw

我想在Qt上编译静态应用程序。但编译失败错误:

c:\mingw\include\io.h:301:14: error: 'off64_t' does not name a type
 __CRT_INLINE off64_t lseek64 (int, off64_t, int);
              ^
c:\mingw\include\io.h:302:14: error: 'off64_t' does not name a type
 __CRT_INLINE off64_t lseek64 (int fd, off64_t offset, int whence) {
              ^
Makefile.Debug:8007: recipe for target '.obj/debug/qhttpnetworkreply.o' failed
mingw32-make[3]: *** [.obj/debug/qhttpnetworkreply.o] Error 1
mingw32-make[3]: Leaving directory 'd:/Qt/Qt5.3.1/5.3/Src/qtbase/src/network'
Makefile:38: recipe for target 'debug-all' failed
mingw32-make[2]: *** [debug-all] Error 2
mingw32-make[2]: Leaving directory 'd:/Qt/Qt5.3.1/5.3/Src/qtbase/src/network'
Makefile:208: recipe for target 'sub-network-make_first' failed
mingw32-make[1]: *** [sub-network-make_first] Error 2
mingw32-make[1]: Leaving directory 'd:/Qt/Qt5.3.1/5.3/Src/qtbase/src'
Makefile:41: recipe for target 'sub-src-make_first' failed
mingw32-make: *** [sub-src-make_first] Error 2

设置环境:

SET QTDIR=D:\Qt\Qt5.1.0\5.1.0\Src\qtbase
SET QMAKESPEC=win32-g++
SET PATH=C:\Python27;C:\Perl\bin;D:\Qt\Qt5.1.0\5.1.0\mingw48_3 2\bin;D:\Qt\Qt5.1.0\5.1.0\Src\qtbase\bin;%PATH%

configure.exe -debug-and-release -opensource -c++11 -static -opengl desktop -no-angle -no-vcproj

This link not work for me因为我需要在工作时编译(而不是管理员权限)。

有什么想法?

0 个答案:

没有答案