Search code examples
visual-studiocmake64-bitbulletbulletphysics

Compile BulletPhysics with double precision in 64-bit for Windows


I am trying to create a 64-bit windows build of Bullet Physics, with double precision enabled.

If I use the provided VS2010 project, I can build Bullet Physics in 64-bit, but if I try to #define BT_USE_DOUBLE_PRECISION, i get tons of build errors.

If I use CMake to generate a new project, I can easily enable double precision in CMakeLists.txt, but I could not find a way to get it to generate a project that builds x64.

What am I doing wrong?


Solution

  • The answer is probably obvious to anyone with some CMake experience, but I finally found it out:

    cmake -G "Visual Studio 11 Win64" 
    

    This will lead CMake to generate a proper 64bit build config for the project.