macbury / bullet

Automatically exported from code.google.com/p/bullet
0 stars 0 forks source link

compile issue w/ opengl #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
unable to determine the cause myself.

What steps will reproduce the problem?
1. Extract latest zip / get latest svn

2.
C:\trunk>cmake -G "MSYS Makefiles" .
-- Check for working C compiler: C:/MinGW/bin/gcc.exe
-- Check for working C compiler: C:/MinGW/bin/gcc.exe -- works
-- Check size of void*
-- Check size of void* - done
-- Check for working CXX compiler: C:/MinGW/bin/g++.exe
-- Check for working CXX compiler: C:/MinGW/bin/g++.exe -- works
-- Configuring done
-- Generating done
-- Build files have been written to: C:/trunk

C:\trunk>make

What is the expected output? What do you see instead?

Linking CXX static library libLibOpenGLSupport.a
[ 21%] Built target LibOpenGLSupport
Scanning dependencies of target CcdPhysicsDemo
[ 22%] Building CXX object
Demos/CcdPhysicsDemo/CMakeFiles/CcdPhysicsDemo.dir/Cc
dPhysicsDemo.obj
Linking CXX executable CcdPhysicsDemo.exe
c:/trunk/Demos/OpenGL\libLibOpen
GLSupport.a(DemoApplication.obj)(.text+0xb28):DemoApplication.cpp:
undefined reference to `gluLookAt@72'
c:/trunk/Demos/OpenGL\libLibOpen
GLSupport.a(DemoApplication.obj)(.text+0x25ec):DemoApplication.cpp:
undefined reference to `gluOrtho2D@32'
c:/trunk/Demos/OpenGL\libLibOpen
GLSupport.a(GL_ShapeDrawer.obj)(.text+0x4b1):GL_ShapeDrawer.cpp: undefined
reference to `gluNewQuadric@0'
c:/trunk/Demos/OpenGL\libLibOpen
GLSupport.a(GL_ShapeDrawer.obj)(.text+0x677):GL_ShapeDrawer.cpp: undefined
reference to `gluQuadricDrawStyle@8'
c:/trunk/Demos/OpenGL\libLibOpen
GLSupport.a(GL_ShapeDrawer.obj)(.text+0x68d):GL_ShapeDrawer.cpp: undefined
reference to `gluQuadricNormals@8'
c:/trunk/Demos/OpenGL\libLibOpen
GLSupport.a(GL_ShapeDrawer.obj)(.text+0x6cb):GL_ShapeDrawer.cpp: undefined
reference to `gluCylinder@36'
c:/trunk/Demos/OpenGL\libLibOpen
GLSupport.a(GL_ShapeDrawer.obj)(.text+0x6de):GL_ShapeDrawer.cpp: undefined
reference to `gluDeleteQuadric@4'
collect2: ld returned 1 exit status
make[2]: *** [Demos/CcdPhysicsDemo/CcdPhysicsDemo.exe] Error 1
make[1]: *** [Demos/CcdPhysicsDemo/CMakeFiles/CcdPhysicsDemo.dir/all] Error 2
make: *** [all] Error 2

What version of the product are you using? On what operating system?

latest zip (2.42) and svn
windows xp. with msys and mingw, both about 6 months old.

Please provide any additional information below.

Original issue reported on code.google.com by brad.pon...@gmail.com on 3 Jan 2007 at 12:54

GoogleCodeExporter commented 9 years ago
Thanks for the feedback.

Strange CMake / MSYS doesn't detect OpenGL properly.
This impacts only the demos, you should still be able to use Bullet library 
itself
(math, collision, dynamics).

Please use the Bullet Physics forum for reporting bugs/issues:
http://bulletphysics.com

Original comment by erwin.coumans on 5 Jan 2007 at 12:39

GoogleCodeExporter commented 9 years ago
Thank you.
Will do.

Original comment by brad.pon...@gmail.com on 6 Jan 2007 at 4:55

GoogleCodeExporter commented 9 years ago
Found the MSYS linking problem:

For each demo, check the CMakeList.txt at the end, and change:

${OPENGL_glU_LIBRARY} into ${OPENGL_glu_LIBRARY}

This should fix the issue.
Thanks,
Erwin

Original comment by erwin.coumans on 29 Apr 2007 at 6:30