MinGW and Bullet 2.72

Tuser
Posts: 3
Joined: Mon Oct 27, 2008 7:03 am

MinGW and Bullet 2.72

Post by Tuser »

Hi all
I tried to compile Bullet 2.72, but it stops at the ForkLiftDemo because of an undefined reference to "gluLookAt" and some other glu functions. That issue was probably resolved before, according to the change log:
2006 June 17 Frank Richter [...]
Updated files in mk/autoconf and mk/jam with copies from CS; fixes a GLU detection issue on MinGW.[...]
It doesn't seam to be a big issue, but as I have no experience with cmake, I have to ask.

Regards,
Daniel
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: MinGW and Bullet 2.72

Post by Erwin Coumans »

Which build system are you using? CMake generated makefiles, Jam or autotools (autogen/configure/make)?

Thanks,
Erwin
Tuser
Posts: 3
Joined: Mon Oct 27, 2008 7:03 am

Re: MinGW and Bullet 2.72

Post by Tuser »

I am using cmake.
Tuser
Posts: 3
Joined: Mon Oct 27, 2008 7:03 am

Re: MinGW and Bullet 2.72

Post by Tuser »

I found a bug in the CMakeLists.txt file for the ForkLiftDemo (maybe there are others with the same issue). There is a section

LINK_LIBRARIES(
LibOpenGLSupport LibBulletDynamics LibBulletCollision LibLinearMath ${GLUT_glut_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glU_LIBRARY}
)

When glU is replaced by glu, there are no more compilation issues. But now glut.dll can't be found when ForkLiftDemo.exe is started.