N
N
Nikolay Nozdrin-Plotnitsky2014-08-06 13:49:48
Qt
Nikolay Nozdrin-Plotnitsky, 2014-08-06 13:49:48

How to fix error when compiling Qt5.3.1 library?

I want to compile the Qt5.3.1 library, but it gives an error:

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

Did everything according to this article.
Environment Variables:
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%

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

On the Internet, they offer to either download a new version of Qt, or run a script with automatic installation.
Qt5.3.1 is the latest version of Qt. But the automatic script will not work, because I am doing this on a working computer without administrative rights!
Any ideas?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
EXL, 2014-08-06
@EXL

Any ideas?

There is.
Firstly, at the very first request , the solution to this problem is googled .
Second, Qt no longer uses MinGW, but uses MinGW-w64 (32 and 64 bit builds). Therefore, MinGW support is secondary, hence such compilation errors come out. I recommend that you install MinGW-w64.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question