Wgrib2 for FreeBSD

Wesley Ebisuzaki Wesley.Ebisuzaki at NOAA.GOV
Tue Feb 19 15:11:52 EST 2008


Paolo,

   You are almost there, you compiled all the libraries.  The final step
requires gnu make.  Try

    cd wgrib2
   gmake -f makefile_all_libs

I am assuming gnu-make is called gmake on FreeBSD systems.

            Wesley






Paolo Ciraci wrote:
> Wesley Ebisuzaki wrote:
>>    Paulo found a similar error when trying to link in the included
>> libpng.  On examination of g2clib-1.0.5/makefile_all_libs,
>> it appears the the makefile_all_libs is using the wrong png.h
>> (/usr/include rather than ../libpng-1.2.23/).  Try changing
>> g2clib-1.0.5/makefile_all_libs: change the 1st INC=..
>>
>> --------- revised INC=....
>> #  In addition, INC must include all directories where the above
>> #  mentioned include files can be found.
>> DEFS=-DUSE_JPEG2000 -DUSE_PNG
>> INC=-I../jasper-1.900.1/src/libjasper/include -I../libpng-1.2.23
>> -I../zlib-1.2.3  -I/usr/include     <<<< revised line <<<<<<<
>> ----------------------------
>>
>>          Wesley Ebisuzaki
>
> Thanks Wesley for your not but it did not solved the problem.
> As suggested I've changed the INC line in g2clib-1.0.5/makefile_all_libs
> and the following is the final part of the compilation (FreeBSD 6.1):
>
> > ...
> > ...
> > ...
> > *** Testing nc_set_default_format ... ok
> >
> > *** Total number of failures: 0
> > *** nc_test SUCCESS!!!
> > PASS: nc_test
> > ==================
> > All 2 tests passed
> > ==================
> > cd wgrib2; make -f makefile_all_libs
> > Error expanding embedded variable.
> > *** Error code 2
> >
> > Stop in /usr/home/grib2
>
> Any other ideas, suggestions?
> Thanks you and best regards.
>
> Dr. Paolo Ciraci
> info at paolociraci.it



More information about the gradsusr mailing list