Compiling g2clib-1.0.5 (for grads-2.0) error

Oliver König oliver at WINDFINDER.COM
Fri Feb 8 06:13:02 EST 2008


Hello,
I am trying to build g2clib on my AMD64 computer with Debian/GNU Linux Lenny
(64bit). Here is what I did 5 minutes ago:

$ wget ftp://grads.iges.org/grads/Supplibs/2.0/src/g2clib-1.0.5.tar.gz
$ cd g2clib-1.0.5/

Edit makefile:
- change INC from /usr/include to /usr/lib because that is the location of
libjasper.a, libpng.a, libz.a)
- comment line beginning with ARFLAG, if I don't do this 'make all' will quit
with 'ar: illegal option -- X', I also tried ARFLAGS=-X32_64 but that causes
the same error ):
INC=/usr/lib
#ARFLAGS=-X64

$ make all
c -c -I/usr/lib -DUSE_JPEG2000 -DUSE_PNG gridtemplates.c
ar rv -ruv libgrib2c.a gridtemplates.o
ar: creating -ruv
ar: libgrib2c.a: No such file or directory
make: *** [libgrib2c.a(gridtemplates.o)] Error 1

What is going wrong? Thanks for your help ;-)

Regards,

--
Oliver König



More information about the gradsusr mailing list