Skip to content

Using FluidSynth on Android crashes at runtime #1439

Answered by derselbst
selimbousbih asked this question in Q&A
Discussion options

You must be logged in to vote

First of all, this is not a crash. It's a runtime error that results in an exception. Exceptions can be handled gracefully.

Yes, fluidsynth has been compiled against openMP. This is correctly noted in the cmake\fluidsynth\FluidSynthConfig.cmake. You are not using this file. You are also not using the included pkg-config file. Instead, you have decided to import all of fluidsynth's dependencies manually. I would call this approach questionable.

The error you see is caused by the runtime linker failing to discover the libomp.so file included in the Android NDK. Try setting LD_LIBRARY_PATH accordingly or copy over the libs from the NDK into your runtime directory.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@selimbousbih
Comment options

Answer selected by selimbousbih
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants