Box2D-cocos2d-x
Box2D-cocos2d-x copied to clipboard
This repo uses one CMakeLists file to compile cross-platform static libs
About This Repository
- This is NOT the official Box2D standalone project. Official website is here
- the version of Box2D is 2.3.0
Prerequisite
You must setup ANDROID_NDK environment variable in your ~/.bashrc file to point to your NDK directory.
Build
At first:
cd Box2D
Build for Android
./build_android.sh
Build for iOS and Mac
Change the following line to match your own iOS SDK version
IOS_SDK_VERSION="7.1"
./build_iosmac.sh
Build for Linux
./build_linux.sh
Build for Windows, WP8 and WinRT
-
Generate VS project file from CMakeLists.txt
-
Compile the static library.