当前位置:网站首页>Configure and install cocos2dx development environment under Tongxin UOS
Configure and install cocos2dx development environment under Tongxin UOS
2022-07-25 19:48:00 【Sanlei Technology】
linux Under the configuration installation cocos2dx
List of articles
Environmental statement
python2.7
operating system :UOS
see python edition
python -V
One 、 JAVA Environmental installation
- Download the installation software
wget https://repo.huaweicloud.com/java/jdk/8u151-b12/jdk-8u151-linux-x64.tar.gz
- Decompress package
sudo tar -zxvf jdk-8u151-linux-x64.tar.gz -C /usr/local/
- File rename
sudo mv /usr/local/jdk1.8.0_151 /usr/local/jdk1.8
- Configure environment variables
sudo vim /etc/profile
The configuration is as follows :
export JAVA_HOME=/usr/local/jdk1.8
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
- Refresh environment variable
source /etc/profile
- Test installation results
java -version
javac -version
Two 、NDK Download path
https://developer.android.com/ndk/downloads
https://dl.google.com/android/repository/android-ndk-r25-linux.zip
unzip android-ndk-r25-linux.zip
sudo mv android-ndk-r25 /usr/local/
Configure environment variables
export ANDROID_NDK_ROOT=/usr/local/android-ndk-r25
export NDK_ROOT="$ANDROID_NDK_ROOT"
3、 ... and 、 Android SDK Download and configure
Official website
https://www.androiddevtools.cn/
- download
https://dl.google.com/android/android-sdk_r24.4.1-linux.tgz
- decompression
tar -xvf android-sdk_r24.4.1-linux.tar -C /usr/local/
- To configure
vim /etr/profile
# The contents are as follows :
export ANDROID_HOME="~/.android"
export ANDROID_SDK_ROOT=/usr/local/android-sdk-linux/
Four 、 compile cocos2dx
- Download the source code
git clone https://github.com/cocos2d/cocos2d-x.git
cd cocos2d-x
python download-deps.py
- Synchronization sub module
If there is a failure , Then synchronize yourself
git submodule update --init
cocos2d-console Sub module
cd tools
git clone [email protected]:cocos2d/cocos2d-console.git
cd tools
git clone [email protected]:cocos2d/bindings-generator.git
cd tests/cpp-tests/Resources/
git clone [email protected]:dumganhar/ccs-res.git
- compile cocos2dx
- Download dependency
cd cocos2d-x
bash install-deps-linux.sh
- compile
cd cocos2d-x
mkdir build
cd build
cmake ..
make -j16
5、 ... and 、 Build a new project
- New projects .
This project is directly copied from the template project and then renamed .
cd tools/cocos2d-console
./cocos new TurnGoldCoin -l cpp -p org.arv000.turngoldcoin -d TurnGoldCoin
- Compile the project
cd TurnGoldCoin/TurnGoldCoin
mkdir build
cd build
cmake ..
make -j16
边栏推荐
- 03 isomorphism of tree 1
- How to set tiktok mobile network environment? How can tiktok break the playback volume?
- Istio exposes applications to the Internet
- 微信小程序开发之全局配置与页面配置
- Heavy! The new book "deep learning in geometry" was released, which was jointly written by imperial Institute of technology /deepmind and other figures ml Daniel. The 160 page PDF expounds the basic p
- What is idealism
- Binary tree visualization
- Ml programming skills:
- 阿姆利塔工程学院|用于情感分析的方面术语提取中优化采样的强化主动学习方法
- Mindspore1.1.1 source code compilation and installation -- errors in the core compilation stage
猜你喜欢

C语言学习日记3——realloc函数

一元函数积分学_分部积分法

The JS paging plug-in supports tables, lists, text, and images

Heavy! The new book "deep learning in geometry" was released, which was jointly written by imperial Institute of technology /deepmind and other figures ml Daniel. The 160 page PDF expounds the basic p

Skiing mobile H5 game source code download
EZDML reverse engineering import database analysis practical operation tutorial

随机梯度下降法、牛顿法、冲量法、AdaGrad、RMSprop以及Adam优化过程和理解

授权无线通信标准

六轴传感器使用学习记录

How does tiktok break zero?
随机推荐
Siemens-PLM-TeamCenter下载、安装、使用教程
AAAI 2022 | GAN的结构有“指纹”吗?从伪造图像溯源生成网络结构
Gbase 8s UDR memory management_ 03_ mi_ realloc
JS learning notes 17: DOM query exercise
Wxss template style and WXS scripting language for wechat applet development
Hash undirected graph visualization
C # add multi line and multi column text watermark in word
Successfully solved typeerror: a bytes like object is required, not 'str‘
国内常见php的CMS建站系统情况分析
[wp]ctfshow-web introductory information collection
Heavy! The new book "deep learning in geometry" was released, which was jointly written by imperial Institute of technology /deepmind and other figures ml Daniel. The 160 page PDF expounds the basic p
Flutter tips: optimizing the buildcontext you use
[wp]ctfshow-web getting started - Explosion
分享 25 个有用的 JS 单行代码
连接数据库警告 Establishing SSL connection without server‘s identity verification is not recommended.
Connecting to the database warning establishing SSL connection without server's identity verification is not recommended
创意下拉多选js插件下载
The JS paging plug-in supports tables, lists, text, and images
Split very long line of words into separate lines of max length
Six axis sensor use learning record