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

macOS buils fails for Sequoia #77

Open
diegofpb opened this issue Jan 27, 2025 · 1 comment
Open

macOS buils fails for Sequoia #77

diegofpb opened this issue Jan 27, 2025 · 1 comment

Comments

@diegofpb
Copy link

Hello,

I had difficulty compiling dablin on MacOS Sequoia, 15.2 (24C101). I followed the instructions in the README, installing the dependencies with Homebrew, but I kept getting this error:

$ sudo make                                                                                                    
[  9%] Built target fec
[ 13%] Built target rs_speedtest
[ 18%] Built target rstest
[ 20%] Building CXX object src/CMakeFiles/dablin.dir/sdl_output.cpp.o
In file included from /Users/diego/Developer/other-projects/dablin/src/sdl_output.cpp:19:
In file included from /Users/diego/Developer/other-projects/dablin/src/sdl_output.h:33:
/Users/diego/Developer/other-projects/dablin/src/tools.h:173:20: error: delegating constructors are permitted only in C++11
  173 |         AUDIO_SERVICE() : AUDIO_SERVICE(subchid_none, false) {}
      |                           ^~~~~~~~~~~~~
1 error generated.
make[2]: *** [src/CMakeFiles/dablin.dir/sdl_output.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/dablin.dir/all] Error 2
make: *** [all] Error 2

Could you let me know if I could fix it somehow?

Thanks :)

@diegofpb
Copy link
Author

So I saw that adding add_compile_options(-std=c++11 -O2) in the CMakeLists.txt it enables the compilation, but I would not be very clear where in the file to add it so that it only happens in case of complication with macOS :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant