-
Notifications
You must be signed in to change notification settings - Fork 97
Build Instructions
Andres Traks edited this page Oct 23, 2016
·
15 revisions
- CMake
- CMake-compatible C++ compiler (Visual Studio, GCC, etc.)
- C# compiler (Visual Studio or Mono C# Compiler)
- Fetch Bullet and BulletSharp
- git clone https://github.com/bulletphysics/bullet3
- git clone https://github.com/AndresTraks/BulletSharpPInvoke
- Generate libbulletc solution files with CMake
- Set the source code directory to BulletSharpPInvoke/libbulletc
- Set the build directory to e.g. BulletSharpPInvoke/libbulletc/build
You can change these options:
- BULLET_INCLUDE_DIR - the location of bullet3/src (autodetected)
- CMAKE_BUILD_TYPE - Release, Debug, MinSizeRel or RelWithDebInfo
- CMAKE_CXX_FLAGS - To force Bullet3 library path on Linux, you may add -Wl,-rpath=pathToBullet3Libs
- USE_DOUBLE_PRECISION - double precision is currently not available for P/Invoke, but can be set for libbulletc alone
- Build libbulletc
a. On Windows, open BulletSharpPInvoke/libbulletc/build/libbulletc.sln and build the solution.
b. On Unix, open a terminal at BulletSharpPInvoke/libbulletc/build and run "make".
- Open BulletSharpPInvoke/BulletSharpPInvoke/BulletSharpPInvoke.sln and build the solution.