Статическая компиляция Qt 5 терпит неудачу под mingw со ссылкой на off64 t


Я попытался сделать статический qt, и получил ошибку во время mingw-make. Это текст ошибки.

staticqhttpnetworkreply.o accessqhttpnetworkreply.cpp
In file included from ....mkspecswin32-g++/qplatformdefs.h:56:0,
             from accessqhttpnetworkreply_p.h:55,
             from accessqhttpnetworkreply.cpp:42:
c:mingwincludeio.h:301:14: error: 'off64_t' does not name a type
__CRT_INLINE off64_t lseek64 (int, off64_t, int);
           ^
c:mingwincludeio.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:QtQt5.1.15.1.1Srcqtbase>

Я использую windows 8.1. Я следую шагам из одной инструкции.

1 5

1 ответ:

Это какая-то ошибка в MinGW, когда используется один из-ansi,- std=c++11,- std=c++03 и-std=c++98. в файле {MinGW dir} / include / io.h заменить

__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) {