On Saturday 26 August 2006 02:11, Sid Boyce wrote:
> Anders Gidenstam wrote:
> > On Fri, 25 Aug 2006, Donn Washburn wrote:
> >>  >fgfs
> >>
> >> freeglut (fgfs): Unable to create direct context rendering for window
> >> 'FlightGear'
> >> This may hurt performance.
> >>   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-172
> >> freeglut (fgfs): Failed to create cursor
> >> freeglut  ERROR:  Function <glutSetCursor> called without first calling
> >> 'glutInit'.
> >> *** glibc detected *** fgfs: double free or corruption (out): 0xaea30578
> >> *** Segmentation fault
> >
> > Hi,

There is also a patch available for version 2.40 that fixes this problem.  I 
am currently running with 2.40 using this patch.  Here it is:

--- freeglut-2.4.0/src/freeglut_cursor.c       2005-04-22 17:23:12.000000000 
+0200
+++ freeglut-2.4.0-patched/src/freeglut_cursor.c       2005-09-15 
02:32:55.000000000 +0200
@@ -130,7 +130,9 @@
                     XCreateFontCursor( fgDisplay.Display, 
entry->cursorShape);
             }
             cursor = entry->cachedCursor;
-        } else {
+          if (cursor == None)
+              fgError( "Failed to create cursor" );
+      } else {
             switch( cursorIDToUse )
             {
             case GLUT_CURSOR_NONE:
@@ -147,9 +149,6 @@
             }
         }

-        if ( ( cursorIDToUse != GLUT_CURSOR_NONE ) && ( cursor == None ) ) {
-            fgError( "Failed to create cursor" );
-        }
         XDefineCursor( fgDisplay.Display,
                        window->Window.Handle, cursor );
     }

> >
> > Isn't this the infamous FreeGlut bug? (For that hasn't been resolved, has
> > it?) I.e. FlightGear doesn't work with FreeGlut 2.4.0.
> > Is that the FreeGlut version you got?
> >
> > See http://www.flightgear.org/Downloads/source.shtml for more info.
> >
> > Cheers,
> >
> > Anders
>
> It works fine with freeglut CVS, below was built from source back in
> January.
> # rpm -qi freeglut
> Name        : freeglut                     Relocations: (not relocatable)
> Version     : 2.4.0                             Vendor: (none)
> Release     : 8                             Build Date: Mon 02 Jan 2006
> 08:14:26 GMT
> Install Date: Wed 19 Apr 2006 14:53:21 BST      Build Host: barrabas.site
> Group       : Applications/System           Source RPM:
> freeglut-2.4.0-8.src.rpm
> Size        : 1703427                          License: GPL
> Signature   : (none)
> Packager    : checkinstall-1.6.0beta4
> Summary     : Freely Licensed Alternative to the GLUT Library
> Description :
> Freely Licensed Alternative to the GLUT Library
> Distribution: (none)
>
> Regards
> Sid.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Flightgear-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-users

Reply via email to