当前位置:网站首页>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
边栏推荐
- Gbase 8s UDR memory management_ 02_ mi_ dalloc
- High number_ Chapter 3 learning experience and summary of multiple integral
- Nezha d1-h test microbench
- 由一个蓝桥杯基础题报时助手而引出的常见误区
- 重磅!《几何深度学习》新书发布,帝国理工/DeepMind等图ML大牛共同撰写,160页pdf阐述几何DL基础原理和统一框架
- Siemens PLM Teamcenter download, installation and use tutorial
- From Tong Dai to "Tong Dai" and then to brand, the beauty of sudden profits has changed and remained unchanged
- Analysis of CMS station building system of common PHP in China
- 伺服驱动器在机器人上的研究与应用
- VMware 虚拟机下载、安装和使用教程
猜你喜欢

Creative drop-down multi choice JS plug-in download

Sentinel simple current limiting and degradation demo problem record

A good way to generate interface documents efficiently

binarySearch基础二分查找

分享 25 个有用的 JS 单行代码

重磅!《几何深度学习》新书发布,帝国理工/DeepMind等图ML大牛共同撰写,160页pdf阐述几何DL基础原理和统一框架

软件设计师下午真题:2009-2022

PyTorch 模型 onnx 文件的导出和调用

C merge set

Kcon 2022 highlights and agenda revealed!
随机推荐
Wechat applet 10 - wechat template
Digital informatization (enumerate assumptions first, and then see whether the conditions are met) (1089 werewolf kill - simple version)
Shopping guide for high-end flagship projectors: dangbei X3 pro and dangbei F5 are more immersive!
The use of new promise, async and await in the project, and the practical application of promise.all in the project
浅谈接口加密
ERROR: role “admin“ cannot be dropped because some objects depend on itDETAIL:
C language learning diary 3 - realloc function
微信小程序10-微搭模板
How to get started quickly in software testing
A good way to generate interface documents efficiently
统信UOS下配置安装cocos2dx开发环境
wallys//IPQ5018/IPQ6010/PD-60 802.3AT Input Output 10/100/1000M
Website construction of information exchange platform for China Africa South South cooperation based on PHP
Rainbond插件扩展:基于Mysql-Exporter监控Mysql
Beihang and other "deep learning event extraction" literature review paper, 27 page PDF describes the current trend
TFIDF examples and explanations
NPM semantic version control, solution console prop being mutated: "placement" error
On interface encryption
PyTorch 模型 onnx 文件的导出和调用
蓝桥杯基础练习——矩阵的回形取数(C语言)