How to build Qt with gcc-6 on macOS

  • Hello guys!

    I've been trying to build Qt with gcc-6 (downloaded with homebrew). But I don't have any success: problems of flags compilations (-fconstant-cfstrings instead of -mconstant-cfstrings), many errors while loading the CoreFoundation.framework (error: 'introduced' was not declared in this scope and error: 'deprecated' was not declared in this scope).

    Does anyone succeed to build Qt on macOs (Sierra) with gcc-6?

    Thank you.

  • Lifetime Qt Champion


    Not likely the answer you expect but Qt is officially only supported with Apple's Xcode.

    You'll likely encounter other hurdle getting the build system to use another compiler.

Log in to reply

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