Hi all :)

I have a little problem compiling/running fgfs build as shared lib variant.
(Yes... i know... static is the prefered build way you/the devs use.. i still
try to make my daily cvs debian packages the "debian-standard" shared way :))

Following is the compile output from flightgear (CVS):

> g++ -DHAVE_CONFIG_H -I. -I. -I../../src/Include -I../.. -I../../src  
> -I/usr/X11R6/include -I/usr/local/include 
> -DPKGLIBDIR=\"/usr/share/games/FlightGear\"  -c -o metar_main.o `test -f 
> 'metar_main.cxx' || echo './'`metar_main.cxx
> g++ -DPKGLIBDIR=\"/usr/share/games/FlightGear\"   -L/usr/X11R6/lib 
> -L/usr/local/lib -o metar  metar_main.o -lsgenvironment -lsgio -lsgbucket 
> -lsgmisc -lsgstructure -lsgdebug -lsgprops -lsgserial -lsgxml -lsgmath 
> -lsgscreen -lsgsky -lsgsound -lopenal -lalut -lplibnet -lplibul -lplibsg 
> -lplibssg  -lSDL -lglut -lGLU -lGL -lXmu -lXt -lSM -lICE -lXi -lXext -lX11 
> -ldl -lm  -lz -ldl -lm  -ljpeg
> /usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../lib/libsgsky.so: undefined 
> reference to `thesky'
> collect2: ld returned 1 exit status
> make[3]: *** [metar] Error 1
> make[3]: Leaving directory 
> `/home/orson/debian/source/flightgear/src/flightgear-cvs-0.9cvs/src/Main'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory 
> `/home/orson/debian/source/flightgear/src/flightgear-cvs-0.9cvs/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory 
> `/home/orson/debian/source/flightgear/src/flightgear-cvs-0.9cvs'
> make: *** [build-stamp] Error 2

Argl.. i have too less knowledge about static/extern class/variable
declaration/definition...

When i change following line in simgear/scene/sky/cloudfield.cxx and rebuild
simgear+flightgear everything compiles, but as soon as i enable the 3dclouds via
Menu->Rendering options->3d coulds, fgfs crashes with a segmentation fault.

> extern SGSky *thesky;
to
> static SGSky *thesky;


Does somebody have a clou what i would have to do/change in order to get it
working/compiling the right way?

Thanx, and have a nice weekend :)

*waves*
--
   Diese Message wurde erstellt mit freundlicher Unterstuetzung
   eines freilaufenden Pinguins aus artgerechter Freilandhaltung.
   Sie ist garantiert frei von Microsoftschen Viren.
------------------------------------------------------------------------------
May the pig be with you! *oink*
email:     orson aet orson punkterle at
------------------------------------------------------------------------------

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to