Hello Gideros Team, especially
@atilim and
@ar2rsawseenI just upgraded Gideros to v2013.09.1 and updating my old version of Eclipse Android Project with new lib & jar to support asset & code encryption. However all of my custom plugin fail to load and got Fatal signal 11 (SIGSEGV) which means something might be wrong on my C-side of thing.
So... i though recompiling the .so files with new libgideros.so would solve the problem.
Next i exported new android eclipse project with options:
- encrypt asset check
- encrypt code check
- asset only uncheck
After that i deleted asset folder to make the project become gideros player for testing purpose. Importing the project to Eclipse, setup JNI, and build plugin .so. No Error when building .so, However when i require the plugin on lua side, SIGSEGV happens again...
Could you please check my plugin eclipse project? This is my old chartboost plugin, maybe i miss an important step?
https://dl.dropboxusercontent.com/u/4492321/Eclipse Chartboost Plugin.zip (temporary link)
For now i will use old version before everything is ok
Comments
looked at your project
in jni folder you have bunch of gideros headers, which are from old version.
You need to delete them and go to your gideros installation directory/sdk/include and copy all this files to your jni folder, so all the headers included in plugin would use the new header files
then it will work with the new Gideros version
http://www.nightspade.com
I also learned new tips for building android plugin in the process.
Could you tell us whether we should rebuild android .so plugin or not in case of a new version of Gideros?
http://www.nightspade.com
http://artleeapps.com/
Bubble Adventure - Colors
i hope when new version of Gideros come out, Gideros team could tell us on release note whether we should rebuild our .so or not
http://www.nightspade.com
http://artleeapps.com/
Bubble Adventure - Colors
However i usually prepare a separate special eclipse project just to generate .so files, so if there are more than one project need the plugin, i just copied .so files without configuring every project to compile JNI
Contrast it with iOS plugin integration. You usually only need to copy/paste c source (and maybe add frameworks) then just hit run.
http://www.nightspade.com
And yes rebuilding (and retesting plugins) is really tiresome and took a whole day yesterday.
@ArtLeeApps about building the plugin from source (which I usually provide in jni folder), you can use this tutorial:
http://appcodingeasy.com/Gideros-Mobile/Creating-plugins-for-Android-in-Gideros
More specifically here:
http://mobilepearls.com/labs/ndk-builder-in-eclipse/