Forum > Lazarus
New OpenGL Android Example
felipemdc:
--- Quote from: Laksen on November 13, 2011, 03:14:08 pm ---felipemdc, the problem with FPC_SHARED_LIB_START has been fixed in svn trunk, so it should be removed from the example
--- End quote ---
I already fixed that. That's what I ment on Reply #3 on: Today at 09:41:48 am ยป
Leledumbo:
OK, compiled. But got exception when running:
--- Quote ---E/AndroidRuntime(15688): FATAL EXCEPTION: main
E/AndroidRuntime(15688): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.pascal.opengltest/android.app.NativeActivity}: java.lang.IllegalArgumentException: Unable to load native library: /data/data/com.pascal.opengltest/lib/libmain.so
--- End quote ---
Any reason why? I have android-10 for the SDK and android-9 for the NDK (I have no idea why the NDK skips version 10, it jumps over to 14).
felipemdc:
--- Quote from: Leledumbo on November 14, 2011, 04:09:52 pm ---OK, compiled. But got exception when running:
E/AndroidRuntime(15688): FATAL EXCEPTION: main
E/AndroidRuntime(15688): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.pascal.opengltest/android.app.NativeActivity}: java.lang.IllegalArgumentException: Unable to load native library: /data/data/com.pascal.opengltest/lib/libmain.so
--- End quote ---
Another person had exactly the same error, and he was also trying to do it from Windows.
I had no problem in Linux.
some ideas:
1> Did you configure the binutils for eabi=5?
2> Did you compile your cross-compiler with software floating point?
--- Quote ---I have android-10 for the SDK and android-9 for the NDK (I have no idea why the NDK skips version 10, it jumps over to 14).
--- End quote ---
I think they jumped because they didn't change anything in the NDK between these versions, it should be no problem. For me it worked fine
Gintas:
Gee,too bad it only runs on Android 2.3+ . :(
I thought about testing it on a real hardware.
Laksen:
A related entry has surfaced over at pascalgamedevelopment here: http://www.pascalgamedevelopment.com/showthread.php?11624-Android-game-FoembJump-now-opensourced
BeRo has opensourced an Android game which apparently works in more version
Navigation
[0] Message Index
[#] Next page
[*] Previous page