[MacPorts] #68478: switchaudio-osx @1.2.2: fatal error: 'CoreAudio/AudioHardwareBase.h' file not found

MacPorts noreply at macports.org
Wed Jun 5 18:27:26 UTC 2024


#68478: switchaudio-osx @1.2.2: fatal error: 'CoreAudio/AudioHardwareBase.h' file
not found
-------------------------+-------------------------------------------------
  Reporter:  RobK88      |      Owner:  i0ntempest
      Type:  defect      |     Status:  closed
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.8.1
Resolution:  fixed       |   Keywords:  snowleopard lion mountainlion
      Port:              |  mavericks yosemite elcapitan sierra highsierra
  switchaudio-osx        |  mojave catalina bigsur
-------------------------+-------------------------------------------------

Comment (by TurtleWilly):

 I just build the very latest version 1.2.2 (OS X 10.11 SDK on OS X
 10.10.5) and the only thing I had to add to 'audio_switch.h' was this
 kludge:


 {{{
 #ifndef kAudioObjectPropertyElementMain
 #  define kAudioObjectPropertyElementMain
 kAudioObjectPropertyElementMaster
 #endif
 }}}

 (that's Apple breaking API for some political correctness stuff)


 The resulting binary seemingly seems to work fine from what I can tell. I
 don't think this legacy kludge in the Portfile is required (anymore), but
 perhaps I'm missing something?

-- 
Ticket URL: <https://trac.macports.org/ticket/68478#comment:8>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list