Skip to content
Andres Traks edited this page Oct 22, 2019 · 15 revisions

Prerequisites

  • CMake
  • CMake-compatible C++ compiler (Visual Studio, GCC, etc.)
  • C# compiler (Visual Studio or Mono C# Compiler)

Instructions

1. Fetch Bullet and BulletSharp

You should have this folder structure:

  • <root_folder>
    • bullet3
      • CMakeLists.txt
      • ...
    • BulletSharpPInvoke
      • BulletSharp
      • libbulletc
        • CMakeLists.txt
        • ...

2. 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
  • USE_DOUBLE_PRECISION - double precision is currently not available for P/Invoke, but can be set for libbulletc alone
  • BULLET2_MULTITHREADING - to enable multithreading, select BULLET2_MULTITHREADING, press Configure and then select available libraries: BULLET2_USE_PPL_MULTITHREADING, BULLET2_USE_OPEN_MP_MULTITHREADING, BULLET2_USE_TBB_MULTITHREADING

3. Build libbulletc

  • On Windows, open BulletSharpPInvoke/libbulletc/build/libbulletc.sln and build the solution.
  • On Unix, open a terminal at BulletSharpPInvoke/libbulletc/build and run "make".

4. Open BulletSharpPInvoke/BulletSharp/BulletSharpPInvoke.sln and build the solution.

Clone this wiki locally