bucklespring
bucklespring copied to clipboard
Broken in Big Sur
The documentation is really outdated. This no longer works on latest MacOS versions.
AL_API void AL_APIENTRY alSourcei( ALuint sid, ALenum param, ALint value ) OPENAL_DEPRECATED; ^ main.c:362:3: error: 'alGetError' is deprecated: first deprecated in macOS 10.15 - OpenAL is deprecated in favor of AVAudioEngine [-Werror,-Wdeprecated-declarations] ...
Seems like that won't be fixable without rewriting bucklespring with a macOS specific version.
The error basically says that the audio system that bucklespring uses is not longer supported on macOS (OpenAL is still supported on Windows and Linux).
I really don't know if people are willing to invest time in to writing a new audio system for bucklespring and making it only be used on macOS (Windows and Linux does NOT support AVAudioEngine)
A possible solution would be to require a software OpenAL implementation, though. I think OpenAL-soft compiles on macOS? Though I don't know what would need to be done to link against it; I haven't used macOS in a while now.
It works by removing -Werror from Makefile
However there was another error with the prereq alure. Error: alure has been disabled because it has a removed upstream repository!
Had to do this to fix that: Download http://web.archive.org/web/20190529213651/https://kcat.strangesoft.net/alure-releases/alure-1.2.tar.bz2 Unpack, go to build, cmake .., make, make install
After this bucklespring compiled and sounds good (m1 / Big Sur)
It works by removing -Werror from Makefile
However there was another error with the prereq alure. Error: alure has been disabled because it has a removed upstream repository!
Had to do this to fix that: Download http://web.archive.org/web/20190529213651/https://kcat.strangesoft.net/alure-releases/alure-1.2.tar.bz2 Unpack, go to build, cmake .., make, make install
After this bucklespring compiled and sounds good (m1 / Big Sur)
I did not understand how to install alure after downloading it. Can you explain me please? :(
I did not understand how to install alure after downloading it. Can you explain me please? :(
Unpack with:
tar -xvf alure-1.2.tar.bz2
Go to build:
cd alure-1.2/build
Cmake (if you don't have it installed, you can do so with brew install cmake
):
cmake ..
Then you run make
and make install
.
Actually, works fine here just following the changes in #96
@AlexanderWillner Thank you! I've just tried to install and run bucklespring after several years on macOS again, and everything compiled successfully it seems.
However, when I run ./buckle
(or sudo ./buckle
), there are no sounds on key presses, even though it starts without any errors.
afplay wav/01-0.wav
does play the sound, if that means anything.
Do you have any idea if I'm doing anything wrong? (I'm on Big Sur (11.6.2.))
Probably you've to set accessibility permission in the system settings first for Terminal.app:
Probably you've to set accessibility permission in the system settings first for Terminal.app:
Hey, thanks for the reply @AlexanderWillner .
I have done that (I actually got an error first when trying to run ./bucklespring
before giving Terminal that permission), and even quit and restarted Terminal after that just in case, but still no sound output
Ah, it actually does play the sounds if I keep pressing the same key.
Or when typing in a normal way, there's a sound every 5-10 key presses, but most often only the "background" sound.
So pretty much the issue https://github.com/zevv/bucklespring/issues/60 again/still, but now it seems even more pronounced.
I don't understand how it works fine for you other folks on macOS 🤔 Do you also have the 1.2_1
version of alure
?