/Box2D-cocos2d-x

This repo uses one CMakeLists file to compile cross-platform static libs

Primary LanguageC++

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

  1. Generate VS project file from CMakeLists.txt

  2. Compile the static library.