RE: [Flightgear-devel] Re: 3d Clouds code

2002-09-20 Thread Michael Basler

Norman, Curt

> Arrgh
>
> I forgot I had to tweak the configure.ac file because it no longer
> sets $CFLAGS="-DWIN32"
>
> Yep that's it
>
> In the windows section of configure.ac we need to set $CFLAGS

Norman, this finally did the job. Now it compiles and links cleanly under
Cygwin again. Thank you very much for your patience.

Curt, I don't dare to ask, but could we get these couple of final tweaks
into the CVS? There is one file to modify which Norman sent yesterday to
both of us, i.e. SimGear/simgear/sky/clouds3d/Makefile.am. The other tweak
is a one line thing, just insert


> .
> else
> dnl Win32 libs
>
> echo Win32 specific hacks...
> AC_DEFINE([WIN32], 1, [Define for Win32 platforms])
>
> dnl this next line added for extgl.h
> CFLAGS="$CFLAGS -DWIN32"
> 

in Simgear/configure.ac in the respective place. For your convenience, I'll
attach both of the little files.

Thank you.
Regards, Michael

--
Michael Basler, Jena, Germany
[EMAIL PROTECTED]
  http://www.geocities.com/pmb.geo/



configure.ac
Description: Binary data


Makefile.am
Description: Binary data


Re: [Flightgear-devel] Re: 3d Clouds code

2002-09-19 Thread Curtis L. Olson

Norman,

The better way to do this is to #include "simgear_config.h" in any
file that needs the WIN32 symbol (or any other AC_DEFINE()'d symbol.)

Regards,

Curt.


Norman Vine writes:
> Michael Basler
> 
> > Norman Vine wrote:
> > 
> > > Ah there was a typo in the Makefile.am
> > >
> > > 'corrected' one attached
> > >
> > > SimGear/simgear/sky/clouds3d/Makefile.am
> > >
> > > Please 'report' back to the list as to how this works
> > 
> > Does not yet work.
> 
> Hmm...
> 
> Arrgh
> 
> I forgot I had to tweak the configure.ac file because it no longer
> sets $CFLAGS="-DWIN32"
> 
> Yep that's it
> 
> In the windows section of configure.ac we need to set $CFLAGS
> 
> .
> else
> dnl Win32 libs
> 
> echo Win32 specific hacks...
> AC_DEFINE([WIN32], 1, [Define for Win32 platforms])
> 
> dnl this next line added for extgl.h
> CFLAGS="$CFLAGS -DWIN32"
> 
> 
> With this change AND the Makefile.am I posted earlier
> everything should work 
> 
> did for me with a fresh tarball modified as above
> 
> Norman
> 
> 
> 
> 
> ___
> Flightgear-devel mailing list
> [EMAIL PROTECTED]
> http://mail.flightgear.org/mailman/listinfo/flightgear-devel

-- 
Curtis Olson   IVLab / HumanFIRST Program   FlightGear Project
Twin Cities[EMAIL PROTECTED]  [EMAIL PROTECTED]
Minnesota  http://www.menet.umn.edu/~curt   http://www.flightgear.org

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



Re: [Flightgear-devel] Re: 3d Clouds code

2002-09-19 Thread Norman Vine

Michael Basler

> Norman Vine wrote:
> 
> > Ah there was a typo in the Makefile.am
> >
> > 'corrected' one attached
> >
> > SimGear/simgear/sky/clouds3d/Makefile.am
> >
> > Please 'report' back to the list as to how this works
> 
> Does not yet work.

Hmm...

Arrgh

I forgot I had to tweak the configure.ac file because it no longer
sets $CFLAGS="-DWIN32"

Yep that's it

In the windows section of configure.ac we need to set $CFLAGS

.
else
dnl Win32 libs

echo Win32 specific hacks...
AC_DEFINE([WIN32], 1, [Define for Win32 platforms])

dnl this next line added for extgl.h
CFLAGS="$CFLAGS -DWIN32"


With this change AND the Makefile.am I posted earlier
everything should work 

did for me with a fresh tarball modified as above

Norman




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



RE: [Flightgear-devel] Re: 3d Clouds code

2002-09-19 Thread Michael Basler

Norman,

> Ah there was a typo in the Makefile.am
>
> 'corrected' one attached
>
> SimGear/simgear/sky/clouds3d/Makefile.am
>
> Please 'report' back to the list as to how this works

Does not yet work. However the offending lines seem to be different, now.
This is the new result:

-

../../src/Airports/libAirports.a ../../src/Network/libNetwork.a
../../src/Networ
kOLK/libNetworkOLK.a ../../src/Objects/libObjects.a ../../src/Time/libTime.a
../
../src/Environment/libEnvironment.a
../../src/Input/libInput.a -lsgroute -lsgsky
 -lsgclouds3d -lsgephem -lsgtiming -lsgio -lsgscreen -lsgmath -lsgbucket -ls
gdeb
ug -lsgmagvar -lsgmisc -lsgxml -lsgserial  -lplibpu -lplibfnt -lplibnet -lpl
ibss
g -lplibsg -lplibul -lmk4 -lz -lpthread -lm  -lglut32 -lglu32 -lopengl32 -lu
ser3
2 -lgdi32 -lplibsl -lplibsm -lwinmm -lm
/usr/local/lib/libsgclouds3d.a(SkyContext.o): In function `_10SkyContext':
/usr/local/source/simgear/simgear/sky/clouds3d/SkyContext.cpp:57: undefined
refe
rence to `glInitialize'
/usr/local/lib/libsgclouds3d.a(SkyTextureState.o): In function
`SkyTextureState:
:Activate(void)':
/usr/local/source/simgear/simgear/sky/clouds3d/SkyTextureState.cpp:92:
undefined
 reference to `glActiveTextureARB'
/usr/local/source/simgear/simgear/sky/clouds3d/SkyTextureState.cpp:154:
undefine
d reference to `glActiveTextureARB'
collect2: ld returned 1 exit status
make[2]: *** [fgfs.exe] Error 1
-

Regrads, Michael

--
Michael Basler, Jena, Germany
[EMAIL PROTECTED]
  http://www.geocities.com/pmb.geo/



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