Important: Please read the Qt Code of Conduct -

Build Qt 5.3.1 for static linking

  • Hi,

    i build qt for static linking a while ago. I took the libs 4.8.6 and all worked fine. at the end i had an stand alone exe from my programm. I could run the exe on every pc, even if they had Qt not installed.

    So now i developed an new programm and used some of the qt 5.0.2 features. So i wanted to build the latest qt for static linking. But for some reason it doesn't work.

    18:26:21: Starte "C:\MinGW\bin\mingw32-make.exe"
    C:/MinGW/bin/mingw32-make -f Makefile.Release
    mingw32-make[1]: Entering directory 'C:/Users/Carsten/Qt_workspace/build-Monopoly-Desktop_5_3_1_static-Release'
    mingw32-make[1]: Leaving directory 'C:/Users/Carsten/Qt_workspace/build-Monopoly-Desktop_5_3_1_static-Release'
    mingw32-make[1]: *** No rule to make target 'C:/Qt/Qt_5.3.1_static/lib/libQt5Widgets.a', needed by 'release\Monopoly.exe'. Stop.
    Makefile:34: recipe for target 'release' failed
    mingw32-make: *** [release] Error 2
    18:26:22: Der Prozess "C:\MinGW\bin\mingw32-make.exe" wurde mit dem Rückgabewert 2 beendet.
    Fehler beim Erstellen/Deployment des Projekts Monopoly (Kit: Desktop 5.3.1 static)
    Bei der Ausführung von Schritt 'Make'
    18:26:22: Verstrichene Zeit: 00:11.

    I hope someone can help me with this problem


    new error, after i fixed the first:

    @C:\Qt\Qt_5.3.1_static>mingw32-make sub-src > makeErrorLog.txt
    In file included from ....\include/QtGui/qopenglversionfunctions.h:1:0,
    from ....\include/QtGui/../../src/gui/kernel/qopenglcontext.h:
    from ....\include/QtGui/qopenglcontext.h:1,
    from ....\include\QtGui\5.3.1\QtGui/qpa/../../../../../src/gui
    from ....\include\QtGui\5.3.1\QtGui/qpa/qplatformintegration.h
    from accessible\qaccessible.cpp:54:
    ....\include/QtGui/../../src/gui/opengl/qopenglversionfunctions.h:785:43: error
    : expected unqualified-id before ')' token
    void (QOPENGLF_APIENTRYP MemoryBarrier)(GLbitfield barriers);
    mingw32-make[3]: *** [.obj/debug/qaccessible.o] Error 1
    mingw32-make[2]: *** [debug-all] Error 2
    mingw32-make[1]: *** [sub-gui-make_first] Error 2
    mingw32-make: *** [sub-src] Error 2@

Log in to reply