2013-11-21 4 views
5

정적 qt를 만들려고했는데 mingw-make 중에 오류가 발생했습니다. 이것은 오류 텍스트입니다.Qt 5의 정적 컴파일이 참조로 mingw에서 실패합니다.

static\qhttpnetworkreply.o access\qhttpnetworkreply.cpp 
In file included from ..\..\mkspecs\win32-g++/qplatformdefs.h:56:0, 
      from access\qhttpnetworkreply_p.h:55, 
      from access\qhttpnetworkreply.cpp:42: 
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:8214: recipe for target '.obj/debug_static/qhttpnetworkreply.o' f ailed 
mingw32-make[3]: *** [.obj/debug_static/qhttpnetworkreply.o] Error 1 
mingw32-make[3]: Leaving directory 'C:/Qt/Qt5.1.1/5.1.1/Src/qtbase/src/network' 
Makefile:38: recipe for target 'debug-all' failed 
mingw32-make[2]: *** [debug-all] Error 2 
mingw32-make[2]: Leaving directory 'C:/Qt/Qt5.1.1/5.1.1/Src/qtbase/src/network' 
Makefile:182: recipe for target 'sub-network-make_first' failed 
mingw32-make[1]: *** [sub-network-make_first] Error 2 
mingw32-make[1]: Leaving directory 'C:/Qt/Qt5.1.1/5.1.1/Src/qtbase/src' 
Makefile:41: recipe for target 'sub-src-make_first' failed 
mingw32-make: *** [sub-src-make_first] Error 2 
C:\Qt\Qt5.1.1\5.1.1\Src\qtbase> 

나는 Windows 8.1을 사용합니다. 하나의 지침에서 단계를 수행합니다.

답변

8

MinGW에서 -ansi, -std = C++ 11, -std = C++ 03 및 -std = C++ 98 중 하나가 사용될 때 버그가 있습니다.

__CRT_INLINE off64_t lseek64 (int, off64_t, int); 
__CRT_INLINE off64_t lseek64 (int fd, off64_t offset, int whence) { 

__CRT_INLINE _off64_t lseek64 (int, _off64_t, int); 
__CRT_INLINE _off64_t lseek64 (int fd, _off64_t offset, int whence) { 
을 대체 /include/io.h 파일 {는 MinGW의 DIR}에서
관련 문제