hi everyone

I have followed these instructions to install glut3.7. But I get an error
saying

checking for GL/glut.h... no
configure: error: Could not find (one of) gl.h glu.h glut.h; OpenGL is
required to build Gazebo.

I have installed all the other packages required to run gazebo.





The instructions I followed to install glut are

   cd /usr/src
   tar -xvzf glut-3.7.tar.gz
   cd glut-3.7

   Read the file: README.linux
   cd linux
   READ the file: README
   cp Glut.cf ..
   cd ..
   Edit Glut.cf: remove any Mesa references.
   Replace any -lMesaGL -lMesaGLU with -lGL -lGLU if needed.
   In particular, replace:
       OPENGL = $(TOP)/../lib/libMesaGL.so
       GLU = $(TOP)/../lib/libMesaGLU.so
   with:
       OPENGL = -lGL
       GLU = -lGLU

   ./mkmkfiles.imake
   cd lib/glut
   cp /usr/src/glut-3.7/linux/Makefile .
   Edit the Makefile: remove any Mesa references.
   Replace any -lMesaGL -lMesaGLU with -lGL -lGLU if needed.
   In particular, replace:
       OPENGL = $(TOP)/../lib/libMesaGL.so
       GLU = $(TOP)/../lib/libMesaGLU.so
   with:
       OPENGL = -lGL
       GLU = -lGLU

   make
   ln -s libglut.so.3.7 libglut.so
   ln -s libglut.so.3.7 libglut.so.3
   cp -d libglut.* /usr/lib
   cd ..
   cd gle
   # make a shared lib for libgle
   make
   gcc -shared -o libgle.so.3.7 *.o
   ln -s libgle.so.3.7 libgle.so
   ln -s libgle.so.3.7 libgle.so.3
   cp -d libgle.* /usr/lib
   cd ..
   cd mui
   # make a shared lib for libmui
   make
   gcc -shared -o libmui.so.3.7 *.o
   ln -s libmui.so.3.7 libmui.so
   ln -s libmui.so.3.7 libmui.so.3
   cp -d libmui.* /usr/lib

       # Install the GLUT manual pages (not included with MesaDemos)
   cd /usr/src/glut-3.7
   make SUBDIRS=man Makefile
   cd man/glut
   make install.man
   ldconfig

   cd ../../progs/demos/ideas




   # edit the Makefile, change OPENGL = -lGL and GLU = -lGLU
   make
   ./ideas
   # test compiling some demos
   # take a look at which libraries have to be linked (-lX11 ...) in
   # the Makefiles.  Qt's tmake program available at www.troll.no
   # is a quick way to make a Makefile but you have to edit it
   # and add the -l needed.


When i came to executing  edit the Makefile, change OPENGL = -lGL and GLU =
-lGLU, I couldn't find any references in the file. I found exactly the same
lines so I didn't have to replace anything.

On executing make I get the error:

gcc -m32 -o ideas -O2 -fno-strength-reduce -fno-strict-aliasing
-L/usr/lib   a.o b.o d.o draw_holder.o draw_lamp.o draw_logo.o
draw_logo_line.o draw_logo_shadow.o e.o f.o h.o i.o ideas.o m.o n.o   o.o
p.o r.o s.o t.o w.o ../../../lib/glut/libglut.so -lGLU -lGL -lXmu -lXt -lSM
-lICE -lXext -lX11 -lXi -lXext -lX11 -lm
../../../lib/glut/libglut.so: undefined reference to
`glXQueryChannelRectSGIX'
../../../lib/glut/libglut.so: undefined reference to
`glXBindChannelToWindowSGIX'
../../../lib/glut/libglut.so: undefined reference to
`glXQueryChannelDeltasSGIX'
../../../lib/glut/libglut.so: undefined reference to `glXChannelRectSGIX'
../../../lib/glut/libglut.so: undefined reference to
`glXChannelRectSyncSGIX'
collect2: ld returned 1 exit status
make: *** [ideas] Error 1


Cheers
Vaibhav

--
Mobile Robotics Laboratory
Guidance, Control and Decision Systems Laboratory
Aerospace Department
Indian Institute of Science, Bangalore
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Playerstage-gazebo mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo

Reply via email to