Problem with building QT 5 Windows 7 x64 and MinGW



  • Hello.
    This is my first post, and i want to say sorry for my English.

    I starded to build QT 5 for MinGW x32 (and the x64 if it will work) a few days ago. I always got some errors, and now I almost give up.

    I used these tutorials:
    "MinGW-64-bit":http://qt-project.org/wiki/MinGW-64-bit
    "Building from GIT":http://qt-project.org/wiki/Building_Qt_5_from_Git

    Compilation of ICU4c-50.1 and OpenSSL 1.0.1c work fine. The problem is with QtWebKit and ANGLE i think. I try to configured with -opengl desktop -no-webkit but the second is not recognised (http://doc.qt.digia.com/qt/configure-options.html).

    I have installed:

    bison 2.4.1

    .netFx 3 and 4 version

    DXSDK June 2010

    Flex 2.5.4a-1

    gcc-4.7.2-32

    git 1.8.0

    gperf 3.0.1

    grep 2.5.4

    libiconv 1.9.2-1

    MSYS 1.0.11

    Python 3.3.0

    Ruby 1.9.3-p327

    Strawberry perl 5.16.2.1

    Windows SDK 7

    I compiled in Windows Command Line. The environment is:

    PATH:
    [quote]
    c:\Qt\WSDK7\Bin; c:\Qt\DXSDK; "c:\Qt\DXSDK\Developer Runtime";
    d:\qtx32\icu4c-50_1-src\icu\dist\lib; C:\Qt\MinGW\X32\bin;
    C:\Qt\MinGW\X32\libexec\gcc\i686-pc-mingw32\4.7.2; c:\qt\perl\x32\c\bin;
    c:\qt\perl\x32\c\libexec\gcc\i686-pc-mingw32\4.7.2; C:\Qt\Ruby193\bin; C:\Qt\Python\X32; C:\Windows\system32; C:\Windows; C:\Windows\System32\Wbem; C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static; C:\Windows\System32\WindowsPowerShell\v1.0; C:\Program Files\Microsoft Windows PerformanceToolkit; C:\Qt\Perl\X32\perl\site\bin; C:\Qt\Perl\X32\perl\bin; C:\Qt\Git\cmd; C:\Windows\system32; C:\Windows
    [/quote]

    INCLUDE:
    [quote] d:\qtx32\icu4c-50_1-src\icu\dist\include; d:\qtx32\openssl-1.0.1c\dist\include; c:\Qt\DXSDK\Include; c:\Qt\WSDK7\Include [/quote]

    LIB:
    [quote] d:\qtx32\icu4c-50_1-src\icu\dist\lib; d:\qtx32\openssl-1.0.1c\dist\lib; c:\Qt\DXSDK\Lib\x86; c:\Qt\WSDK7\Lib [/quote]

    Configure:
    [quote] D:/qtx32/newqt/qtbase/configure -opensource -confirm-license -nomake tests -nomake examples -openssl -icu -c++11 [/quote]

    And the errors:
    [quote]
    cd Source\ThirdParty\ANGLE\ && ( if not exist Makefile.ANGLE D:\qtx32\newqt\qtba
    se\bin\qmake D:\qtx32\newqt\qtwebkit\Source\ThirdParty\ANGLE\ANGLE.pro -o Makefi
    le.ANGLE ) && mingw32-make -f Makefile.ANGLE
    mingw32-make[2]: Entering directory D:/qtx32/newqt/qtwebkit/Source/ThirdParty/A NGLE' ( if not exist Makefile.ANGLE.DerivedSources D:\qtx32\newqt\qtbase\bin\qmake D:\ qtx32\newqt\qtwebkit\Source\ThirdParty\ANGLE\DerivedSources.pri -o Makefile.ANGL E.DerivedSources ) && mingw32-make -f Makefile.ANGLE.DerivedSources mingw32-make[3]: Entering directoryD:/qtx32/newqt/qtwebkit/Source/ThirdParty/A
    NGLE'
    win_flex --noline --nounistd --outfile=generated\glslang_lex.cpp src\compiler\gl
    slang.l
    process_begin: CreateProcess(NULL, win_flex --noline --nounistd --outfile=genera
    ted\glslang_lex.cpp src\compiler\glslang.l, ...) failed.
    make (e=2): Nie można odnaleźć określonego pliku.
    mingw32-make[3]: *** [generated/glslang_lex.cpp] Error 2
    mingw32-make[3]: Leaving directory D:/qtx32/newqt/qtwebkit/Source/ThirdParty/AN GLE' mingw32-make[2]: *** [sub-DerivedSources-pri-make_first-ordered] Error 2 mingw32-make[2]: Leaving directoryD:/qtx32/newqt/qtwebkit/Source/ThirdParty/AN
    GLE'
    mingw32-make[1]: *** [sub-Source-ThirdParty-ANGLE-ANGLE-pro-make_first-ordered]
    Error 2
    mingw32-make[1]: Leaving directory `D:/qtx32/newqt/qtwebkit'
    mingw32-make: *** [module-qtwebkit-make_first] Error 2
    [/quote]

    The same plus full config and set variable view in files:
    "Config file":http://www.mediafire.com/file/vy4dh56k2vgz40x/config
    "Set all variable":http://www.mediafire.com/file/bwlgnhghxw4511n/set
    "Path variable":http://www.mediafire.com/file/vh07dloy80029qd/path
    "Include variable":http://www.mediafire.com/file/u22053fgo80f52k/include
    "Lib variable":http://www.mediafire.com/file/j9nlc8w4alkuf8a/lib

    Is any chance for me ?


  • Moderators

    Try MSVC. It's free (as in beer) and it works. You can grab it from Windows SDK or Visual Studio.

    To prevent webkit from compiling, simply delete or rename qtwebkit folder. Remember no to use source code taken from Qt SDK or .tar.gz package on Windows. Use .zip or clone the git repo. -opengl desktop should be correct and should work. Remember you need to have OpenGL drivers installed.



  • Well, I try to compile myself, because I never doing that before, so I wanted learn it.
    I know that in Qt download site is pre-compiled library for MSVC with QtCreator.

    I'm searching for OpenGL drivers, but in home site it redirected me to AMD driver download with OpenCL ...

    But, I was downloaded Qt 5 from Git and try to configure them and the problem is that I getting the error ( can't find any files with *.o). Well I think it no make qmake (nothing is copied) ...

    [quote]
    Remember no to use source code taken from Qt SDK or .tar.gz package on Windows. Use .zip or clone the git repo.[/quote]
    Do you mean about symlinks ??

    //edit:
    I work little on this, and now i got no rule to make ioutils.o ...



  • Sorry, for post above.

    I downloaded MinGW with POSIX sjlj rev.5 and the compilation is working. With the previous compilator was something wrong with him.

    I found a topic: "This topic":http://qt-project.org/forums/viewthread/22744 and I was changed my Python to version 2.7.3 and now compilation goes further. But now the problem is with unresolve reference to procedures in objects file. I don’t know, maybe is the fault in that half project were compiled in Python 3.3.0 and other in 2.7.3 version ? But I was cleaned the QtWebKit module and I am builded it again.

    [quote]
    ./obj\debug\InitWebKitQt.o: In function ZN6WebKit23initializeWebKitWidgetsEv': D:\qtx32\qt5\qtwebkit\Source/WebKit/qt/WidgetSupport/InitWebKitQt.cpp:39: undefi ned reference toWebKit::setWebKitWidgetsInitCallback(WebCore::QStyleFacade* (*
    )(QWebPageAdapter*))'
    D:\qtx32\qt5\qtwebkit\Source/WebKit/qt/WidgetSupport/InitWebKitQt.cpp:40: undefi
    ned reference to WebKit::initializeWebKitQt()' D:\qtx32\qt5\qtwebkit\Source/WebKit/qt/WidgetSupport/InitWebKitQt.cpp:43: undefi ned reference toWebKit::setImagePlatformResource(char const*, QPixmap const&)'

    D:\qtx32\qt5\qtwebkit\Source/WebKit/qt/WidgetSupport/InitWebKitQt.cpp:45: undefi
    ned reference to `WebKit::setImagePlatformResource(char const*, QPixmap const&)'

    ./obj\debug\QGraphicsWidgetPluginImpl.o: In function ZN25QGraphicsWidgetPluginI mpl11qt_metacastEPKc': D:\qtx32\qt5\qtwebkit\Source/moc/moc_QGraphicsWidgetPluginImpl.cpp:79: undefined reference to_imp___ZN21QtPluginWidgetAdapter11qt_metacastEPKc'
    ./obj\debug\QGraphicsWidgetPluginImpl.o: In function ZN25QGraphicsWidgetPluginI mpl11qt_metacallEN11QMetaObject4CallEiPPv': D:\qtx32\qt5\qtwebkit\Source/moc/moc_QGraphicsWidgetPluginImpl.cpp:84: undefined reference to_imp___ZN21QtPluginWidgetAdapter11qt_metacallEN11QMetaObject4Call
    EiPPv'
    ./obj\debug\QGraphicsWidgetPluginImpl.o: In function _static_initialization_and _destruction_0': D:\qtx32\qt5\qtwebkit\Source/moc/moc_QGraphicsWidgetPluginImpl.cpp:66: undefined reference to_imp___ZN21QtPluginWidgetAdapter16staticMetaObjectE'
    ./obj\debug\QGraphicsWidgetPluginImpl.o: In function ZN21QtPluginWidgetAdapterD 2Ev': D:\qtx32\qt5\qtwebkit\Source/WebKit/qt/WebCoreSupport/QtPluginWidgetAdapter.h:29 : undefined reference to_imp___ZTV21QtPluginWidgetAdapter'
    ./obj\debug\QWidgetPluginImpl.o: In function ZN17QWidgetPluginImpl11qt_metacast EPKc': D:\qtx32\qt5\qtwebkit\Source/moc/moc_QWidgetPluginImpl.cpp:79: undefined referen ce to_imp___ZN21QtPluginWidgetAdapter11qt_metacastEPKc'
    ./obj\debug\QWidgetPluginImpl.o: In function ZN17QWidgetPluginImpl11qt_metacall EN11QMetaObject4CallEiPPv': D:\qtx32\qt5\qtwebkit\Source/moc/moc_QWidgetPluginImpl.cpp:84: undefined referen ce to_imp___ZN21QtPluginWidgetAdapter11qt_metacallEN11QMetaObject4CallEiPPv'
    ./obj\debug\QWidgetPluginImpl.o: In function _static_initialization_and_destruc tion_0': D:\qtx32\qt5\qtwebkit\Source/moc/moc_QWidgetPluginImpl.cpp:66: undefined referen ce to_imp___ZN21QtPluginWidgetAdapter16staticMetaObjectE'
    collect2.exe: error: ld returned 1 exit status
    Makefile.widgetsapi.Debug:122: recipe for target 'D:\qtx32\qt5\qtbase\lib\Qt5Web
    KitWidgetsd.dll' failed
    mingw32-make[3]: *** [D:\qtx32\qt5\qtbase\lib\Qt5WebKitWidgetsd.dll] Error 1
    mingw32-make[3]: Leaving directory 'D:/qtx32/qt5/qtwebkit/Source'
    Makefile.widgetsapi:38: recipe for target 'debug-all' failed
    mingw32-make[2]: *** [debug-all] Error 2
    mingw32-make[2]: Leaving directory 'D:/qtx32/qt5/qtwebkit/Source'
    Makefile.QtWebKit:69: recipe for target 'sub-widgetsapi-pri-make_first-ordered'
    failed
    mingw32-make[1]: *** [sub-widgetsapi-pri-make_first-ordered] Error 2
    mingw32-make[1]: Leaving directory 'D:/qtx32/qt5/qtwebkit/Source'
    makefile:303: recipe for target 'sub-Source-QtWebKit-pro-make_first-ordered' fai
    led
    mingw32-make: *** [sub-Source-QtWebKit-pro-make_first-ordered] Error 2
    [/quote]

    BTW I was compiled Qt 5 without QtWebKit, build new, empty project with MinGW32, and it works.


Log in to reply
 

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