Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

MacOS Static Build 5.15.1 Problem



  • Building 5.15.1 static from source for MacOS and getting the following error when building libqtwebenginecoreapi.a

    Project ERROR: Missing archive files from linking pri
    make[3]: *** [sub-core_module-pro-make_first] Error 3
    make[2]: *** [sub-core-make_first] Error 2
    make[1]: *** [sub-src-make_first] Error 2
    make: *** [module-qtwebengine-make_first] Error 2
    

    Commands:

    ../source/configure \
            -static \
            -static-runtime \
            -webengine-proprietary-codecs \
            -commercial \
            -confirm-license \
            -nomake tests \
            -nomake examples \
            -debug-and-release
    
    make
    

    Very similar to the problem reported by Bruh for 5.14.1: Qt WebEngine problems during Qt 5.14.1 static build from source. I followed pinebit's advice and added the -webengine-proprietary-codecs option, but it didn't seem to help.



  • Apparently, you now have to explicitly skip webengine when building static Qt libraries. I'm quite sure this was not true last time I built them, which was version 5.14.2.

    So the correct configure command for me should have been:

    ../source/configure \
            -static \
            -commercial \
            -confirm-license \
            -nomake tests \
            -nomake examples \
            -skip qtwebengine \
            -debug-and-release
    

Log in to reply