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
Forum Updated to NodeBB v4.3 + New Features

ld: framework 'AGL' not found on macOS Tahoe

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 973 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 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
    0
    • 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 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
      2
      • AndyBriceA Offline
        AndyBriceA Offline
        AndyBrice
        wrote 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

        • Login

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