[fpc-pascal] Cross platform mobile development
leledumbo
leledumbo_cool at yahoo.co.id
Thu Sep 8 20:05:39 CEST 2016
> I did enough research in Android for FPC to know I could do a simple OpenGL
game using the JNI but it didn’t look very complete and I never could get
the compiler built on my Mac. Is there enough of the Android NDK (I think
it’s called) ported to Pascal so that it’s useful?
I don't have Mac, but practically it shouldn't be too much different from
Linux, which is I am on. We don't port NDK, we use it. To be precise, as for
other platforms (when cross compiling), only the assembler, linker and
system libraries are used. Everything else are simply waste of space.
LAMW has 2 OpenGL ES demos (v1 and v2) to try:
https://github.com/jmpessoa/lazandroidmodulewizard/blob/master/demos/Eclipse/AppDemo1/jni/unit10.pas
https://github.com/jmpessoa/lazandroidmodulewizard/blob/master/demos/Eclipse/AppDemo1/jni/unit11.pas
they're integrated in AppDemo1, though. Not separate projects. Don't get
tricked with Eclipse in the path name, you can build just fine with Ant only
(or the provided build script:
https://github.com/jmpessoa/lazandroidmodulewizard/blob/master/demos/Eclipse/AppDemo1/build.sh).
Of course, you'll need to adjust paths inside. Your own projects will
already have it configured correctly, though.
--
View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Cross-platform-mobile-development-tp5726292p5726308.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
More information about the fpc-pascal
mailing list