Compilation error

kolisekr
Posts: 3
Joined: Sat Jul 25, 2009 12:46 pm

Compilation error

Post by kolisekr »

Good day,
i have same problem as http://www.bulletphysics.com/Bullet/php ... &view=next
but i cant go through this

i have installed "sudo apt-get install cmake jam autoconf automake libtool libgl1-mesa-dev freeglut3-dev"

Code: Select all

richard@richard-laptop:~/Install/bullet-2.75-rc6$ cmake . -G "Unix Makefiles"
OPENGL FOUND
/usr/lib/libGLU.so/usr/lib/libGL.so/usr/lib/libSM.so/usr/lib/libICE.so/usr/lib/libX11.so/usr/lib/libXext.so
GLUT FOUND
/usr/lib/libglut.so
-- Configuring done
-- Generating done
-- Build files have been written to: /home/richard/Install/bullet-2.75-rc6
richard@richard-laptop:~/Install/bullet-2.75-rc6$ make
[  0%] Building CXX object Demos/OpenGL/CMakeFiles/OpenGLSupport.dir/GLDebugFont.o
[  0%] Building CXX object Demos/OpenGL/CMakeFiles/OpenGLSupport.dir/GL_ShapeDrawer.o
[  0%] Building CXX object Demos/OpenGL/CMakeFiles/OpenGLSupport.dir/GL_Simplex1to4.o
[  0%] Building CXX object Demos/OpenGL/CMakeFiles/OpenGLSupport.dir/GLDebugDrawer.o
/home/richard/Install/bullet-2.75-rc6/Demos/OpenGL/GLDebugDrawer.cpp: In member function ‘virtual void GLDebugDrawer::reportErrorWarning(const char*)’:
/home/richard/Install/bullet-2.75-rc6/Demos/OpenGL/GLDebugDrawer.cpp:117: warning: format not a string literal and no format arguments
[  0%] Building CXX object Demos/OpenGL/CMakeFiles/OpenGLSupport.dir/GlutStuff.o
/home/richard/Install/bullet-2.75-rc6/Demos/OpenGL/GlutStuff.cpp: In function ‘int glutmain(int, char**, int, int, const char*, DemoApplication*)’:
/home/richard/Install/bullet-2.75-rc6/Demos/OpenGL/GlutStuff.cpp:90: error: ‘glutKeyboardUpFunc’ was not declared in this scope
/home/richard/Install/bullet-2.75-rc6/Demos/OpenGL/GlutStuff.cpp:92: error: ‘glutSpecialUpFunc’ was not declared in this scope
make[2]: *** [Demos/OpenGL/CMakeFiles/OpenGLSupport.dir/GlutStuff.o] Error 1
make[1]: *** [Demos/OpenGL/CMakeFiles/OpenGLSupport.dir/all] Error 2
make: *** [all] Error 2

i am using ubuntu 9.04 32bit
thanks for every idea
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: Compilation error

Post by Erwin Coumans »

Strange, it seems some functions are missing from your glut distribution.

Can you try commenting the following two lines in Bullet/Demos/OpenGL/GlutStuff.cpp around line 90, and see if it compiles/links fine?

Code: Select all

	glutKeyboardFunc(glutKeyboardCallback);
	//glutKeyboardUpFunc(glutKeyboardUpCallback);
	glutSpecialFunc(glutSpecialKeyboardCallback);
	//glutSpecialUpFunc(glutSpecialKeyboardUpCallback);

Hope this helps,
Erwin
kolisekr
Posts: 3
Joined: Sat Jul 25, 2009 12:46 pm

Re: Compilation error

Post by kolisekr »

I have already try this :(
it throws the same error but on another place

the file GlutStuff.cpp after the change compile OK

should I download another version of GLUT?
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: Compilation error

Post by Erwin Coumans »

it throws the same error but on another place
Then apply the same fix: comment-out the code.
Thanks,
Erwin
kolisekr
Posts: 3
Joined: Sat Jul 25, 2009 12:46 pm

Re: Compilation error

Post by kolisekr »

Thanks very much. There was only 2 files contains the functions :)