Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. ld: framework 'AGL' not found on macOS Tahoe
Qt 6.11 is out! See what's new in the release blog

ld: framework 'AGL' not found on macOS Tahoe

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 4 Posters 7.1k Views 2 Watching
  • 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.
  • T Offline
    T Offline
    therealmatiss
    wrote on last edited by
    #1

    Hello!

    After upgrading my macOS to newest Tahoe release, I can no longer compile my Qt 6.8.3 project, I get this error:

    [142/142 12.5/sec] Linking CXX executable standalone/standalone.app/Contents/MacOS/standalone
    FAILED: standalone/standalone.app/Contents/MacOS/standalone 
    : && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -g -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names  standalone/CMakeFiles/standalone.dir/standalone_autogen/mocs_compilation.cpp.o standalone/CMakeFiles/standalone.dir/main.cpp.o standalone/CMakeFiles/standalone.dir/standalone_qmltyperegistrations.cpp.o standalone/CMakeFiles/standalone.dir/.qt/rcc/qrc_qmake_Standalone.cpp.o standalone/CMakeFiles/standalone.dir/.rcc/qmlcache/standalone_qmlcache_loader.cpp.o standalone/CMakeFiles/standalone.dir/.rcc/qmlcache/standalone_qml/main_qml.cpp.o standalone/CMakeFiles/standalone.dir/.qt/rcc/qrc_standalone_raw_qml_0.cpp.o -o standalone/standalone.app/Contents/MacOS/standalone -F/Users/matiss/Qt/6.8.3/macos/lib -Wl,-rpath,/Users/matiss/Qt/6.8.3/macos/lib  src/CMakeFiles/myproject-staticplugin_init.dir/./myproject-staticplugin_init_autogen/mocs_compilation.cpp.o  src/CMakeFiles/myproject-staticplugin_init.dir/./myproject_staticplugin_init.cpp.o  src/CMakeFiles/myproject-static_resources_1.dir/./.qt/rcc/qrc_qmake_myproject_init.cpp.o  src/CMakeFiles/myproject-static_resources_2.dir/./.qt/rcc/qrc_myproject-static_raw_qml_0_init.cpp.o  modules/spdlog/libspdlogd.a  src/myproject/libmyproject-staticplugin.a  src/libmyproject-static.a  modules/spdlog/libspdlogd.a  modules/uc/libuc-static.a  /Users/matiss/Qt/6.8.3/macos/lib/QtVirtualKeyboard.framework/Versions/A/QtVirtualKeyboard  /Users/matiss/Qt/6.8.3/macos/lib/QtQuick.framework/Versions/A/QtQuick  /Users/matiss/Qt/6.8.3/macos/lib/QtQmlMeta.framework/Versions/A/QtQmlMeta  /Users/matiss/Qt/6.8.3/macos/lib/QtQmlWorkerScript.framework/Versions/A/QtQmlWorkerScript  /Users/matiss/Qt/6.8.3/macos/lib/QtQmlModels.framework/Versions/A/QtQmlModels  /Users/matiss/Qt/6.8.3/macos/lib/QtQml.framework/Versions/A/QtQml  /Users/matiss/Qt/6.8.3/macos/lib/QtNetwork.framework/Versions/A/QtNetwork  /Users/matiss/Qt/6.8.3/macos/lib/QtOpenGL.framework/Versions/A/QtOpenGL  /Users/matiss/Qt/6.8.3/macos/lib/QtGui.framework/Versions/A/QtGui  -framework AGL  -framework AppKit  -framework OpenGL  -framework ImageIO  -framework Metal  /Users/matiss/Qt/6.8.3/macos/lib/QtDBus.framework/Versions/A/QtDBus  /Users/matiss/Qt/6.8.3/macos/lib/QtCore.framework/Versions/A/QtCore  -framework IOKit  -framework DiskArbitration  -framework UniformTypeIdentifiers && :
    ld: warning: ignoring duplicate libraries: 'modules/spdlog/libspdlogd.a'
    ld: framework 'AGL' not found
    clang++: error: linker command failed with exit code 1 (use -v to see invocation)
    ninja: build stopped: subcommand failed.
    14:03:51: The process "/Users/matiss/Qt/Tools/CMake/CMake.app/Contents/bin/cmake" exited with code 1.
    14:03:51: Error while building/deploying project myproject (kit: Qt 6.8.3 for macOS)
    14:03:51: When executing step "Build"
    14:03:51: Elapsed time: 00:11.
    

    It seems that some oldschool AGL framework is missing - how can I not use it? I don't have anything specific regarding display frameworks in my CMake files - it's a pretty basic Qt Creator project.

    I 1 Reply Last reply
    1
    • T therealmatiss

      Hello!

      After upgrading my macOS to newest Tahoe release, I can no longer compile my Qt 6.8.3 project, I get this error:

      [142/142 12.5/sec] Linking CXX executable standalone/standalone.app/Contents/MacOS/standalone
      FAILED: standalone/standalone.app/Contents/MacOS/standalone 
      : && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -g -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names  standalone/CMakeFiles/standalone.dir/standalone_autogen/mocs_compilation.cpp.o standalone/CMakeFiles/standalone.dir/main.cpp.o standalone/CMakeFiles/standalone.dir/standalone_qmltyperegistrations.cpp.o standalone/CMakeFiles/standalone.dir/.qt/rcc/qrc_qmake_Standalone.cpp.o standalone/CMakeFiles/standalone.dir/.rcc/qmlcache/standalone_qmlcache_loader.cpp.o standalone/CMakeFiles/standalone.dir/.rcc/qmlcache/standalone_qml/main_qml.cpp.o standalone/CMakeFiles/standalone.dir/.qt/rcc/qrc_standalone_raw_qml_0.cpp.o -o standalone/standalone.app/Contents/MacOS/standalone -F/Users/matiss/Qt/6.8.3/macos/lib -Wl,-rpath,/Users/matiss/Qt/6.8.3/macos/lib  src/CMakeFiles/myproject-staticplugin_init.dir/./myproject-staticplugin_init_autogen/mocs_compilation.cpp.o  src/CMakeFiles/myproject-staticplugin_init.dir/./myproject_staticplugin_init.cpp.o  src/CMakeFiles/myproject-static_resources_1.dir/./.qt/rcc/qrc_qmake_myproject_init.cpp.o  src/CMakeFiles/myproject-static_resources_2.dir/./.qt/rcc/qrc_myproject-static_raw_qml_0_init.cpp.o  modules/spdlog/libspdlogd.a  src/myproject/libmyproject-staticplugin.a  src/libmyproject-static.a  modules/spdlog/libspdlogd.a  modules/uc/libuc-static.a  /Users/matiss/Qt/6.8.3/macos/lib/QtVirtualKeyboard.framework/Versions/A/QtVirtualKeyboard  /Users/matiss/Qt/6.8.3/macos/lib/QtQuick.framework/Versions/A/QtQuick  /Users/matiss/Qt/6.8.3/macos/lib/QtQmlMeta.framework/Versions/A/QtQmlMeta  /Users/matiss/Qt/6.8.3/macos/lib/QtQmlWorkerScript.framework/Versions/A/QtQmlWorkerScript  /Users/matiss/Qt/6.8.3/macos/lib/QtQmlModels.framework/Versions/A/QtQmlModels  /Users/matiss/Qt/6.8.3/macos/lib/QtQml.framework/Versions/A/QtQml  /Users/matiss/Qt/6.8.3/macos/lib/QtNetwork.framework/Versions/A/QtNetwork  /Users/matiss/Qt/6.8.3/macos/lib/QtOpenGL.framework/Versions/A/QtOpenGL  /Users/matiss/Qt/6.8.3/macos/lib/QtGui.framework/Versions/A/QtGui  -framework AGL  -framework AppKit  -framework OpenGL  -framework ImageIO  -framework Metal  /Users/matiss/Qt/6.8.3/macos/lib/QtDBus.framework/Versions/A/QtDBus  /Users/matiss/Qt/6.8.3/macos/lib/QtCore.framework/Versions/A/QtCore  -framework IOKit  -framework DiskArbitration  -framework UniformTypeIdentifiers && :
      ld: warning: ignoring duplicate libraries: 'modules/spdlog/libspdlogd.a'
      ld: framework 'AGL' not found
      clang++: error: linker command failed with exit code 1 (use -v to see invocation)
      ninja: build stopped: subcommand failed.
      14:03:51: The process "/Users/matiss/Qt/Tools/CMake/CMake.app/Contents/bin/cmake" exited with code 1.
      14:03:51: Error while building/deploying project myproject (kit: Qt 6.8.3 for macOS)
      14:03:51: When executing step "Build"
      14:03:51: Elapsed time: 00:11.
      

      It seems that some oldschool AGL framework is missing - how can I not use it? I don't have anything specific regarding display frameworks in my CMake files - it's a pretty basic Qt Creator project.

      I Offline
      I Offline
      IgKh
      wrote on last edited by
      #2

      @therealmatiss See https://bugreports.qt.io/browse/QTBUG-137687. You need Qt 6.8.4 or 6.9.2 to compile on Tahoe.

      1 Reply Last reply
      3
      • AndyBriceA Offline
        AndyBriceA Offline
        AndyBrice
        wrote on last edited by
        #3

        Can confirm that I had the same issue and compiling in Qt 6.8.4 fixed it. Thanks.

        1 Reply Last reply
        0
        • TiggerDadT Offline
          TiggerDadT Offline
          TiggerDad
          wrote on last edited by
          #4

          I'm on Qt 6.10.1, and I'm still getting "framework 'AGL' not found". Any suggestions would be welcome.

          Product: Qt Creator 18.0.1
          Based on: Qt 6.10.1 (Clang 15.0 (Apple), arm64)
          Built on: Dec  9 2025 12:41:52
          From revision: 34b03dae43
          
          [15/15 6.5/sec] Linking CXX executable Footlight.app/Contents/MacOS/Footlight
          FAILED: Footlight.app/Contents/MacOS/Footlight 
          : && /usr/bin/clang++ -DQT_QML_DEBUG -g -arch arm64 -Wl,-search_paths_first -Wl,-headerpad_max_install_names  CMakeFiles/Footlight.dir/Footlight_autogen/mocs_compilation.cpp.o CMakeFiles/Footlight.dir/main/main.cpp.o CMakeFiles/Footlight.dir/models/show.cpp.o CMakeFiles/Footlight.dir/models/fixture.cpp.o CMakeFiles/Footlight.dir/models/fixturegroup.cpp.o CMakeFiles/Footlight.dir/models/fixturegroupitem.cpp.o CMakeFiles/Footlight.dir/ui/homewindow.cpp.o CMakeFiles/Footlight.dir/ui/showwindow.cpp.o CMakeFiles/Footlight.dir/ui/fixturemodel.cpp.o CMakeFiles/Footlight.dir/build/Qt_6_9_1_for_macOS-Debug/.qt/rcc/qrc_Footlight_translations.cpp.o -o Footlight.app/Contents/MacOS/Footlight -F/Users/brendantwhite/Qt/6.9.1/macos/lib -Wl,-rpath,/Users/brendantwhite/Qt/6.9.1/macos/lib  /Users/brendantwhite/Qt/6.9.1/macos/lib/QtWidgets.framework/Versions/A/QtWidgets  /Users/brendantwhite/Qt/6.9.1/macos/lib/QtGui.framework/Versions/A/QtGui  -framework AGL  -framework AppKit  -framework OpenGL  -framework ImageIO  -framework Metal  /Users/brendantwhite/Qt/6.9.1/macos/lib/QtCore.framework/Versions/A/QtCore  -framework IOKit  -framework DiskArbitration  -framework UniformTypeIdentifiers && :
          ld: framework 'AGL' not found
          clang++: error: linker command failed with exit code 1 (use -v to see invocation)
          ninja: build stopped: subcommand failed.
          21:53:16: The command "/Users/brendantwhite/Qt/Tools/CMake/CMake.app/Contents/bin/cmake --build /Users/brendantwhite/code/Footlight/build/Qt_6_9_1_for_macOS-Debug --target all" terminated with exit code 1.
          21:53:16: Error while building/deploying project Footlight (kit: Qt 6.9.1 for macOS)
          21:53:16: When executing step "Build"
          
          1 Reply Last reply
          0
          • TiggerDadT Offline
            TiggerDadT Offline
            TiggerDad
            wrote on last edited by
            #5

            I've discovered that I can delete -framework AGL out of my build.ninja file and that fixes the issue temporarily so I can build my project ... but the problem comes back again as soon as I rebuild.

            1 Reply Last reply
            0
            • TiggerDadT Offline
              TiggerDadT Offline
              TiggerDad
              wrote on last edited by
              #6

              OK. Ignore my posts. Turns out I had 6.9.1 installed as well as 6.10.1, and the compiler was using 6.9.1. I've now removed Qt entirely and reinstalled, and it's now working fine.

              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