bullet cmake compilation errors

sefiroths
Posts: 21
Joined: Thu Nov 11, 2010 1:45 pm

bullet cmake compilation errors

Post by sefiroths »

i have installed the latest mingw and eclipse for c++
i have used cmake 2.8.3 and tried to compile for eclipse cdt4 for mingw.
in all cases i have this errors:

Code: Select all

CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 2.8)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

   Entering             C:/commesse/macosx/bullet-2.77/src/MiniCL
CMake Error at MiniCL/CMakeLists.txt:19 (SET_TARGET_PROPERTIES):
  set_target_properties called with incorrect number of arguments.


CMake Error at MiniCL/CMakeLists.txt:20 (SET_TARGET_PROPERTIES):
  set_target_properties called with incorrect number of arguments.


   Returning to         C:/commesse/macosx/bullet-2.77/src
   Entering             C:/commesse/macosx/bullet-2.77/src/BulletMultiThreaded
CMake Error at BulletMultiThreaded/CMakeLists.txt:68 (SET_TARGET_PROPERTIES):
  set_target_properties called with incorrect number of arguments.


CMake Error at BulletMultiThreaded/CMakeLists.txt:69 (SET_TARGET_PROPERTIES):
  set_target_properties called with incorrect number of arguments.


   Entering             C:/commesse/macosx/bullet-2.77/src/BulletMultiThreaded/GpuSoftBodySolvers
   Entering             C:/commesse/macosx/bullet-2.77/src/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL
   Returning to         C:/commesse/macosx/bullet-2.77/src/BulletMultiThreaded/GpuSoftBodySolvers
   Entering             C:/commesse/macosx/bullet-2.77/src/BulletMultiThreaded/GpuSoftBodySolvers/CPU
CMake Error at BulletMultiThreaded/GpuSoftBodySolvers/CPU/CMakeLists.txt:20 (SET_TARGET_PROPERTIES):
  set_target_properties called with incorrect number of arguments.


CMake Error at BulletMultiThreaded/GpuSoftBodySolvers/CPU/CMakeLists.txt:21 (SET_TARGET_PROPERTIES):
  set_target_properties called with incorrect number of arguments.


   Returning to         C:/commesse/macosx/bullet-2.77/src/BulletMultiThreaded/GpuSoftBodySolvers
   Returning to         C:/commesse/macosx/bullet-2.77/src/BulletMultiThreaded
   Returning to         C:/commesse/macosx/bullet-2.77/src
   Entering             C:/commesse/macosx/bullet-2.77/src/BulletSoftBody
CMake Error at BulletSoftBody/CMakeLists.txt:40 (SET_TARGET_PROPERTIES):
  set_target_properties called with incorrect number of arguments.


CMake Error at BulletSoftBody/CMakeLists.txt:41 (SET_TARGET_PROPERTIES):
  set_target_properties called with incorrect number of arguments.


   Returning to         C:/commesse/macosx/bullet-2.77/src
   Entering             C:/commesse/macosx/bullet-2.77/src/BulletCollision
CMake Error at BulletCollision/CMakeLists.txt:240 (SET_TARGET_PROPERTIES):
  set_target_properties called with incorrect number of arguments.


CMake Error at BulletCollision/CMakeLists.txt:241 (SET_TARGET_PROPERTIES):
  set_target_properties called with incorrect number of arguments.


   Returning to         C:/commesse/macosx/bullet-2.77/src
   Entering             C:/commesse/macosx/bullet-2.77/src/BulletDynamics
CMake Error at BulletDynamics/CMakeLists.txt:82 (SET_TARGET_PROPERTIES):
  set_target_properties called with incorrect number of arguments.


CMake Error at BulletDynamics/CMakeLists.txt:83 (SET_TARGET_PROPERTIES):
  set_target_properties called with incorrect number of arguments.


   Returning to         C:/commesse/macosx/bullet-2.77/src
   Entering             C:/commesse/macosx/bullet-2.77/src/LinearMath
CMake Error at LinearMath/CMakeLists.txt:41 (SET_TARGET_PROPERTIES):
  set_target_properties called with incorrect number of arguments.


CMake Error at LinearMath/CMakeLists.txt:42 (SET_TARGET_PROPERTIES):
  set_target_properties called with incorrect number of arguments.


   Returning to         C:/commesse/macosx/bullet-2.77/src
Configuring incomplete, errors occurred!
do i have made something wrong?
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: bullet cmake compilation errors

Post by Erwin Coumans »

sefiroths wrote:do i have made something wrong?
Did you make sure to run cmake from the Bullet root directory (and not from the src folder)? There is a cmake_minimum_required at the top of Bullet/CMakeLists.txt.

For cmake on Windows we only test the generation of Microsoft Visual Studio projects.

If you have a custom platform such as MinGW and Eclipse, you could try the cmake forums. If you can get it to work, please consider contributing back the changes.
Thanks,
Erwin
skeen
Posts: 24
Joined: Wed Dec 08, 2010 11:59 am

Re: bullet cmake compilation errors

Post by skeen »

I had the same issue with MinGW, however, building the bullet libary first, and then linking to it, using MinGW seems to work, simply build the bullet for MinGW, and write a cmake file, that locates it.

At OpenEngine, we got a libaries folder, wheres the cmake file simply looks into, and tries to locate the bullet libaries:
http://www.openengine.dk/code/extension ... llet.cmake

If wanted we do precompile our libaries for MinGW;
http://www.openengine.dk/data/libraries ... -win32.zip
timmb
Posts: 1
Joined: Fri Apr 12, 2013 10:39 am

Re: bullet cmake compilation errors

Post by timmb »

Erwin Coumans wrote:
sefiroths wrote:do i have made something wrong?
Did you make sure to run cmake from the Bullet root directory (and not from the src folder)? There is a cmake_minimum_required at the top of Bullet/CMakeLists.txt.
This fixed it for me - thanks.

Tim