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. clang error: unknown argument: '-framework CoreAudio'
Forum Updated to NodeBB v4.3 + New Features

clang error: unknown argument: '-framework CoreAudio'

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 1.6k 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
    kamui
    wrote on 23 Jan 2020, 13:47 last edited by kamui
    #1

    Hello,

    I have some configuration that used to work with qt 5.5 but is on longer working with Qt5.13

    macx {
    
        LIBS         += "-framework QuartzCore"
        LIBS         += "-framework AudioToolbox"
        LIBS         += "-framework CoreAudio"
        LIBS         += "-framework ApplicationServices"
        LIBS         += "-framework Cocoa"
    }
    

    Did the syntax changed or something ?

    I just a simple code found there : https://stackoverflow.com/questions/42769135/how-do-i-link-core-frameworks-on-macos-using-clang

    and I have the same issue with

    LIBS += "-framework CoreServices"
    LIBS += "-framework CoreAudio"
    

    in my test.pro, but using the command line :

    clang++ -framework CoreServices -framework CoreAudio main.cpp
    

    it works..

    When I look at the compile output (from QtCreator), I have this :

    Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -stdlib=libc++ -headerpad_max_install_names  -arch x86_64 -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -mmacosx-version-min=10.12
     -Wl,-rpath,@executable_path/../Frameworks -o test main.o   -framework\ CoreServices -framework\ CoreAudio  
    
    1 Reply Last reply
    0
    • K Offline
      K Offline
      kamui
      wrote on 23 Jan 2020, 14:20 last edited by
      #2

      found ! The double quotes are no longer accepted. The space is escaped and I think it make clang search for " CoreAudio" instead of "CoreAudio"... or something close.

      1 Reply Last reply
      0

      1/2

      23 Jan 2020, 13:47

      • Login

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