Compiling Qt 5 on Windows 7



  • Greetings Trolls,

    I'm feeling adventurous and I'm compiling Qt 5 with mingw and gcc 4.6.

    I follow this guide: http://developer.qt.nokia.com/wiki/Building_Qt_5_from_Git

    I have the following error:
    @C:\dev\qt\qt5\qtsvg\src\svg>qmake
    Project MESSAGE: Warning: unknown QT module: widgets
    Project MESSAGE: Warning: unknown QT module: widgets
    Project MESSAGE: Warning: unknown QT module: gui
    Project MESSAGE: Warning: unknown QT module: core
    Project MESSAGE: Warning: unknown QT module: widgets
    Project MESSAGE: Warning: unknown QT module: widgets
    Project MESSAGE: Warning: unknown QT module: gui
    Project MESSAGE: Warning: unknown QT module: core
    Project MESSAGE: Warning: unknown QT module: widgets
    Project MESSAGE: Warning: unknown QT module: widgets
    Project MESSAGE: Warning: unknown QT module: gui
    Project MESSAGE: Warning: unknown QT module: core

    C:\dev\qt\qt5\qtsvg\src\svg>mingw32-make
    mingw32-make -f Makefile.Debug all
    mingw32-make[1]: Entering directory C:/dev/qt/qt5/qtsvg/src/svg' g++ -c -fno-keep-inline-dllexport -g -Wall -frtti -fexceptions -mthreads -DQT_SH ARED -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_BUILD_SVG_LIB -DQT_NO_USING_NAMESPACE -DQT_MAKEDLL -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQ T_USE_QSTRINGBUILDER -D_USE_MATH_DEFINES -DQT_DLL -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -I"c:\dev\qt\qt5\qtbase\include" - I"..\..\include\QtSvg\5.0.0" -I"..\..\include\QtSvg\5.0.0\QtSvg" -I"..\..\includ e" -I"..\..\include\QtSvg" -I"..\..\include" -I"tmp" -I"c:\dev\qt\qt5\qtbase\src \3rdparty\harfbuzz\src" -I"..\3rdparty\zlib" -I"debug" -I"c:\dev\qt\qt5\qtbase\m kspecs\win32-g++" -o debug\qsvghandler.o qsvghandler.cpp In file included from qsvghandler.cpp:42:0: c:\dev\qt\qt5\qtbase\mkspecs\win32-g++/qplatformdefs.h:53:21: fatal error: qglob al.h: No such file or directory compilation terminated. mingw32-make[1]: *** [debug/qsvghandler.o] Error 1 mingw32-make[1]: Leaving directoryC:/dev/qt/qt5/qtsvg/src/svg'
    mingw32-make: *** [debug-all] Error 2@
    It seems Qt modules aren't found by QMake and thus include path seems incorrect.

    Anybody knows a fix for that ?

    Thanks !

    B.A.



  • Alright I think I forgot to set the QTDIR.

    I used the following settings:
    @set QTDIR=C:\dev\qt\qt5\qtbase
    set PATH=C:\dev\qt\qt5\qtbase\bin
    set PATH=%PATH%;C:\Perl64\bin
    set PATH=%PATH%;C:\Python27
    set PATH=%PATH%;C:\MinGW\bin
    set PATH=%PATH%;%SystemRoot%\System32
    set QMAKESPEC=win32-g++@
    and
    @./configure -developer-build -opensource -nomake examples -nomake tests@


  • Moderators

    I have to do a cross-compile with gcc 4.5.2 which might be a bit more of challenge than 4.6. Did you succeed compiling Qt5 with minGw 4.6?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.