Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Build Failure: unrecognized command-line option '-fapplication-extension'

Build Failure: unrecognized command-line option '-fapplication-extension'

Scheduled Pinned Locked Moved Solved Installation and Deployment
2 Posts 2 Posters 252 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    KyleRoth
    wrote on last edited by
    #1

    I'm trying to build Qt on my mac for g++ instead of clang. I am following the provided tutorial. I am able to clone the repo, checkout 6.2.4, initialize the repo, and configure the cmake files. My configure command is as follows:

    ../qt5/configure -prefix ~/Qt/6.2.4/qt6-gcc -platform macx-g++
    

    I am running into issues when running cmake --build
    I get the error, c++: error: unrecognized command-line option '-fapplication-extension' from:

    • qtbase/src/3rdparty/harfbuzz-ng/CMakeFiles/BundledHarfbuzz.dir/hb-dummy.cc.o
    • qtbase/src/3rdparty/harfbuzz-ng/CMakeFiles/BundledHarfbuzz.dir/src/hb-aat-layout.cc.o
    • qtbase/src/3rdparty/harfbuzz-ng/CMakeFiles/BundledHarfbuzz.dir/src/hb-aat-map.cc.o
    • qtbase/src/3rdparty/harfbuzz-ng/CMakeFiles/BundledHarfbuzz.dir/src/hb-blob.cc.o

    It is using c++ (Homebrew GCC 11.2.0_3) 11.2.0 as the compiler.
    Any idea how to fix this? Thanks in advance

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      This looks like a Mac specific flag that might be only available through clang (not sure though). AFAIR, the macx-g++ mkspec (or equivalent for Qt 6) is mainly there for historical reasons, you may have to modify it to build using gcc.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved