aerys / minko

3D framework for web, desktop and mobile devices.
http://minko.io
Other
905 stars 210 forks source link

How to build for Android #171

Open amerkoleci opened 10 years ago

amerkoleci commented 10 years ago

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

warrenseine commented 10 years ago

Hi,

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

amerkoleci commented 10 years ago

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.

JMLX42 commented 10 years ago

It should be fixed next week.

JMLX42 commented 10 years ago

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

amerkoleci commented 10 years ago

Can't wait to see changes, thanks.

JMLX42 commented 10 years ago

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.

daiwei1999 commented 10 years ago

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

JMLX42 commented 10 years ago

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 :)

daiwei1999 commented 10 years ago

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 commented 10 years ago

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.

warrenseine commented 10 years ago

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.

DevinCharles commented 9 years ago

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...

warrenseine commented 9 years ago

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?