cnvgrib gribmaster and other issues with converting grib2 to 1
Krishna Santhanam
ksanthanam at PRECISIONWIND.COM
Wed Jul 22 11:50:33 EDT 2009
Thanks Nils. It still doesn't work. g2lib-1.1.9 has a configuration for 64
bit (CFLAG). I am wondering which versions of g2lib, g2clib, cnvgrib, jasper
and w2lib you are using, so that I can give it a try.
Thanks,
Krishna
On Wed, Jul 22, 2009 at 1:03 AM, Nils Dorband <dorband at googlemail.com>wrote:
> Hi,
>
>
>
>>
>> 1) I tried compiling cnvgrib new version from
>> http://www.nco.ncep.noaa.gov/pmb/codegs/GRIB2/, which gives me error.
>>
>> "gfortran -o cnvgrib gds2gdt.o pds2pdt.o pds2pdtens.o cnvgrib.o cnv12.o
>> cnv22.o cnv21.o gdt2gds.o makepds.o putgbexn.o makepdsens.o setbit.o
>> -L/usr/lib64/g2lib-1.1.9 -lg2 -L/usr/lib64/w3lib-1.7 -lw3
>> -L/usr/lib64/jasper-1.900.1/src/libjasper/.libs -ljasper -lpng -lz
>> /usr/bin/ld: skipping incompatible /usr/lib64/g2lib-1.1.9/libg2.a when
>> searching for -lg2
>> /usr/bin/ld: skipping incompatible
>> /usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../lib64/libg2.a when
>> searching for -lg2
>> /usr/bin/ld: skipping incompatible /usr/lib/../lib64/libg2.a when
>> searching for -lg2
>> /usr/bin/ld: skipping incompatible /usr/lib64/libg2.a when searching for
>> -lg2
>> /usr/bin/ld: skipping incompatible /usr/lib64/libg2.a when searching for
>> -lg2
>> /usr/bin/ld: cannot find -lg2
>> collect2: ld returned 1 exit status
>> make: *** [cnvgrib] Error 1"
>>
>>
> I was able to resolve this incompatibility by changing
>
> DEFS=-DLINUX
>
> to
>
> DEFS=-DLINUX -D__64BIT__
>
> in the Makefile of g2lib.
>
>
> Cheers,
>
> Nils
>
--
------------------------------------------
Krishnaraj Santhanam PhD
Project Manager,
Precision Wind LLC
Anderson Hall PSL
Las Cruces, NM 88003
Ph: (510)3256574
-------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090722/81223a41/attachment.html
More information about the gradsusr
mailing list