I (cross)compiled a binary using Android-NDK with no errors during the compilation/linking phase. The application is statically linked.
Using a Nesux7 emulator I execute:
$ adb shell mount -o remount,rw /system
$ adb push myApp /system/bin
$ adb shell /system/bin/myApp
It works "OK" and prints the correct output.
Then I create the final apk and install on a real phone. It fails to execute. Debugging the app:
$ adb shell
$ run-as com.blablabla.myapp
$ cd /data/data/com.blablabla.myapp/files/bin
$ ./myApp
next error is raised:
reloc_library[1306]: 21538 cannot locate 'log2'...
CANNOT LINK EXECUTABLE
On another post (NDK: libm static linking) somebody complains about differences between libm.a and libm.so, but anyway, since it works on my emulator, I think the compilation is "sort of OK".
I'm completly stuck at this point. Any idea?