Login  Register

Recreating Jogl2 Android demo projects in Eclipse

Posted by asambol on Nov 20, 2012; 3:06pm
URL: https://forum.jogamp.org/Recreating-Jogl2-Android-demo-projects-in-Eclipse-tp4027079.html

Hi.

I would like to port my Jogl2 application to Android tablet (Google Nexus 7). The first step I tried to do was creating a simple project, like jogl.test.apk.

I made the following steps:

1. I did
adb install gluegen-rt.apk
adb install jogl.all-android.apk
adb install jogl.android-launcher.apk

I tried both the current version from the repository, the version from Google play, debug signed versions and I even tried signing the unsigned versions.
This part works fine in all of the above cases when starting your jogl.test.apk tests.

2. I created a new Android project in Eclipse, inside package my.package. I added your classes NEWTRedSquareES2Activity and NEWTRedSquareES2ActivityLauncher to my package, and of course, the RedSquareES2 class.

Inside the NEWTRedSquareES2ActivityLauncher, I changed the Intent to:
final Intent intent = new Intent(this, my.package.NEWTRedSquareES2Activity.class); - so it doesn't call your classes from jogl.test.apk.

3. At this point, I got many errors so I included the following external jars to java build path, just to make Eclipse happy:
gluegen-rt-android.jar
gluegen-rt-natives-android-armv6.jar
jogl-all-android.jar
jogl-all-natives-android-armv6.jar

4. My manifest file looks like this: http://pastebin.com/H957x3bi

Problem:

When I try to launch my project on the tablet, I get the following error:
[2012-11-20 15:25:04 - Jogl2CES2013_Android] Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY
[2012-11-20 15:25:04 - Jogl2CES2013_Android] Please check logcat output for more details.
[2012-11-20 15:25:04 - Jogl2CES2013_Android] Launch canceled!

It seems that my project can't see the packages installed on my tablet.

Could I get any help on that matter?

Thanks,
Alan