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

Broken in Big Sur #94

Open
alekmlynek opened this issue Jan 4, 2021 · 10 comments
Open

Broken in Big Sur #94

alekmlynek opened this issue Jan 4, 2021 · 10 comments

Comments

@alekmlynek
Copy link

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] ...

@LunaTheFoxgirl
Copy link
Contributor

LunaTheFoxgirl commented Jan 4, 2021

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)

@LunaTheFoxgirl
Copy link
Contributor

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.

@markldn
Copy link

markldn commented Jan 5, 2021

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)

@galvadiz
Copy link

galvadiz commented Jan 6, 2021

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? :(

@RommelTJ
Copy link

RommelTJ commented Jan 7, 2021

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.

@AlexanderWillner
Copy link
Contributor

Actually, works fine here just following the changes in #96

@roko-p
Copy link

roko-p commented Dec 29, 2021

@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.))

@AlexanderWillner
Copy link
Contributor

Probably you've to set accessibility permission in the system settings first for Terminal.app:

Untitled

@roko-p
Copy link

roko-p commented Dec 29, 2021

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

@roko-p
Copy link

roko-p commented Dec 29, 2021

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 #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?

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

7 participants