COCOS2DX Android packaging Environment on Linux

Source: Internet
Author: User

Android SDK Wget-c http://dl.google.com/android/android-sdk_r23.0.2-linux.tgz
sudo apt-get install-y libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses5 lib32z
sudo apt-get install OPENJDK-7-JDK
TAR-ZXVF android-sdk_r23.0.2-linux.tgz
echo ' Export android_home= ' $HOME '/downloads/android-sdk-linux ' >> ~/.BASHRC
echo ' Export path= ' $PATH: $ANDROID _home/tools: $ANDROID _home/platform-tools "' >> ~/.BASHRC
echo ' Export java_cmd= '/usr/lib/jvm/java-7-openjdk-amd64/bin/java ' >> ~/.BASHRC
Andorid SDK Manager Update
Android NDK Wget-c Http://dl.google.com/android/ndk/android-ndk-r10c-linux-x86_64.bin
chmod 777 Android-ndk-r10c-linux-x86_64.bin
./android-ndk-r10c-linux-x86_64.bin
Cocos2dx Python setup.py
Python android-build.py-p cpp-tests
Issue 1 Resolution Android Ndk:error Android.mk:cocos_freetype2_static:LOCAL_SRC_FILES points to a missing file
Reference http://blog.csdn.net/o_oxo_o/article/details/39377797
Reference http://blog.csdn.net/lxd211/article/details/23977525
Because the. A file is not uploaded on the SVN server. Similarly, it is possible that. so files. For example, if you use the Fmod library, and you are prompted to find the. So file for the Fmod library, look at the Ignore file types in the SVN settings. The general *.a and *.so are ignored. Right-click any folder and find the general properties Tortoisesvn-> properties (setting), which you can see below the right panel.
Installing the Cocos Tool

CD Cocos2d-x-3.1/tools/cocos2d-console/bin

Python install.py

Create a project Cocos New Testapk-p com.lulu.testapk-l cpp-d/home/melos1305/project/linux_bulid_apk/
Compiling apk Cocos compile-p Android--ap 20

View ~/.BASHRC with Environment variables

Export Android_home="/home/melos1305/android/android-sdk-linux"#export PATH="$PATH: $ANDROID _home/tools: $ANDROID _home/platforms"Export PATH="$PATH: $ANDROID _home/tools: $ANDROID _home/platform-tools"Export Java_cmd="/usr/lib/jvm/java-7-openjdk-amd64/bin/java"# ADD environment variable Cocos_console_root forcocos2d-Xexport Cocos_console_root=/home/melos1305/project/cocos2dx/cocos2d-x-3.1/tools/cocos2d-console/Binexport PATH=$COCOS _console_root: $PATH # ADD environment variable Ndk_root forcocos2d-Xexport Ndk_root=/home/melos1305/android/android-ndk-R10cexport PATH=$NDK _root: $PATH # ADD environment variable Android_sdk_root forcocos2d-Xexport Android_sdk_root=/home/melos1305/android/android-sdk-Linuxexport PATH=$ANDROID _sdk_root: $PATHexport PATH= $ANDROID _sdk_root/tools: $ANDROID _sdk_root/platform-tools: $PATH # ADD environment variable Ant_root forcocos2d-Xexport Ant_root=/usr/Binexport PATH= $ANT _root: $PATH

COCOS2DX Android packaging Environment on Linux

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.