Re: compiling terragear: problem with gpc

acrux <[email protected]> Wed, 13 Oct 2004 16:58:59 +0200
Newsgroups gmane.games.flightgear.terragear.devel
Organization http://www.crux-it.org/
Message-ID <[email protected]>
On Wed, 13 Oct 2004 16:15:10 +0200
Erik Hofman <[email protected]> wrote:

> acrux wrote:
> > hi,
> > tryng to compile terragear-0.9.5 i've found that it needs gpc by
> > AlanMurta.
> > 
> > The problem is that i'm unable to compile gpc-2.31
> > 
> > root@vesuvio:~/ports/gpc/gpc231# gcc gpc.c -o gpc
> > /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../crt1.o(.text+0x18
> > ): In function `_start':: undefined reference to `main'
> > collect2: ld returned 1 exit status
> 
> try this:
> 
> gcc -O2 -c gpc.c
> ar cru libgpc.a gpc.o
> 
> 

hi Erik, thanks for your sudden support :)

after your suggestion i've compiled succesfully gpc-2.31 and after i've
done: 
cp gpc.h /usr/include/
cp libgpc.a /usr/lib/

now the terragen configure works fine but during the compilation i've
got this error:

g++  -O3 -march=athlon-xp -pipe -fomit-frame-pointer  -L/usr/X11R6/lib
-o e00lines  main.o ../../../src/Lib/Polygon/libPolygon.a
../../../src/Lib/Geometry/libGeometry.a
../../../src/Lib/poly2tri/libpoly2tri.a
../../../src/Lib/TriangleJRS/libTriangleJRS.a
../../../src/Lib/e00/libe00.a -lsgdebug -lsgbucket -lsgmisc -lsgmath
-lsgio -lsgstructure -lsgxml -lgenpolyclip -lz -lm /usr/bin/ld: cannot
find -lgenpolyclip collect2: ld returned 1 exit status
make[3]: *** [e00lines] Error 1
make[3]: Leaving directory
`/root/ports/terragear/work/src/TerraGear-0.9.5/src/Prep/E00Lines'
make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory
`/root/ports/terragear/work/src/TerraGear-0.9.5/src/Prep' make[1]: ***
[all-recursive] Error 1 make[1]: Leaving directory
`/root/ports/terragear/work/src/TerraGear-0.9.5/src' make: ***
[all-recursive] Error 1=======> ERROR: Building
'/root/ports/terragear/terragear#0.9.5-1.pkg.tar.gz' failed.



greetz,
-- 
vesuvio | LinuxMachine 156116
powered by GNU/Linux Crux
 # GnuPG/PGP Key_ID: 0x378EECB8

_______________________________________________
Terragear-devel mailing list
[email protected]
http://mail.flightgear.org/mailman/listinfo/terragear-devel
2f585eeea02e2c79d7b1d8c4963bae2d