minko icon indicating copy to clipboard operation
minko copied to clipboard

How to build for Android

Open amerkoleci opened this issue 11 years ago • 13 comments

I saw your commits into dev branch and android build script changes, how can I build for Android minko engine?

amerkoleci avatar Aug 21 '14 13:08 amerkoleci

Hi,

The documentation is not up-to-date, but there's a start here (only tested on OS X).

warrenseine avatar Aug 21 '14 14:08 warrenseine

No, on windows it does not work, your search ANDROID with meaning of ANDROID NDK, under windows there is no "toolchains/default.txt" so probably this need to be fixed.

amerkoleci avatar Aug 22 '14 18:08 amerkoleci

It should be fixed next week.

JMLX42 avatar Aug 30 '14 07:08 JMLX42

We've made tremendous progress on the Android build, especially for Windows. The changes will be available in dev next week.

JMLX42 avatar Sep 03 '14 22:09 JMLX42

Can't wait to see changes, thanks.

amerkoleci avatar Sep 04 '14 06:09 amerkoleci

The documentation has been updated and should now be complete:

http://doc.v3.minko.io/wiki/Compiling_the_SDK_for_Android

The actual required changes for this doc to work will soon be merged in dev.

JMLX42 avatar Sep 04 '14 18:09 JMLX42

Can't wait to see the updated Android build process, the old process is quite complex.

daiwei1999 avatar Sep 11 '14 09:09 daiwei1999

As you can read on the doc above, as soon as you have properly installed the Android SDK + NDK, building for android is as simple as:

make config=android_release

And the app is automagically deployed on your Android device.

I don't think we could make this any simpler :)

JMLX42 avatar Sep 11 '14 10:09 JMLX42

I want to build Android version on Windows. I followed the doc above and found "tool\win\script\install_jni.bat" file is missing.

daiwei1999 avatar Sep 12 '14 02:09 daiwei1999

Android NDK from r8 version has already integrated with cygwin. So I think the installation process of cygwin on Windows in the doc above can be omitted.

daiwei1999 avatar Sep 12 '14 03:09 daiwei1999

I'm sorry, we're still patching things up on Windows. The documentation might not be up-to-date.

Regarding Cygwin, the documentation on the official Android website is scarce (or non-existent), so I thought it'd be better to explain it here.

warrenseine avatar Sep 12 '14 19:09 warrenseine

I'm having problems building for Android in Linux. I tried script/solution_gmake_android.sh per the documentation but that file seems to just be a link that can't be found.

I tried running ./script/solution_gmake_gcc.sh as I see that's what's contained in solution_gmake_android.sh but that doesn't do much for me either. It produces a make file but make config=android_release fails on it.

I imagine it's something simple that I'm doing wrong, just can't figure out what it is...

DevinCharles avatar Apr 11 '15 22:04 DevinCharles

The documentation says that you should run tool/lin/script/solution_gmake_android.sh to build the framework.

@DevinCharles are you trying to build the framework or a separate project? Can you detail what's failing?

warrenseine avatar Apr 16 '15 10:04 warrenseine