LiquidFun Build and Run Instructions
|
You can use cmake to generate an Xcode project for LiquidFun's Testbed and Unittests on OS X.
Alternatively, you can download a pre-generated Xcode project from the release page. The Xcode project is free of host-specific dependencies.
These are the minimum required versions for building LiquidFun on OS X:
DISPLAY
environment variable for Xquartz, which enables sample applications to run correctly.When working directly with the source, you can generate the Xcode project using cmake. cmake version 2.8.12.1 or above is required to build this project on OS X 10.9 (Mavericks). For example, the following generates the Xcode project in the liquidfun/Box2D directory.
cd liquidfun/Box2D cmake -G "Xcode"
liquidfun/Box2D/Box2D.xcodeproj
to open the project in Xcode.Scheme
, for example "Testbed-->My Mac 64-bit", from the combo box to the right of the "Run" button.Developers modifying the LiquidFun library can verify that it is still working correctly by executing the provided unit tests.
Use the run_tests.sh script to execute unit tests:
./liquidfun/Box2D/Unittests/run_tests.sh