我想在OSX El Capitan 10.11上安装portaudio。
我已经下载了最新的快照并试图安装,我得到了一些关于框架不可用的东西。我破解了配置脚本以帮助xcodebuild找到10.11的框架,现在我得到:1
src/hostapi/coreaudio/pa_mac_core_utilities.c:152:10: error: 'kAudioUnitErr_IllegalInstrument' is deprecated [-Werror,-Wdeprecated-declarations]
case kAudioUnitErr_IllegalInstrument:
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/AudioUnit.framework/Headers/AUComponent.h:1633:2: note:
'kAudioUnitErr_IllegalInstrument' has been explicitly marked deprecated here
kAudioUnitErr_IllegalInstrument = -10873,
^
src/hostapi/coreaudio/pa_mac_core_utilities.c:155:10: error: 'kAudioUnitErr_InstrumentTypeNotFound' is deprecated [-Werror,-Wdeprecated-declarations]
case kAudioUnitErr_InstrumentTypeNotFound:
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/AudioUnit.framework/Headers/AUComponent.h:1634:2: note:
'kAudioUnitErr_InstrumentTypeNotFound' has been explicitly marked deprecated here
kAudioUnitErr_InstrumentTypeNotFound = -10872,
^
2 errors generated.
make: *** [src/hostapi/coreaudio/pa_mac_core_utilities.lo] Error 1
我现在明白,这是因为10.11中不再提供碳。
有什么方法可以解决这个问题,还是以任何方式安装以前的框架?或者我应该使用别的东西。我希望portaudio能够工作,这样我就可以在maclab上安装playrec并在matlab上获得双工音频。