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

Compiling Qt5.13.2 on MACOS Catalina



  • Hey Guys,

    i am trying to compile qt opensource 5.13.2 on macos. Sadly it fails because it is setting the minimum deployment target version to 10.12 and no matter which
    variables i try to set when calling configure or make it always passes the -mmacosx-version-min=10.12 to the compiler, even when i explicitly tell make to use 10.15. I am using these commands to build:

    ./configure -prefix <target_path> -sdk macosx10.15 -platform macx-clang -no-framework -c++std c++11
    make CXX_FLAGS="-mmacos-version-min=10.15" -j 8

    After the configure it tells me this:

    macOS version ....................... 10.15.6
    Xcode version ....................... 11.6
    Clang version ....................... Apple clang version 11.0.3
    macOS SDK version ................... 10.15.6
    macOS minimum deployment target ..... 10.12 
    

    In the help of the configure i can not find any option to change this. Is there anybody how can help to get this running?

    Kind regards
    ju6ge


  • Lifetime Qt Champion

    Hi,

    One thing you can do is to edit "qt5/qtbase/mkspecs/common/macx.conf" and change there the deployment target.


  • Lifetime Qt Champion

    Hi,

    One thing you can do is to edit "qt5/qtbase/mkspecs/common/macx.conf" and change there the deployment target.


Log in to reply