Hello all,
I'm trying to build Bullet using the cmake gui and I keep on getting errors about not having GLUT. I can build some of the package, but none of the demos are showing up in the demo folder once I'm done.
Here's the error message for reference:
Could NOT find OpenGL (missing: OPENGL_gl_LIBRARY OPENGL_INCLUDE_DIR)
OPENGL NOT FOUND
WARNING: you are using the obsolete 'GLU' package, please use 'OpenGL' instead
Could NOT find OpenGL (missing: OPENGL_INCLUDE_DIR)
Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR)
GLUT NOT FOUND
I tried unchecking the "USE GLUT" setting, but that just led to this error:
Could NOT find OpenGL (missing: OPENGL_gl_LIBRARY OPENGL_INCLUDE_DIR)
OPENGL NOT FOUND
WARNING: you are using the obsolete 'GLU' package, please use 'OpenGL' instead
Could NOT find OpenGL (missing: OPENGL_INCLUDE_DIR)
I know I have an openglu through mesa3D, but I don't know how to tell cmake that. Do I "add an entry" in the cmake gui, mess around with the bullet-2.82-r2704 file I downloaded, or do something else?
Any advice would be greatly appreciated.
Best,
Josh
Need help building Bullet
-
- Posts: 5
- Joined: Mon Jul 14, 2014 5:38 pm
Re: Need help building Bullet
Seems like CMake finds neither GLUT nor the core GL/GLU libraries in their default paths. You can manually edit the contents of the OPENGL_gl_LIBRARY variable in cmake-gui and make it point to your libGL*.so.
Could be because you only have files with version suffixes, like libGL.so.1, so CMake doesn't find them automatically.
Same goes for OPENGL_INCLUDE_DIR, which you can manually edit to point to the directory containing GL/gl.h (usually /usr/include, but maybe you're missing the development package for OpenGL?), and the two missing variables for GLUT.
//EDIT: If you don't see these variables in CMake, make sure you have ticked the "Advanced" check box on the top of cmake-gui.
Could be because you only have files with version suffixes, like libGL.so.1, so CMake doesn't find them automatically.
Same goes for OPENGL_INCLUDE_DIR, which you can manually edit to point to the directory containing GL/gl.h (usually /usr/include, but maybe you're missing the development package for OpenGL?), and the two missing variables for GLUT.
//EDIT: If you don't see these variables in CMake, make sure you have ticked the "Advanced" check box on the top of cmake-gui.
Re: Need help building Bullet
Awesome. I'm all set up now. Thanks for the help!
- Erwin Coumans
- Site Admin
- Posts: 4221
- Joined: Sun Jun 26, 2005 6:43 pm
- Location: California, USA
- Contact:
Re: Need help building Bullet
Which platform/compiler?
Latest Bullet source repository at github should build out-of-the-box on Linux, Mac OSX and Windows, using either premake or cmake, without having to install GLUT or point to GL/gl.h etc.
http://github.com/bulletphysics/bullet3 (which includes Bullet 2)
Thanks,
Erwin
Latest Bullet source repository at github should build out-of-the-box on Linux, Mac OSX and Windows, using either premake or cmake, without having to install GLUT or point to GL/gl.h etc.
http://github.com/bulletphysics/bullet3 (which includes Bullet 2)
Thanks,
Erwin