Important: Please read the Qt Code of Conduct -

clang error: unknown argument: '-framework CoreAudio'

  • 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 :

    and I have the same issue with

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

    in my, 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/ -stdlib=libc++ -headerpad_max_install_names  -arch x86_64 -Wl,-syslibroot,/Applications/ -mmacosx-version-min=10.12
     -Wl,-rpath,@executable_path/../Frameworks -o test main.o   -framework\ CoreServices -framework\ CoreAudio  

  • 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.

Log in to reply