LoginSignup
0
1

More than 5 years have passed since last update.

MACにcocos2d-xインストール

Last updated at Posted at 2017-07-22

準備

androidやiosでビルドするためにjdkなどの設定が必要
今回めんどくさいのでスキップ

ios:
xcode : storeより

初めてインストールする場合はインストール後、以下のコマンドでビルドできるようにしとく

sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

android: ビルドツール
ant http://ant.apache.org/bindownload.cgi
SDK https://developer.android.com/sdk/index.html#Other
NDK https://developer.android.com/tools/sdk/ndk/index.html

cocos2d-xインストール

ダウンロード: http://www.cocos2d-x.org/download

解凍した後、フォルダ内のsetup.pyを実行しセットアップすることでパスが設定されcocosのコマンドが使えるようになる
また先程jdkなどをインストールしていたらここでパスを設定できる

cocosフォルダを作成

cocos new hoge -l cpp

cocos new : cocosフォルダを作成
hoge : 名前
-l cpp : 言語指定、cppはC++

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1