Compiling Qt-5.1.0 failed on win7 x32
-
my system is win7 x32
my compiler is mingw-build posix dw2 32bit compiler version 4.8.1 rev1
and I installed gmplib, zlib, nasm, yasm, openssl, libpng, libpjeg, icu, all of them are the newest version
also I have installed ruby-2.0.0, perl-5.16.2, python-2.7.5 in my system
I downloaded Qt-5.1.0 official release this morning and tried but failed. The error message is like this:
mingw32-make[6]: Entering directory 'd:/Downloads/Software/Develop/QT/qt-everywhere-opensource-src-5.1.0/qtbase/src/plugins/platforms/offscreen'
g++ -shared -Wl,--out-implib,D:/Downloads/Software/Develop/QT/qt-everywhere-opensource-src-5.1.0/qtbase/plugins/platforms/libqoffscreend.a -o ../../../../plugins/platforms/qoffscreend.dll .obj/debug-shared/main.o .obj/debug-shared/qoffscreenintegration.o .obj/debug-shared/qoffscreenwindow.o .obj/debug-shared/qoffscreencommon.o .obj/debug-shared/qoffscreenintegration_dummy.o -LD:/Downloads/Software/Develop/QT/qt-everywhere-opensource-src-5.1.0/qtbase/lib -lQt5PlatformSupportd -lglu32 -lopengl32 -lgdi32 -luser32 -lQt5Guid -lQt5Cored
.obj/debug-shared/qoffscreenintegration.o: In functionZN18QBasicFontDatabaseC1Ev': d:\Downloads\Software\Develop\QT\qt-everywhere-opensource-src-5.1.0\qtbase\src\plugins\platforms\offscreen/../../../../src/platformsupport/fontdatabases/basic/qbasicfontdatabase_p.h:57: undefined reference to
vtable for QBasicFontDatabase'
collect2.exe: error: ld returned 1 exit status
Makefile.Debug:85: recipe for target '../../../../plugins/platforms/qoffscreend.dll' failed
mingw32-make[6]: *** [../../../../plugins/platforms/qoffscreend.dll] Error 1
mingw32-make[6]: Leaving directory 'd:/Downloads/Software/Develop/QT/qt-everywhere-opensource-src-5.1.0/qtbase/src/plugins/platforms/offscreen'
Makefile:38: recipe for target 'debug-all' failed
mingw32-make[5]: *** [debug-all] Error 2
mingw32-make[5]: Leaving directory 'd:/Downloads/Software/Develop/QT/qt-everywhere-opensource-src-5.1.0/qtbase/src/plugins/platforms/offscreen'
Makefile:65: recipe for target 'sub-offscreen-make_first' failed
mingw32-make[4]: *** [sub-offscreen-make_first] Error 2
mingw32-make[4]: Leaving directory 'd:/Downloads/Software/Develop/QT/qt-everywhere-opensource-src-5.1.0/qtbase/src/plugins/platforms'
Makefile:121: recipe for target 'sub-platforms-make_first' failed
mingw32-make[3]: *** [sub-platforms-make_first] Error 2
mingw32-make[3]: Leaving directory 'd:/Downloads/Software/Develop/QT/qt-everywhere-opensource-src-5.1.0/qtbase/src/plugins'
Makefile:497: recipe for target 'sub-plugins-make_first' failed
mingw32-make[2]: *** [sub-plugins-make_first] Error 2
mingw32-make[2]: Leaving directory 'd:/Downloads/Software/Develop/QT/qt-everywhere-opensource-src-5.1.0/qtbase/src'
Makefile:40: recipe for target 'sub-src-make_first' failed
mingw32-make[1]: *** [sub-src-make_first] Error 2
mingw32-make[1]: Leaving directory 'd:/Downloads/Software/Develop/QT/qt-everywhere-opensource-src-5.1.0/qtbase'
Makefile:56: recipe for target 'module-qtbase-make_first' failed
mingw32-make: *** [module-qtbase-make_first] Error 2the mistake seems like some function was not compiled into the lib, I checked the Makefile, but I could not find any mistake.
Can any one help me?
-
Now I find the solution, if I use msys console, it would happen, if I use cmd console, it would not happen