Wgrib2 for FreeBSD

Wesley Ebisuzaki Wesley.Ebisuzaki at NOAA.GOV
Tue Feb 19 13:12:50 EST 2008


Valerio and Paulo,

    Valerio's error message (missing `PNG_COLOR_TYPE_RGB_ALPHA')
suggests that the
system png.h was different than on the linux boxes.   Therefore no way
to use the installed libpng.

    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

Valerio Guerra wrote:
> Hi All,
> I tried to compile wgrib2 on FreeBSD 6.1 without success.
> The following is the error I obtain on the 'make'
>
>
>> dec_png.c:117: error: `PNG_COLOR_TYPE_RGB_ALPHA' undeclared (first use in this function)
>> *** Error code 1
>>
>> Stop in /usr/home/grib2/g2clib-1.0.5.
>> *** Error code 1
>>
>> Stop in /usr/home/grib2.
>> $
>>
>
> The system already has both png and zlib libraries.
> Any ideas, suggestions?
> Where can I find a Wgrib2 binaries for FreeBSD?
>
> Thank you.
>
> Valerio Rossi.
>



More information about the gradsusr mailing list