Hi everyone,

I am working on integrating FMOD Studio with my Cocos2dx cross-platform game (iOS and Android). Everything works perfectly in iOS, but in the Android project I’m running into some problems.

I’ve edited the jni/ file to find the fmod .so files (this took a while to figure out) and it compiles fine using the cocos compile command. However, when I run the project using Android Studio I get a runtime error “Fatal Signal 11” at the line system->initialize.

I searched for solutions and found that it may have something to do with the fmod.jar file, but I can’t figure out how to include this file in the project. Does Cocos2d-x have any .java files, .mk files, or other configuration files that need to be edited to connect this file to the project?

Has anyone gotten FMOD to work with Cocos2d-x on Android before? If so, what am I missing? There doesn’t seem to be much information available.


  • Mathew Block

    Can you try linking with the logging version of FMOD? This should give some information about what is going wrong in LogCat.

    You are correct about the fmod.jar, it is required. I would recommend consulting the Cocos documentation on how to add Java dependencies to the project.

  • Nick Vowell

    Thanks, that pointed me in the right direction and I was able to get it working. The missing fmod.jar file was causing the runtime error.

  • You must to post comments
Best Answer

The solution was to include the missing fmod.jar file in the project.

FMOD uses many Java only APIs to operate, it does so by calling from native code out to Java via JNI. If the fmod.jar file isn’t present we are unable to call these necessary Java only APIs.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.