Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RtAudio fails to build on macOS & GCC #3

Open
tomoyanonymous opened this issue Sep 9, 2020 · 4 comments
Open

RtAudio fails to build on macOS & GCC #3

tomoyanonymous opened this issue Sep 9, 2020 · 4 comments
Labels
bug Something isn't working

Comments

@tomoyanonymous
Copy link
Contributor

Seems like a bug in CoreAudio header files.

[cmake] [ 33%] Building CXX object CMakeFiles/rtaudio.dir/RtAudio.cpp.o
[cmake] In file included from /Users/tomoya/codes/mimium/build/rtaudio-src/RtAudio.h:891,
[cmake]                  from /Users/tomoya/codes/mimium/build/rtaudio-src/RtAudio.cpp:44:
[cmake] /Applications/Xcode_11.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:162:2: error: expected unqualified-id before '^' token
[cmake]   162 | (^AudioObjectPropertyListenerBlock)(    UInt32                              inNumberAddresses,
[cmake]       |  ^
[cmake] /Applications/Xcode_11.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:162:2: error: expected ')' before '^' token
[cmake]   162 | (^AudioObjectPropertyListenerBlock)(    UInt32                              inNumberAddresses,
[cmake]       | ~^
[cmake]       |  )
[cmake] In file included from /Users/tomoya/codes/mimium/build/rtaudio-src/RtAudio.h:891,
[cmake]                  from /Users/tomoya/codes/mimium/build/rtaudio-src/RtAudio.cpp:44:
[cmake] /Applications/Xcode_11.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:400:41: error: 'AudioObjectPropertyListenerBlock' has not been declared
[cmake]   400 |                                         AudioObjectPropertyListenerBlock    inListener)             __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_7_0);
[cmake]       |                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[cmake] /Applications/Xcode_11.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:421:41: error: 'AudioObjectPropertyListenerBlock' has not been declared
[cmake]   421 |                                         AudioObjectPropertyListenerBlock    inListener)             __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_7_0);
[cmake]       |                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[cmake] /Applications/Xcode_11.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:804:2: error: expected unqualified-id before '^' token
[cmake]   804 | (^AudioDeviceIOBlock)(  const AudioTimeStamp*   inNow,
[cmake]       |  ^
[cmake] /Applications/Xcode_11.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:804:2: error: expected ')' before '^' token
[cmake]   804 | (^AudioDeviceIOBlock)(  const AudioTimeStamp*   inNow,
[cmake]       | ~^
[cmake]       |  )
[cmake] /Applications/Xcode_11.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:1343:37: error: 'AudioDeviceIOBlock' has not been declared
[cmake]  1343 |                                     AudioDeviceIOBlock                          inIOBlock)                              __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_7_0);
[cmake]       |                                     ^~~~~~~~~~~~~~~~~~
@tomoyanonymous tomoyanonymous added the bug Something isn't working label Sep 9, 2020
tomoyanonymous added a commit that referenced this issue Nov 1, 2020
# This is the 1st commit message:

update ci

# This is the commit message #2:

fix

# This is the commit message #3:

gcc compiler path

# This is the commit message #4:

reverted  llvm to 9
@drewc
Copy link

drewc commented Jan 30, 2024

I get the same error and wondering if you've managed to fix it?

@pajzd
Copy link

pajzd commented Sep 24, 2024

idem dito: : :

[ 4%] Building CXX object rtaudio/CMakeFiles/rtaudio.dir/RtAudio.cpp.o
In file included from /Users/lesupralittoralofbrownnoise/cppsketch/ext/rtaudio/RtAudio.h:890,
from /Users/lesupralittoralofbrownnoise/cppsketch/ext/rtaudio/RtAudio.cpp:44:
/System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:162:2: error: expected unqualified-id before '^' token
162 | (^AudioObjectPropertyListenerBlock)( UInt32 inNumberAddresses,
| ^
/System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:162:2: error: expected ')' before '^' token
162 | (^AudioObjectPropertyListenerBlock)( UInt32 inNumberAddresses,
| ~^
| )
In file included from /Users/lesupralittoralofbrownnoise/cppsketch/ext/rtaudio/RtAudio.h:890,
from /Users/lesupralittoralofbrownnoise/cppsketch/ext/rtaudio/RtAudio.cpp:44:
/System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:400:41: error: 'AudioObjectPropertyListenerBlock' has not been declared
400 | AudioObjectPropertyListenerBloc inListener) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_7_0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:421:41: error: 'AudioObjectPropertyListenerBlock' has not been declared
421 | AudioObjectPropertyListenerBloc inListener) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_7_0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:804:2: error: expected unqualified-id before '^' token
804 | (^AudioDeviceIOBlock)( const AudioTimeStamp* inNow,
| ^
/System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:804:2: error: expected ')' before '^' token
804 | (^AudioDeviceIOBlock)( const AudioTimeStamp* inNow,
| ~^
| )
/System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:1343:37:error: 'AudioDeviceIOBlock' has not been declared
1343 | AudioDeviceIOBlock inIOBlock) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_7_0);
| ^~~~~~~~~~~~~~~~~~
/Users/lesupralittoralofbrownnoise/cppsketch/ext/rtaudio/RtAudio.cpp: In function 'void* pulseaudio_callback(void*)':
/Users/lesupralittoralofbrownnoise/cppsketch/ext/rtaudio/RtAudio.cpp:8516:15: error: 'sched_getscheduler' was not declared in this scope
8516 | (sched_getscheduler(0) == SCHED_RR ? "" : "NOT ") <<
| ^~~~~~~~~~~~~~~~~~
make[2]: *** [rtaudio/CMakeFiles/rtaudio.dir/RtAudio.cpp.o] Error 1
make[1]: *** [rtaudio/CMakeFiles/rtaudio.dir/all] Error 2
make: *** [all] Error 2

@drewc
Copy link

drewc commented Sep 24, 2024 via email

@tomoyanonymous
Copy link
Contributor Author

Thanks for reporting. Actually, this repository is no longer maintained as you may see and I'm rewriting entire system with rust now.

https://github.com/tomoyanonymous/mimium-rs

It's almost ready to release, I'll post the announce on this repo soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants