Forum > Other OS

Newbie questions about cross-compile and android apk's

(1/3) > >>

cpicanco:
I have compiled a program using ppcrossarm. It is just a form (customdraw LCLWidget).


1) Is it possible to make an APK from this using ant?
2) If yes, how. If no, what should I do to end up with an apk??

Leledumbo:

--- Quote from: cpicanco on May 19, 2017, 04:40:15 am ---I have compiled a program using ppcrossarm. It is just a form (customdraw LCLWidget).


1) Is it possible to make an APK from this using ant?
2) If yes, how. If no, what should I do to end up with an apk??

--- End quote ---
1) Yes
2) Make build.xml as required by ant
This is an (very) old example project of mine, I don't know if latest Android SDK/NDK & Ant can still build it or not, but you should get the idea by examining android folder in the source. Note that the files there refer to hardcoded path and keystore file (not needed for debug build AFAIR) which you must modify, because it's specific to my machine.

EDIT:
Link forgotten: https://bitbucket.org/leledumbo/javanese-chess

cpicanco:
Thanks Leledumbo. Indeed, most docs I have found describing the ant alternative is from 2013-2011. Theses docs depends on "~/android/sdk/tools/android create project" in order to build the "build.xml" and java enviroment, afaik. So the missing part for me is how to create and configure the "build.xml". Would you mind pointing to which source this "android folder" lives?

cpicanco:
So, I am really not sure where is this "android folder" you have suggested to look into. The androidlcl example is not using ant to build the apk, instead it is using another alternative (unknown for me). I am guessing it is explicitly assembling/aligning the apk file.

lazandroidmodulewizard uses ant here: 
https://github.com/jmpessoa/lazandroidmodulewizard/tree/master/demos/GUI/AppDemo1

But I am having a difficult time reading the code and "get the idea". So far I have the following:

https://github.com/cpicanco/s]"]>Blockedlus_control/blob/master/docs/compiling/cross_compiling_android.md

Leledumbo:

--- Quote from: cpicanco on May 20, 2017, 03:54:47 pm ---So, I am really not sure where is this "android folder" you have suggested to look into.

--- End quote ---
There: https://bitbucket.org/leledumbo/javanese-chess/src/dcd87c6ee4421f5c949a45827bd47f25ebc33395/android/?at=default

Navigation

[0] Message Index

[#] Next page

Go to full version