[gradsusr] gd Library

Jennifer Adams jma at cola.iges.org
Mon Mar 4 09:04:38 EST 2013


On Mar 4, 2013, at 5:01 AM, M.Mahakur wrote:

> Respected All,
> 
> I am trying to build ver-2 GrADS in ibm-aix5.3.0.0, trying to prepare the supp libs. The gd lib. copied from the link :
> 
> ftp://cola.gmu.edu/grads/Supplibs/2.1/src/gd-2.0.34.tar.gz
> 
> prompts:
> 
> 
> gd-2.0.34/config/Makefile.am
> ...
> ...
> ...
> gd-2.0.34/windows/Makefile
> tar: A lone zero block at 7351
> 
> 1. Is it ok?
I don't know! You could try this one: 
ftp://cola.gmu.edu/grads/Supplibs/2.0/src/gd-2.0.34.tar.gz

> 
> Even if an error I tried to proceed further:
> ./configure --disable-shared \
> --with-png=$HOME/supplibs/src/libpng \
> --with-jpeg=$HOME/supplibs/src/jpeg \
> --prefix=$HOME/supplibs/src/gd
> 
> It showed at the end:
> 
> ** Configuration summary for gd 2.0.34:
> 
>   Support for PNG library:          
>   Support for JPEG library:         yes
>   Support for Freetype 2.x library: no
>   Support for Fontconfig library:   yes
>   Support for Xpm library:          yes
>   Support for pthreads:             yes
> 
> configure: creating ./config.status
> config.status: creating Makefile
> config.status: creating config/Makefile
> config.status: creating config/gdlib-config
> config.status: creating test/Makefile
> config.status: creating config.h
> config.status: executing depfiles commands
> bash-3.2$ 
> 
> 2. WHETHER I NEED TO INSTALL "freetype" lib FIRST? The make leaves with errors:
Even though the config summary says support for Freetype is not configured, it is still looking for freetype include files. So perhaps you need to specify --without-Freetype (or similar syntax) when you invoke configure. I'm not entirely sure whether that will work, it's always a bit of a guessing game and AIX compilers are notoriously fussy and annoying. You do not need the Freetype interface in gd for GrADS. You could also try editing the config.h file after running configure to see if it has some flag in there regarding Freetype that you could change from a 1 to a 0… 

I have a colleague who has built some of the supplibs on AIX, I will ask him if he has any secrets. 
> 
> 
> xlc -DHAVE_CONFIG_H -I. -I. -I. -I/gpfs2/home/mmahakur/supplibs/src/jpeg/include -q64 -I/usr/local/vni/imsl/cnl700/aixxl800a64/include -c gdfontt.c -o gdfontt.o
> source='gdft.c' object='gdft.lo' libtool=yes \
> DEPDIR=.deps depmode=none /bin/sh ./config/depcomp \
> /bin/sh ./libtool --tag=CC --mode=compile xlc -DHAVE_CONFIG_H -I. -I. -I.   -I/gpfs2/home/mmahakur/supplibs/src/jpeg/include  -q64 -I/usr/local/vni/imsl/cnl700/aixxl800a64/include -c -o gdft.lo gdft.c
> xlc -DHAVE_CONFIG_H -I. -I. -I. -I/gpfs2/home/mmahakur/supplibs/src/jpeg/include -q64 -I/usr/local/vni/imsl/cnl700/aixxl800a64/include -c gdft.c -o gdft.o
> "gdft.c", line 113.10: 1506-296 (S) #include file <freetype/freetype.h> not found.
> "gdft.c", line 114.10: 1506-296 (S) #include file <freetype/ftglyph.h> not found.
> "gdft.c", line 115.10: 1506-296 (S) #include file <freetype/ftsizes.h> not found.
> <snipped>
> 
> The original source of gd seems to be down: http://www.boutell.com/gd/ !
> 
> Altough not in sequence I even installed the 'freetype-2.4.4' (obtained from the same URL). I do not know how to overcome this.


> I have problems with dap also.. I will sent separately…
Heh. I don't think you will succeed, BUT you only need the DAP library if you plan to access station data via opendap on your AIX system. Are you sure you need this feature? Opendap access for grids is built into the netcdf library now.
--Jennifer

> 
> Thanks and Regards,
> Mahakur
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr

--
Jennifer M. Adams
IGES/COLA
4041 Powder Mill Road, Suite 302
Calverton, MD 20705
jma at cola.iges.org



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20130304/386fc502/attachment-0003.html 


More information about the gradsusr mailing list