Re: Terragear 0.9.5 will not compile

"Curtis L. Olson" <[email protected]>
Newsgroups gmane.games.flightgear.terragear.devel
Message-ID <[email protected]>
Jussi,

Try adding the following to the top of Array.h:

   #include <string.h>

When I see these sorts of errors I usually type "man memcpy" and the man 
page should tell you which includes you need to have in the file.

I should also point out the scenery for the entire world is already 
built and available for download from the flightgear web page.  You are 
welcome to build your own scenery ... you may wish you use a different 
combination of data sources, or add/fix airports ... but you don't need 
to do this if you just want to fly around familiar country.

Best regards,

Curt.



[email protected] wrote:

> Okay, now that I can copypaste, here are the error lines.
>
> if g++ -DHAVE_CONFIG_H -I. -I. -I../../../src/Include 
> -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/local/include 
> -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include 
> -g -O2 -MT Heap.o -MD -MP -MF ".deps/Heap.Tpo" -c -o Heap.o Heap.cc; \
> then mv -f ".deps/Heap.Tpo" ".deps/Heap.Po"; else rm -f 
> ".deps/Heap.Tpo"; exit 1; fi
> Array.h: In method `void array<T>::resize (int) [with T = heap_node]':
> Heap.cc:54:   instantiated from here
> Array.h:69: `memcpy' undeclared (first use this function)
> Array.h:69: (Each undeclared identifier is reported only once for each 
> function it appears in.)
> make[3]: *** [Heap.o] Error 1
> make[3]: Leaving directory `/flightgear/TerraGear-0.9.5/src/Prep/Terra'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/flightgear/TerraGear-0.9.5/src/Prep'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/flightgear/TerraGear-0.9.5/src'
> make: *** [all-recursive] Error 1
>
>
> BR,
> Jussi
>
>
>>
>> Hello All,
>>
>> I am a total newbie to Linux and Flightgear / Terragear and have run 
>> into several problems, but have managed to sort them out till now.
>>
>> I have the following setup:
>>
>> Linux Redhat 7.3
>> Compaq Pentium 866MHz
>> GeForce 2 MX400
>>
>> Initially I installed and got these running
>> FlightGear 0.9.3
>> SimGear 0.3.4
>> plib 1.6.0
>>
>> Now I would like to compile the Finnish scenery, thus installed
>> TerraGear 0.9.5 which needed
>> SimGear 0.3.6 (Simgear 0.3.4 make clean) which needed
>> openal (CVS)
>> gpc231
>> gts 0.7.2
>> nurbs++3.0.11
>>
>> In TerraGear the ./configure goes OK, but in make I get error with 
>> heap.o / Heap.cc. I believe this is from glib 1.2
>>
>> Array.h:69:`memcpy' undeclared ... etc. (Grr! Do not know how to 
>> copypaste the lines from console...)
>>
>> I suspected this to be due to old glib, thus I loaded and installed 
>> glib2.4.6, which needed
>> pkgconfig 0.15.0
>>
>> I configured with ./configure --prefix=/opt/glib
>> then make and make install
>> then as mentined in the gtk manuals
>> LD_LIBRARY_PATH="/opt/glib/lib"
>> PATH="/opt/glib/bin:$PATH"
>> export LD_LIBRARY_PATH PATH
>>
>> But this was no help.
>>
>> As I said, I am newbie to Linux, so I just try to go with some readme 
>> helps etc...
>>
>> BR,
>> Jussi Korolainen
>
>
>> _______________________________________________
>> Terragear-devel mailing list
>> [email protected]
>> http://mail.flightgear.org/mailman/listinfo/terragear-devel
>> 2f585eeea02e2c79d7b1d8c4963bae2d
>
>
> __
> Älä maksa tekstiviesteistä! Saunalahden Tekstari-GSM-liittymällä 
> lähetät tekstiviestit maksutta kaikkiin liittymiin (1000 kpl/kk).
> http://saunalahti.fi
>
>
> _______________________________________________
> Terragear-devel mailing list
> [email protected]
> http://mail.flightgear.org/mailman/listinfo/terragear-devel
> 2f585eeea02e2c79d7b1d8c4963bae2
> d



-- 
Curtis Olson        http://www.flightgear.org/~curt 
HumanFIRST Program  http://www.humanfirst.umn.edu/
FlightGear Project  http://www.flightgear.org
Unique text:        2f585eeea02e2c79d7b1d8c4963bae2d


_______________________________________________
Terragear-devel mailing list
[email protected]
http://mail.flightgear.org/mailman/listinfo/terragear-devel
2f585eeea02e2c79d7b1d8c4963bae2d
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.