August 12, 200520 yr Hi,I'm trying to upgrade flightgear on Suse 9.3. Suse only has 0.9.3 in its software library so I thought I'd install from source. I'm getting errors when making Simgear when it hits one of the plib libraries.make[4]: Entering directory `/usr/local/source/SimGear-0.3.8/simgear/scene/material'if g++ -DHAVE_CONFIG_H -I. -I. -I../../../simgear -I../../.. -I/usr/X11R6/include -g -O2 -D_REENTRANT -MT mat.o -MD -MP -MF ".deps/mat.Tpo" -c -o mat.o mat.cxx; then mv -f ".deps/mat.Tpo" ".deps/mat.Po"; else rm -f ".deps/mat.Tpo"; exit 1; fiIn file included from mat.hxx:39, from mat.cxx:43:/usr/include/plib/ssg.h:34:21: GL/gl.h: No such file or directoryIn file included from mat.hxx:39, from mat.cxx:43:/usr/include/plib/ssg.h:697: error: `GLubyte' was not declared in this scopeMore errors with ssg.h until it quits. ssg.h does exist.Any ideas? Google has not been my friend :(
August 13, 200520 yr >Hi,>>I'm trying to upgrade flightgear on Suse 9.3. Suse only has>0.9.3 in its software library so I thought I'd install from>source. I'm getting errors when making Simgear when it hits>one of the plib libraries.>>make[4]: Entering directory>`/usr/local/source/SimGear-0.3.8/simgear/scene/material'>if g++ -DHAVE_CONFIG_H -I. -I. -I../../../simgear -I../../.. >-I/usr/X11R6/include -g -O2 -D_REENTRANT -MT mat.o -MD -MP>-MF ".deps/mat.Tpo" -c -o mat.o mat.cxx; >then mv -f ".deps/mat.Tpo" ".deps/mat.Po"; else rm -f>".deps/mat.Tpo"; exit 1; fi>In file included from mat.hxx:39,> from mat.cxx:43:>/usr/include/plib/ssg.h:34:21: GL/gl.h: No such file or>directory>In file included from mat.hxx:39,> from mat.cxx:43:>/usr/include/plib/ssg.h:697: error: `GLubyte' was not declared>in this scope>More errors with ssg.h until it quits. ssg.h does exist.>>Any ideas? Google has not been my friend :( You don't seem to have any OpenGL headers installed, or at least the configure script didn't seem to find them.Depending on what hardware (or X version) you are using, these headers may reside in different locations. If you don't find them using slocate, make sure to first install suitable OpenGL headers for your OpenGL card and then re-running autogen (autoconf && automake ...).While FlightGear can also be used with software rendering only, this is usually not really desirable. However, if you really need to compile it without hardware support, make sure to look into MESA.If you keep having issues compiling FlightGear or any of its dependencies, make sure to check out the FlightGear mailing list or at least its archives.
August 16, 200520 yr Thanks for your help. I did have freeglut installed but in directory /usr/include/GL there was no file gl.h. I installed mesa which added this file and others. I was able to complete the compile of simgear and flightgear but the performance was woeful. Glxinfo showed the mesa driver being used, so I had to resinstall the nvidia driver and enable direct render. Performance now is good other than the odd probem.rgdsPatrick
Create an account or sign in to comment