[PYTHON] Cocos2d-x ~ Installation Guide for Mac ~

Cocos2d-x installation

Referenced URL

Get ready for cocos2d-x! http://libro.tuyano.com/index3?id=6456003

Mainly the points that stumbled above

1. Cannot execute python configuration file by setup.py

-bash: setup.py: command not found ** → Environment variable setting required! !! !! ** **

  1. Install Homebrew to mess with python settings ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  2. Use export PATH to pass Python's PATH ʻExport PATH = / usr / local / bin: $ PATHln -s /usr/local/share/python/easy_install / Users / username / Desktop / cocos2d-x-3.8.1`

In my case this was fine. By the way, the version of python is the 32-bit version of Python 2.7.10. After checking, it seems that Python 2 type 32bit has less failures. Perhaps this is the best place for engineers (or the general public) who have never worked with Python to get caught during installation.

2. The cocos command cannot be executed in the project directory after setup.py is completed.

cocos new MyCocosApp -l cpp Even if it is not reflected, even the ls command is not working. ** → This is an easy solution! !! Please restart your terminal! ** ** Apparently, the cocos command doesn't work unless you restart after setting the environment variables, and even the ls command that normally supports it doesn't work. (For some reason cd was usable)

Anyway, I was able to generate a development kit with this! !! All you have to do now is write C ++ in your Android / iOS project! (^^) /

スクリーンショット 2015-11-02 14.06.32.png

Recommended Posts

Cocos2d-x ~ Installation Guide for Mac ~
Python 3 series installation for mac
Python Tools for Visual Studio Installation Guide
nvidia-docker2 installation guide for using gpu with docker
numba installation on mac
IPMsg Log Converter for Mac
Installation notes for TensorFlow for Windows
Python 3.6 installation procedure [for Windows]
Set Up for Mac (Python)
OpenCV3 installation for Python3 @macOS
Python installation (Mac edition) (old)
Python environment construction For Mac
Ruby, Python Module Installation Guide
Ansible environment construction For Mac
Installation of scikit-learn (Mac OS X)
Python memo Anaconda installation (Mac only)
JupyterLab3.0 Debugger Installation Method for Windows
Python3 TensorFlow for Mac environment construction
If Python 3.5.0 installation fails on Mac
Teamviewer for Linux installation procedure (CentOS)
Initial settings for Mac (for data analysts)