July 15, 200619 yr I have been trying to set up flightgear to run on my linux machine I have a 3200 64 bit AMD athlon processor 1 gig ram and NX6600GT 128 meg graphics card the program loads up the graphics screens couple of pictures but doesn't complete loading.I have started the program from the terminal window and found out the following from the errors it produced, I am hopeing that someone here might be able to point me in the right direction so please find below the output I recieved.Thanks for any help./usr/bin/fgfs Model Author: Unknown Creation Date: 2002-01-01 Version: $Id: c172p.xml,v 1.17 2006-03-13 15:27:14 ehofman Exp $ Description: Cessna C-172freeglut (/usr/bin/fgfs): Failed to create cursorfreeglut ERROR: Function called without first calling 'glutInit'.Thanks Jamie.
July 15, 200619 yr >freeglut (/usr/bin/fgfs): Failed to create cursor>freeglut ERROR: Function called withoutSigh. You are running fgfs with freeglut 2.4. This version is broken. Use an older or newer version. If you have compiled fgfs yourself, then consider to use SDL instead (--enable-sdl).
July 16, 200619 yr >>freeglut (/usr/bin/fgfs): Failed to create cursor>>freeglut ERROR: Function called without>>Sigh. You are running fgfs with freeglut 2.4. This version is>broken. Use an older or newer version. If you have compiled>fgfs yourself, then consider to use SDL instead>(--enable-sdl).As this seems to be a recurring problem, it might be worth to consider checking the (Free)GLUT version at build/configuration time, so that there's actually a warning or even an error whenever FreeGLUT 2.4 is encountered?From the FreeGLUT webpages:----------------GLUT_VERSION - Return value will be X*10000+Y*100+Z where X is the major version, Y is the minor version and Z is the patch level. This query is only supported in freeglut (version 2.0.0 or later).#ifdef FREEGLUT_VERSION_2_0 code specific to freeglut 2.0 or later here#endifThe freeglut version can be queried at runtime by calling glutGet(GLUT_VERSION). The result will be X*10000+Y*100+Z where X is the major version, Y is the minor version and Z is the patch level.This may be used as follows:if (glutGet(GLUT_VERSION) < 20001) { printf("Sorry, you need freeglut version 2.0.1 or later to run this program.n"); exit(1);}http://freeglut.sourceforge.net/docs/api.php----------------So, this could be easily checked for at build/configure time.In fact, within the configure script, one could even automatically check for SDL whenever FreeGLUT 2.4 is encountered, so that SDL can be used instead.
Create an account or sign in to comment