- Cocos2d-x by Example:Beginner's Guide(Second Edition)
- Roger Engelbert
- 246字
- 2021-07-23 20:00:23
Time for action – installing Cocos2d-x
Open Terminal or command prompt and navigate to the Cocos2d-x extracted folder:
- You can do this by typing
cd
(that is,cd
and a space) and then dragging the folder to the Terminal window and hitting Enter. In my machine this looks like:cd /Applications/Dev/cocos2d-x-3.4
- Next, type
python setup.py
. - Hit Enter. You will be prompted for the paths to the NDK, SDK and Apache ANT root. You must drag each one of the folders to the Terminal window, making sure to delete any extra spaces at the end of the path and hit Enter. So for the NDK I get:
/Applications/Dev/android-ndk-r10c
- Next, it's the path for the SDK. Once again, I drag the folder that I have stored inside Eclipse's folder:
/Applications/eclipse/sdk
- Next, it's the path to ANT. If you have it properly installed on your machine, the path will be something like
usr/local/bin
and the setup script will find it for you. Otherwise, you can use the one you downloaded and extracted. Just point to thebin
folder inside it:/Applications/Dev/apache-ant-1.9.4/bin
- The last step is to add these paths to your system. Follow the last instruction in the window where it says: Please execute command: "source /Users/YOUR_USER_NAME/.bash_profile" to make added system variables take effect. You can copy the command inside the quotes, paste it, and hit Enter.
推薦閱讀
- UML和模式應用(原書第3版)
- Python機器學習:數據分析與評分卡建模(微課版)
- 企業級Java EE架構設計精深實踐
- Debian 7:System Administration Best Practices
- Java Web應用開發技術與案例教程(第2版)
- Visual Basic程序設計上機實驗教程
- 深入淺出React和Redux
- Babylon.js Essentials
- Spring Boot+Vue全棧開發實戰
- Android系統下Java編程詳解
- Mastering Bootstrap 4
- Java RESTful Web Service實戰
- Spark技術內幕:深入解析Spark內核架構設計與實現原理
- 現代JavaScript編程:經典范例與實踐技巧
- Flutter for Beginners