I’m trying to compile HelloCpp android application with Eclipse on Ubuntu 13.04.
I’m getting this text when try to “Run As ~~> Android Application" in Eclipse:
<pre>* Build of configuration Default for project HelloCpp*
bash /home/pradmure/cocos2/samples/Cpp/HelloCpp/proj.android/build_native.sh
NDK_ROOT = /home/pradmure/NDK-r8
COCOS2DX_ROOT = /home/pradmure/cocos2/samples/Cpp/HelloCpp/proj.android/…/…/…/…
APP_ROOT = /home/pradmure/cocos2/samples/Cpp/HelloCpp/proj.android/…
APP_ANDROID_ROOT = /home/pradmure/cocos2/samples/Cpp/HelloCpp/proj.android
Using prebuilt externals
- /home/pradmure/NDK-r8/ndk-build~~C /home/pradmure/cocos2/samples/Cpp/HelloCpp/proj.android NDK_MODULE_PATH=/home/pradmure/cocos2/samples/Cpp/HelloCpp/proj.android/…/…/…/…:/home/pradmure/cocos2/samples/Cpp/HelloCpp/proj.android/…/…/…/…/cocos2dx/platform/third_party/android/prebuilt
make: Entering directory `/home/pradmure/cocos2/samples/Cpp/HelloCpp/proj.android’
Install : libhellocpp.so => libs/armeabi/libhellocpp.so
make: Leaving directory `/home/pradmure/cocos2/samples/Cpp/HelloCpp/proj.android’
* Build Finished*</pre>
Also get this error”Your project contains error(s), please fix them before running your application.“. I don’t see any errors in the text above.
I’m use cocos2d-x-2.1.5
What I do:
- install Eclipse from ubuntu repos
- install sdk with Eclipse (4.3 and 2.2 versions)
- download ndk from there http://www.crystax.net/en/android/ndk#download and point to it in local.properties
- then import all”Cpp" samples in Eclipse and then try to “Run As”
How to compile and run android application on Linux? Can anyone get link on up to date tutorial?