Compiling with MinGW

Miscreant
Posts: 1
Joined: Sun May 20, 2012 10:15 am

Compiling with MinGW

Post by Miscreant »

Hi, I'm totally new to Bullet so please bear with me. I currently have a project using ODE, so I have some experience with using other physics engines, but I've just recently decided to check Bullet out since it is object oriented, supports soft bodies, and can use GPU acceleration, all of which would be useful to me. So I downloaded the latest version of Bullet (2.80-rev2531 at the time of writing) and set about trying to compile it with the latest TDM MinGW. Everything seems to work, up till it gets to compiling Demos\OpenGL\GLDebugFont.cpp, at which point the build fails with the following error:

Code: Select all

C:\Users\Rory\dev\bullet-2.80-rev2531\Demos\OpenGL\GLDebugFont.cpp:44:21: error: GL/glut.h: No such file or directory
mingw32-make[2]: *** [Demos/OpenGL/CMakeFiles/OpenGLSupport.dir/GLDebugFont.obj] Error 1
mingw32-make[1]: *** [Demos/OpenGL/CMakeFiles/OpenGLSupport.dir/all] Error 2
mingw32-make: *** [all] Error 2
I tried adding the Glut directory which contains GL/glut.h to CMAKE_INCLUDE_PATHand %INCLUDE% but to no avail. I should probably add that I don't have that much experience with CMake so I could be missing something that would otherwise be fairly obvious :)

On a side note, I also noticed that CMake spat out "NVidia OPENCL NOT FOUND" when I was configuring it, does anyone know how I can build it with OpenCL support? This isn't too big a deal ince won't need it for a while and I'd just like to get Bullet working first, but I do plan on eventually using GPU acceleration in my project so I will need to get OpenCL to work.