I have a crossplatform application, that works already perfect with fmod on windows, linux, osx and ios. Just android is not working. I tried everything, but when i call
fmod_system->init(32, FMOD_INIT_NORMAL, 0);
i get a segmentation fault. I presume the problem is, that my application is build against the gnustl as i make heavy use of C++11 features and fmod is build against the standard or stlport. The call to
before the init works fine.
Is it possible to get a native activity with gnustl running with fmod?
A minimal modification to the examples would just look like this:
For 3D example:
Replace in examples/eclipse/3d/jni/Application.mk
APP_STL := stlport_shared
APP_STL := gnustl_shared
as the common_platform.cpp and common.cpp and example.cpp (3d.cpp) will get compiled against gnustl and call fmod code which was precompiled with the standard stl from the .so, a segmentation fault will be rised.
The 3d example works perfectly with stlport_shared, but as i already wrote, this is not an option for me, as i need the full gnustl to get the full C++11 feature set. And this works fine for every other platform.
I really wish you could help me with this. I dont want a special (clumsy) code way with OpenSL or whatever just for android as i really enjoy working with fmod.
You can only select a single C++ runtime that all your code will
depend on. It is not possible to mix shared libraries compiled against
different C++ runtimes.