Crash on Android

I am trying to run the basic Hello World example on Android but it crashes with:

Cannot load library: soinfo_relocate(linker.cpp:975): cannot locate symbol “__exidx_end” referenced by “libgame.so”…

Any ideas what it could be?

/Johannes

Hi,

I have the same issue ! my project run with android 4.2 on simulator but it failed to run on nexus 10 device.

I found this http://code.opencv.org/issues/2537, the same error on opencv, don’t know if it’s relevent …

the guy say it was fixed by switching on gcc-4.4.3 toolchain … don’t know how to do that

I uses android-ndk-r7-crystax-5.beta2

Fixed ! it works with the Official Android NDK, Revision 8c.

So something wrong with the linker of the android-ndk-r7-crystax-5.beta2 if someone want to investigate …

For my part, I switch on official ndk

Thank you. You solved my problem.

Julien becool wrote:

Fixed ! it works with the Official Android NDK, Revision 8c.
>
So something wrong with the linker of the android-ndk-r7-crystax-5.beta2 if someone want to investigate …
>
For my part, I switch on official ndk

Hello, I’m having the same problem. How did you did you switch your android ndk? Did you just change the ‘include’ path in the project properties?

Yes the ndk path in the include properties and also the env variable NDK_ROOT:

  • in eclipse if you compile from here
  • in your shell if you compile from console with native_build.sh

Julien becool wrote:

Yes the ndk path in the include properties and also the env variable NDK_ROOT:

  • in eclipse if you compile from here
  • in your shell if you compile from console with native_build.sh

Thanks, but after switching, I get this error:
make: * [obj/local/armeabi/libgame.so] Error 1

David Small wrote:

Julien becool wrote:
> Yes the ndk path in the include properties and also the env variable NDK_ROOT:
> - in eclipse if you compile from here
> - in your shell if you compile from console with native_build.sh
>
Thanks, but after switching, I get this error:
make: * [obj/local/armeabi/libgame.so] Error 1

I’ve tried countless platform api’s wit different minsdk values. I still can’t get it to work. Any suggestions at all?

Don’t know … I google for you and found this http://www.cocos2d-x.org/boards/6/topics/1753

Don’t know … I google for you and found this http://www.cocos2d-x.org/boards/6/topics/1753

Julien becool wrote:

Don’t know … I google for you and found this http://www.cocos2d-x.org/boards/6/topics/1753

How does thread relate to my problem?

can you give the complete log of your error ?

I need more than “make: * [obj/local/armeabi/libgame.so] Error 1” to help you …