Example
Python is a popular programming language that is widely used by both beginners and professional developers. Modern versions of Mac OS support Python 2.7.x (or Python 2.6.1 in older versions), but many users need to upgrade to Python 3.6 or 3.7. Today I will explain how to install the Python 3 update on a Mac in two different ways. Installing Python 3 on Mac OS X. The version of Python that ships with OS X is great for learning, but it’s not good for development. The version shipped with OS X may be out of date from the official current Python release, which is considered the stable production version.
OVERVIEW
cocos2d-x is an open source, cross-platform game engine. It allows developers to code in C++, Lua and Javascript deployment into iOS, Android, Windows Phone, Mac OS X, Windows Desktop and Linux.
PREREQUISITES
Build Requirements
- Mac OS X 10.7+, Xcode 4.6+
- Windows 7+, VS 2012+
- Ubuntu 12.10+, CMake 2.6+
- Python 2.7.5
- NDK, JDK, ANT (Android development)
Runtime Requirements
- iOS 5.0+ for iPhone / iPad games
- Android 2.3+ for Android games
- Windows Phone 8+ for Windows Phone games
- OS X v10.6+ for Mac games
- Windows 7+ for Windows games
Installation
Download everything below:
After downloading everything above,
- unzip Cocos2d-x
- install the JDK and at the same time create a new variable called: JAVA_HOME and give it the path to where you installed the JDK above.
- unzip the Android SDK and NDK to the same root location. (maybe: ~/AndroidDev)
- install Python and take note of where you placed it.
- extract Apache Ant and place the entire folder where you wish to keep it. Take note of where you placed it.
- add the paths for Apache Ant and Python to your PATH variable.
- reboot
- now, test your environment before continuing. Launch a command prompt and execute:
ant
python
If everything works it is time to run setup.py to configure your Android development environment. This will set the necessary environment variables needed. If you haven't configured this environment before, you will be prompted to enter paths for variables that are not found. You run setup.py from the directory Cocos2d-x is in.
Inside your Cocos2d-x directory run:
python setup.py
caution: You must not use the ~ sign. Use the full path to your home directory. Otherwise, the scripts will fail due to error path value.
- Now it will ask for NDK_ROOT path. Here, enter the extracted NDK directory path:
~/android-ndk-r10e
- SDK_ROOT. Here, enter the Android SDK path:
~/android-sdk-macosx
- ANT_ROOT. Here, enter the Apache ANT bin path:
~/apache-ant-1.9.6/bin
- Reboot
Python For Android Mac Os X El Capitan
Vola, the cocos2d-x has been successfully setup on your system.
Python For Android Mac Os X 10.10
Related Tags
Python Os X
I wondered if Apple will make Python readily available for Sierra. I just upgraded but, really wish I had not as I have no means to return to El Capitan for gone are the days when we could all rule our own machines, and enjoy doing scripting progrms for our own entertainment such as Hypercard. Those days were better that today when shareware was exciting, and computing a lot more fun. I tried to find out from Apple about any programs I could enjoy in the privacy of my own machine without being expected to join in a world community and wishing to know all about marketing an app for the phone. I am a simple type who likes to make games and ideas for only me, but without knowing 'C' I am stuffed. I may need to buy another computer to gain El Capitain once again or hang around in the Modern world with sierra 'slug', and continue to find my photo disk takes 3 trys to get it to registar, and wonder if I to will be allowed to learn Python or for that use my computer for anything at all without inviting in the Microsoft world of Bill Gates who we all know always uses a third party for nobodys like me, and like most of the USA want a big chunk of everyones life. The money worshipping misers with their mental problem of hoarding are happy. It seems to me that my compuer is nothing really more than a music station and extention of a camera neither of which I am the slightest bit interested in.
MacBook Pro, macOS Sierra (10.12)
Posted on