xiaose

Qt5 compiling error at qhttpnetworkreply

Aug 3rd, 2014
328
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 4.80 KB | None | 0 0
  1. -----------------
  2. my BAT script:
  3. -----------------
  4.  
  5. SET QTDIR=C:\Qt5
  6. SET MINGWDIR=C:\MinGW
  7. SET QMAKESPEC=win32-g++
  8. SET PATH=C:\Qt5\bin;C:\MinGW\bin;C:\Python34\;C:\Python34\Scripts;C:\Perl\site\bin;C:\Perl\bin;C:\Windows\System32;C:\Python34;C:\Python34\Scripts;C:\Perl\site\bin;C:\Perl\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\
  9.  
  10. configure -debug-and-release -static -nomake examples -platform win32-g++
  11.  
  12. mingw32-make sub-src
  13.  
  14. -----------------
  15. output:
  16. -----------------
  17. Microsoft Windows [Version 6.1.7600]
  18. C:\Users\denis>cd /Qt5
  19. C:\Qt5>run.bat
  20. C:\Qt5>SET QTDIR=C:\Qt5
  21. C:\Qt5>SET MINGWDIR=C:\MinGW
  22. C:\Qt5>SET QMAKESPEC=win32-g++
  23. C:\Qt5>SET PATH=C:\Qt5\bin;C:\MinGW\bin;C:\Python34\;C:\Python34\Scripts;C:\Perl\site\bin;C:\Perl\ ...
  24. C:\Qt5>configure -debug-and-release -static -nomake examples -platform win32-g++
  25.  
  26. ...
  27. ...
  28. ...
  29.  
  30. Creating qmake...
  31.  
  32. ...
  33. ...
  34. ...
  35.  
  36. g++ -c -include .pch\debug\qt_pch.h -pipe -fno-keep-inline-dllexport -msse2 -mstackrealign -mfpmath=sse -g -std=c++0x -fno-exceptions -frtti -Wall -Wextra -DUNICODE -DQT_NO_USING_N
  37. AMESPACE -DQT_BUILD_NETWORK_LIB -DQT_BUILDING_QT -D_CRT_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDE
  38. R -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_NO_EXCEPTIONS -DQT_CORE_LIB -I. -I"..\..\include" -I"..\..\include\QtNetwork" -I"..\..\include\QtNetwork\5.3
  39. .1" -I"..\..\include\QtNetwork\5.3.1\QtNetwork" -I"tmp" -I"..\3rdparty\zlib" -I"kernel" -I"..\..\include\QtCore\5.3.1" -I"..\..\include\QtCore\5.3.1\QtCore" -I"..\..\include\QtCore
  40. " -I".moc\debug" -I"..\..\mkspecs\win32-g++" -o .obj\debug\qhttpnetworkreply.o access\qhttpnetworkreply.cpp
  41. In file included from ..\..\mkspecs\win32-g++/qplatformdefs.h:56:0,
  42.                  from access\qhttpnetworkreply_p.h:55,
  43.                  from access\qhttpnetworkreply.cpp:42:
  44. c:\mingw\include\io.h:301:14: error: 'off64_t' does not name a type
  45.  __CRT_INLINE off64_t lseek64 (int, off64_t, int);
  46.               ^
  47. c:\mingw\include\io.h:302:14: error: 'off64_t' does not name a type
  48.  __CRT_INLINE off64_t lseek64 (int fd, off64_t offset, int whence) {
  49.               ^
  50. Makefile.Debug:8007: recipe for target '.obj/debug/qhttpnetworkreply.o' failed
  51. mingw32-make[3]: *** [.obj/debug/qhttpnetworkreply.o] Error 1
  52. mingw32-make[3]: Leaving directory 'C:/Qt5/src/network'
  53. Makefile:38: recipe for target 'debug-all' failed
  54. mingw32-make[2]: *** [debug-all] Error 2
  55. mingw32-make[2]: Leaving directory 'C:/Qt5/src/network'
  56. Makefile:208: recipe for target 'sub-network-make_first' failed
  57. mingw32-make[1]: *** [sub-network-make_first] Error 2
  58. mingw32-make[1]: Leaving directory 'C:/Qt5/src'
  59. Makefile:38: recipe for target 'sub-src' failed
  60. mingw32-make: *** [sub-src] Error 2
  61.  
  62. -----------------
  63. of another output when I try to compile only release
  64. -----------------
  65.  
  66. g++ -c -include .pch\release\qt_pch.h -pipe -fno-keep-inline-dllexport -msse2 -mstackrealign -mfpmath=sse -O2 -std=c++0x -fno-exceptions -frtti -Wall -Wextra -DUNICODE -DQT_NO_USIN
  67. G_NAMESPACE -DQT_BUILD_NETWORK_LIB -DQT_BUILDING_QT -D_CRT_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUI
  68. LDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_CORE_LIB -I. -I"..\..\include" -I"..\..\include\QtNetwork" -I"..\..\incl
  69. ude\QtNetwork\5.3.1" -I"..\..\include\QtNetwork\5.3.1\QtNetwork" -I"tmp" -I"..\3rdparty\zlib" -I"kernel" -I"..\..\include\QtCore\5.3.1" -I"..\..\include\QtCore\5.3.1\QtCore" -I"..\
  70. ..\include\QtCore" -I".moc\release" -I"..\..\mkspecs\win32-g++" -o .obj\release\qhttpnetworkreply.o access\qhttpnetworkreply.cpp
  71. In file included from ..\..\mkspecs\win32-g++/qplatformdefs.h:56:0,
  72.                  from access\qhttpnetworkreply_p.h:55,
  73.                  from access\qhttpnetworkreply.cpp:42:
  74. c:\mingw\include\io.h:301:14: error: 'off64_t' does not name a type
  75.  __CRT_INLINE off64_t lseek64 (int, off64_t, int);
  76.               ^
  77. c:\mingw\include\io.h:302:14: error: 'off64_t' does not name a type
  78.  __CRT_INLINE off64_t lseek64 (int fd, off64_t offset, int whence) {
  79.               ^
  80. Makefile.Release:8007: recipe for target '.obj/release/qhttpnetworkreply.o' failed
  81. mingw32-make[3]: *** [.obj/release/qhttpnetworkreply.o] Error 1
  82. mingw32-make[3]: Leaving directory 'C:/Qt5/src/network'
  83. Makefile:34: recipe for target 'release' failed
  84. mingw32-make[2]: *** [release] Error 2
  85. mingw32-make[2]: Leaving directory 'C:/Qt5/src/network'
  86. Makefile:208: recipe for target 'sub-network-make_first' failed
  87. mingw32-make[1]: *** [sub-network-make_first] Error 2
  88. mingw32-make[1]: Leaving directory 'C:/Qt5/src'
  89. Makefile:38: recipe for target 'sub-src' failed
  90. mingw32-make: *** [sub-src] Error 2
Advertisement
Add Comment
Please, Sign In to add comment