On Wed, 2010-02-03 at 08:47 -0700, John Denker wrote:
> There is a little script to collect that information:
>   http://www.av8n.com/fly/fgfs/barf
> 
Thanks John for your 'barf' script. I modified
it to suit my Ubuntu environment. My script
is at :-
 http://geoffair.net/tmp/fgfs-info 

In it I noted you run tests/gl-info, and
to my surprise this produced the output :-

GL Utility Toolkit (glut) was not found on this system.

which is CRAZY since I _DO_ have 'glut' installed!
 freeglut3         2.4.0-6
 freeglut3-dev     2.4.0-6
 glutg3            3.7-25
 glutg3-dev        3.7-25
 libglut3          3.7-25
 libglut3-dev      3.7-25

Looking in src/Include/config.h showed the reason.
'HAVE_GLUT_H' was undefined! So that led me back
to configure.ac...

Yes, it does a check for [... glut.h], and of course
does NOT find this... But tests/gl-info.cxx
does NOT include <glut.h>, but includes
<GL/glut.h> (if not __APPLE__)...

It also checks for, and finds glutGetModifiers,
and adds the library - result: -lglut

So adding a test to configure.ac -
AC_CHECK_HEADERS(GL/glut.h)
which added -
#define HAVE_GL_GLUT_H 1
to src/Include/config.h...

So one would have to ask how did you compile
gl-info? ... Of course I also then changed
'HAVE_GLUT_H' to 'HAVE_GL_GLUT_H' in gl-info.cxx
source, then all is honky dorey...

I hope someone will take the time to fix
this in FG CVS... Attached below is my
diff... Of course this would need to be
further adjusted for __APPLE__

Or maybe just remove the -
#ifdef HAVE_GLUT_H
completely from tests/gl-info.cxx,
since fgfs defaults to using the osgviewer.

Does fgfs use <GL/glut.h> anywhere else
but in this tests/gl-info??? 'glut.h' appears
only mentioned in the old (2005) docs-mini/
README.mingw...

HTH

Geoff.

PS: My info is at -
 http://geoffair.net/tmp/tempinfo.txt 
There also seems some problems with
tests/alcinfo, but have yet to look into
this...

attached: fg200-diff01.patch

Index: configure.ac
===================================================================
RCS file: /var/cvs/FlightGear-0.9/source/configure.ac,v
retrieving revision 1.165
diff -u -r1.165 configure.ac
--- configure.ac	23 Jan 2010 22:26:30 -0000	1.165
+++ configure.ac	4 Feb 2010 12:40:29 -0000
@@ -790,7 +790,7 @@
 LIBS=""
 CPPFLAGS="-I/usr/include/subversion-1 `apr-1-config --includes`"
 AC_CHECK_LIB(svn_client-1, svn_client_checkout3)
-AC_CHECK_HEADERS([svn_client.h glut.h])
+AC_CHECK_HEADERS([svn_client.h])
 if test "x$ac_cv_header_svn_client_h" != "xyes"; then
   echo "TerraSync will shell out for command line subversion"
   svn_LIBS=""
@@ -815,6 +815,7 @@
 
 dnl Checks for header files.
 AC_HEADER_STDC
+AC_CHECK_HEADERS(GL/glut.h)
 AC_CHECK_HEADERS( \
 	fcntl.h getopt.h malloc.h memory.h stdlib.h sys/param.h sys/stat.h \
 	sys/time.h sys/timeb.h unistd.h windows.h values.h )
Index: tests/gl-info.cxx
===================================================================
RCS file: /var/cvs/FlightGear-0.9/source/tests/gl-info.cxx,v
retrieving revision 1.1
diff -u -r1.1 gl-info.cxx
--- tests/gl-info.cxx	8 Dec 2009 09:48:01 -0000	1.1
+++ tests/gl-info.cxx	4 Feb 2010 12:40:30 -0000
@@ -24,7 +24,7 @@
 # include <GLUT/glut.h>
 #else
 # include <GL/gl.h>
-# ifdef HAVE_GLUT_H
+# ifdef HAVE_GL_GLUT_H
 #  include <GL/glut.h>
 # endif
 #endif
@@ -65,7 +65,7 @@
 
 int main ( int argc, char **argv )
 {
-#ifdef HAVE_GLUT_H
+#ifdef HAVE_GL_GLUT_H
   glutInit            ( &argc, argv ) ;
   glutInitDisplayMode ( GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH ) ;
   glutCreateWindow    ( "You should never see this window!"  ) ;
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to