William Earnest writes:

> Norman Vine wrote:
> 
> > ace project writes:
> >
> > >I'm getting a compile error while compiling the latest
> > >SimGear(CVS) under cygwin(current version/fresh
> > >install).

> > >> > >extgl.h:363: `glBlendColor' redeclared as different
> > >kind of symbol /usr/X11R6/include/GL/gl.h:1648:
> >
> >
> > Looks like you have 'X-Windows' installed
> >
> > If this is true AFAIK you are breaking new ground and the
> > configure scripts will need to be tweaked to suport this.
> >
> 
> I'm in a similar position, but possibly a bit further along. Have a 
> current Cygwin installation including their X windowing package. Also 
> have the current CVS of the development package. By going to 
> /usr/X11R6/include/GL/ and renaming (to hide without losing) gl.h and 
> glext.h, then restarting with ./configure, the compiles all completed 
> without error (but many warnings). 

YIKES -- The *right* way todo this is to just change the configure.ac
files to NOT check for 'X' and NOT include the X_Header path when
WIN32 is defined.

Obviously this change needs tobe done by someone who has the 
Cygwin X-Server installed

There is support in the script already to determine if this
is a Windows installation.  

My WAG is that perhaps changing

if test "x$HOSTTYPE" != "xmacintosh" -a "x$is_mingw" != "xyes"; then
    dnl extra library and include directories
    EXTRA_DIRS="/usr/X11R6"

    if test -d /opt/X11R6 ; then
        EXTRA_DIRS="$EXTRA_DIRS /opt/X11R6"
    fi
fi

TO

if test "x$HOSTTYPE" != "xmacintosh" -a "x$is_mingw" != "xyes" -a 
:x$is_cywin"!="xyes"; then
    dnl extra library and include directories
    EXTRA_DIRS="/usr/X11R6"

    if test -d /opt/X11R6 ; then
        EXTRA_DIRS="$EXTRA_DIRS /opt/X11R6"
    fi
fi

Might just work,  but I am not an autoconf guru nor do I have X installed
so I can not test this

FWIW - I am not sure about the multiple '-a' arg to if 'if test'

Norman


_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to