Qt compiled the qtbase module with MinGW 64bit, but more modules?



  • I've finally got Qt to compile with a 64bit MinGW--the qtbase module to be exact--no more.
    I used this configuration :

    /d/Qt64/qt-source/configure -prefix /d/Qt64/qt-build -I/d/Qt/Tools/mingw530_32/i686-w64-mingw32/include -confirm-license -debug-and-release -opensource -platform win32-g++ -opengl desktop -skip qtsvg -skip qtwebengine -skip qtspeech -skip qtremoteobjects -skip qtmacextras -skip qtx11extras -skip qtimageformats -skip qtandroidextras -skip qtserialport -skip qtserialbus -skip qtactiveqt -skip qtxmlpatterns -skip qtdeclarative -skip qtscxml -skip qtpurchasing -skip qtcanvas3d -skip qtgamepad -skip qt3d -skip qtwayland -skip qtconnectivity -skip qtwebsockets -skip qtwebchannel -skip qtsensors -skip qtmultimedia -skip qtdatavis3d -skip qtcharts -skip qtwinextras -skip qtgraphicaleffects -skip qtquickcontrols2 -skip qtquickcontrols -skip qtlocation -skip qttools -skip qtscript -skip qtwebview -skip qtnetworkauth -skip qttranslations -skip qtdoc -skip qtqa -qt-zlib -D ASSIMP_BUILD_NO_OWN_ZLIB -Wno-unknown-pragmas -Wa,-mbig-obj

    It skips all modules except for qtbase, gets done after about 6 hours and that is good enough to get my gui going.
    I've run make install on it too.

    I would now like to add more of these modules.

    Since this is a shadow-build I hope to add each module to what I already have in /qt-build, piece by piece.

    How exactly can I "add" these other modules, one at a time.

    Must I start with building qtbase...and if it seems to work.
    Erase all of it. And build qtbase and qtremoteobjects...if this works then
    Erase all of it. And build qtbase and qtremoteobjects and qtmacextras... and if this works...etc.

    Or can I build any singular module, like qtx11extras and just copy the folder 'qtx11extras' all to a nice place to store it like potatoes with all the other module folders?

    Or must I build qtx11extras and each of the modules every time together with qtbase???


  • Moderators

    @Rapidrain said in Qt compiled the qtbase module with MinGW 64bit, but more modules?:

    Or can I build any singular module, like qtx11extras and just copy the folder 'qtx11extras' all to a nice place to store it like potatoes with all the other module folders?

    If you already have qtbase built, then you can use that to build a single module, and copy the built files over.

    Note: You can't use Qt X11 Extras on Windows, however

    Or must I build qtx11extras and each of the modules every time together with qtbase???

    You don't need to do this.

    I would now like to add more of these modules.

    Since this is a shadow-build I hope to add each module to what I already have in /qt-build, piece by piece.

    How exactly can I "add" these other modules, one at a time.

    I can't remember if you need to set the prefix again, but here's the gist of it:

    1. Navigate into the module's root folder.
    2. Run qmake (from your custom-built qtbase) on the module's *.pro file
    3. Run make and make install

    Something like this:

    > cd /d/Qt64/qt-source/qtwinextras
    > ../../qt-build/qmake.exe qtwinextras.pro
    > make
    > make install
    


  • @JKSH Many thanks, this will save me a lot of time.


Log in to reply