I've managed to make the package linked on linux, using some dirty hacks:
- Build all libraries in the attachment
- Put it somewhere ldconfig can find (or just run ldconfig with their directories as arguments)
- Do a little modification in Laz_And_GLESv1_Canvas_h and Laz_And_GLESv2_Canvas_h by using ifdef for desktop platforms (details below)
Required changes:
// in Laz_And_GLESv1_Canvas_h
libname = {$ifdef android}'libGLESv1_CM.so'{$else}'libGL.so'{$endif};
// in Laz_And_GLESv2_Canvas_h
libname = {$ifdef android}'libGLESv2.so'{$else}'libGL.so'{$endif};
The only missing OpenGL function is glFustrumf, which I add in the dummy libjnigraphics. The idea of this is just to make the package installable in the IDE, applications will still use the android version of the libraries.
UPDATE: Ant demo project works beautifully on my MI2S
Just a suggestion: no need to rar any of the demo projects, let them as is for easy update. Compressing will only make update tracking difficult.
UPDATE #2: Eclipse demo projects easily converted to Ant project, just need to copy build.xml in the AppAntDemo1. I found some bugs with these demos, such as not being able to exit app by pressing back, but that's just a little bug which I think could easily be fixed.