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

Prebuilt OpenAL libraries for Android segfault #621

Closed
MarioLiebisch opened this issue May 29, 2014 · 8 comments
Closed

Prebuilt OpenAL libraries for Android segfault #621

MarioLiebisch opened this issue May 29, 2014 · 8 comments

Comments

@MarioLiebisch
Copy link
Member

Linking and not using the audio library is perfectly fine, but once alcOpenDevice() is called, the app segfaults:

I/DEBUG   (  180): backtrace:
I/DEBUG   (  180):     #00  pc 0002deb8  /data/app-lib/com.example.sfml-1/libopenal.so
I/DEBUG   (  180):     #01  pc 0002df84  /data/app-lib/com.example.sfml-1/libopenal.so
I/DEBUG   (  180):     #02  pc 00019320  /data/app-lib/com.example.sfml-1/libopenal.so (alcOpenDevice+780)
I/DEBUG   (  180):     #03  pc 0000493d  /data/app-lib/com.example.sfml-1/libsfml-audio.so

Verified on a Nexus 5 (Android 4.4) as well as a Transformer Prime (4.1).

Building OpenAL-Soft on my own fixes the issue.

Building from this repository especially aimed at Android NDK (repository to be put into the jni folder) works for me without any further modifications.

@eXpl0it3r
Copy link
Member

Might be a stupid question, but for what platform would that be (armabi, x86, mips, ...)?

@MarioLiebisch
Copy link
Member Author

I've been able to try armeabi and armeabi-v7a - both segfaulting. If you're referring to the repository, it builds for all supported platforms.

@AlexAUT
Copy link
Contributor

AlexAUT commented May 31, 2014

Can confirm the error. I tried your solution, but what do you mean with: "repository to be put into the jni folder"

@MarioLiebisch
Copy link
Member Author

Removed these instructions as they were incomplete and misleading (had a personal mess in my source folder).

@AlexAUT
Copy link
Contributor

AlexAUT commented May 31, 2014

Hmm, even with the "new" libopenal.so I get the segfault. (HTC one x 4.2.2)

@MarioLiebisch
Copy link
Member Author

Make sure to replace those inside your SFML source tree, then install it again and rebuild your app (ndk-make -B).

@AlexAUT
Copy link
Contributor

AlexAUT commented May 31, 2014

Reinstalled SFML with the "new" openal.so in extlib but still not working. I guess I have to wait until its fixed in repo.
But thanks for you help

@intjelic
Copy link
Member

Huge thanks to MarioLiebisch... I spent days on this issue, who knew the official OpenAL-Soft would work on Android... I hate myself lol.

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

No branches or pull requests

6 participants