Building Bullet 2.76 problem
-
GlaiveVehem
- Posts: 2
- Joined: Sat Apr 17, 2010 4:35 pm
- Location: Philippines
Building Bullet 2.76 problem
Im trying to build Bullet but when I use Cmake to make a makefile for CodeBlock Mingw I get an error like this "GLUT NOT FOUND not found, trying to use MINGW glut32". I already have a glut installed in mingw include and lib folder and I already put the dll in windows/system32. Any ideas how I can get this working?
-
GlaiveVehem
- Posts: 2
- Joined: Sat Apr 17, 2010 4:35 pm
- Location: Philippines
Re: Building Bullet 2.76 problem
I got it working now. I just point the GLUT_INCLUDE_DIR to the glut.h. But now i get this error
The string sub command its referring is this.
I dont really know about cmake but I can say that it has 4 arguments( 2 strings and 2 commands ). How can I get this working?
Code: Select all
CMake Error at CMakeLists.txt:126 (string):
string sub-command REPLACE requires at least four arguments.Code: Select all
string (REPLACE "/D_WINDOWS" " " CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})-
Erwin Coumans
- Site Admin
- Posts: 4221
- Joined: Sun Jun 26, 2005 6:43 pm
- Location: California, USA
Re: Building Bullet 2.76 problem
Thanks for bringing up this issue. We should check and skip that replacement if the CMAKE_CXX_FLAGS are empty, for example:
Can you just comment out that string replacement line for now, add a hash (#) in front of it?
Thanks,
Erwin
Code: Select all
IF(CMAKE_CXX_FLAGS)
string (REPLACE "/D_WINDOWS" " " CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
ENDIF(CMAKE_CXX_FLAGS )
Thanks,
Erwin