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

Can't compile on macOS 10.15 Silicon #1028

Closed
Drun555 opened this issue Jun 30, 2022 · 5 comments
Closed

Can't compile on macOS 10.15 Silicon #1028

Drun555 opened this issue Jun 30, 2022 · 5 comments
Labels
next release fixed in develop branch and will be part of the next release

Comments

@Drun555
Copy link

Drun555 commented Jun 30, 2022

Firstly, there was a error in utils.hpp

note: 'kIOMasterPortDefault' has been explicitly marked deprecated here

because kIOMasterPortDefault was renamed to kIOMainPortDefault. If you manually change this, the build continues, but only to crash later at 9% with 6 errors. Mostly there's boost-related deprecation errors.

Steps to Reproduce

  1. Try to compile with instructions from README.md
  2. Fail, then try to compile with instructions from here: Snapclient build fails on MacOS BigSur on Apple Silicon #896
  3. Deprecation issues everywhere

Environment details

  • OS: macOS 10.15
  • Latest snapcast, main/delevop branch
  • Self compiled

Attach logfile if applicable
cmake_log.txt

@badaix
Copy link
Owner

badaix commented Jun 30, 2022

Which xcode version do you use?

If someone has unused Mac hardware: I'm accepting donations, please send it to my private address ;)

@Drun555
Copy link
Author

Drun555 commented Jun 30, 2022

Which xcode version do you use?

➜  ~ /usr/bin/xcodebuild -version
Xcode 13.4.1
Build version 13F100

@badaix
Copy link
Owner

badaix commented Jun 30, 2022

Xcode 13.4.1 seems to work (see this run). I guess that you did not add the CXX flag -DCMAKE_CXX_FLAGS="... -Wno-deprecated-declarations". You could also remove this option: -DWERROR=ON.
Please note that nothing is crashing, only the compilation stops because of the deprecation warning, in combination with the setting that warnings should be handled as errors.

@badaix
Copy link
Owner

badaix commented Jun 30, 2022

The develop branch should now work without the -Wno-deprecated-declarations flag: c77040e

@Drun555
Copy link
Author

Drun555 commented Jun 30, 2022

Thank you for fast response!

Even after your commit, I still got issue below

[  9%] Linking CXX executable ../../bin/snapserver
ld: library not found for -lsoxr
clang: error: linker command failed with exit code 1 (use -v to see invocation)

So I did additional export LIBRARY_PATH="$LIBRARY_PATH":/opt/homebrew/Cellar/libsoxr/0.1.3/lib/ and it worked!

Thanks for this project, it's just fantastic piece of work. Multiroom + LedFX are finally working!

@badaix badaix closed this as completed Jun 30, 2022
@badaix badaix added the next release fixed in develop branch and will be part of the next release label Jul 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
next release fixed in develop branch and will be part of the next release
Projects
None yet
Development

No branches or pull requests

2 participants