[gradsusr] error compiling gd library
Huber Paúl Gilt López
huber.gilt at igp.gob.pe
Wed Jul 7 11:42:25 EDT 2010
Hi John,
Dont worry about the difficulty that Im having, I cant figure how you
build in or with Cygwin, I suppose it is a heavy work.
Any way, I dont found any reference with libpng14 in the libgbs Makefile ,
but I found the following lines that
I think it would be not setup for the libpng12. How can I setup this
Makefile in order to use the libpng12 library, and so try to compile the gb
library? (Im attaching the libgbs Makefile)
LIBPNG12_CONFIG =
LIBPNG_CONFIG = /usr/local/bin/libpng-config
Please help me,
Best regards,
Huber
_____
De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En
nombre de Huddleston, John
Enviado el: martes, 06 de julio de 2010 14:30
Para: GrADS Users Forum
Asunto: Re: [gradsusr] error compiling gd library
Hi Huber, so sorry you are having so much difficulty. You should see the
work I have for the Cygwin build!
Look at your gcc line and you will see the path
/usr/local/lib/hpux32/libpng14.so
Edit the Makefile, search for libpng14, edit that line and replace it with
the path to your libpng12 file.
John
John Huddleston, PhD
Research Associate
Cooperative Institute for Research in the Atmosphere
Mail Stop 1375 @ CIRA
Colorado State University
Fort Collins, CO 80521
970-491-8602
From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org]
On Behalf Of Huber Paúl Gilt López
Sent: Tuesday, July 06, 2010 1:13 PM
To: 'GrADS Users Forum'
Subject: Re: [gradsusr] error compiling gd library
Hello John,
I start to compile all the supplemental libraries; I compiled readline,
ncurses, zlib, libpng and jpeg libraries, but I cant compile gd library.
Because I have the following error:
gcc -g -O2 -o gdparttopng gdparttopng.o -L/usr/local/lib/hpux32
-L/usr/lib/X11R4 -L/home/huber/grads/supplibs/src/jpeg-6b/lib
./.libs/libgd.a -L/usr/contrib/X11R6/lib /usr/local/lib/hpux32/libXpm.so
/usr/local/lib/hpux32/libintl.so -lX11 /usr/local/lib/hpux32/libjpeg.so
/usr/local/lib/hpux32/libfontconfig.so /usr/local/lib/hpux32/libiconv.so
/usr/local/lib/hpux32/libexpat.so /usr/local/lib/hpux32/libfreetype.so
/usr/local/lib/hpux32/libpng14.so -lz -lm
ld: Unsatisfied symbol "gdImageCreateFromGd2Part" in file gdparttopng.o
ld: Unsatisfied symbol "png_check_sig" in file ./.libs/libgd.a[gd_png.o]
2 errors.
collect2: ld returned 1 exit status
make[2]: *** [gdparttopng] Error 1
make[2]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34'
make: *** [all] Error 2
Who can I setup the correct path for the libpng1.2 library, because I follow
the instructions in the PDF, and I executed the following commands:
cd gd-2.0.34
./configure --disable-shared \
--with-png=$HOME/supplibs/src/libpng-1.2.18 \
--with-jpeg=$HOME/supplibs/src/jpeg-6b \
--prefix=$HOME/supplibs/src/gd-2.0.34
make
Please help me,
Best regards,
Huber
_____
De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En
nombre de Huddleston, John
Enviado el: viernes, 02 de julio de 2010 12:20
Para: GrADS Users Forum
Asunto: Re: [gradsusr] error compiling gd library
Hi Huber,
Did you remove the libpng directory, untar libpng again, configure again
with the options specified in Building_GrADS.pdf, and make the system?
Ditto for the GD build.
You must follow the order of the build as shown in the PDF file.
John Huddleston, PhD, PE
_____
From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On
Behalf Of Huber Paúl Gilt López [huber.gilt at igp.gob.pe]
Sent: Friday, July 02, 2010 11:06 AM
To: 'GrADS Users Forum'
Subject: Re: [gradsusr] error compiling gd library
Hello John,
Ive done your instructions and also I compiled the zlib-1.2.3 library and I
have the library libz.a, in supplibs/lib.
And I have the same problem in libpng-1.2-18 compilation.
What is going on with libpng library if I have the libz.a library in the
folder supplibs/lib?
(In the end I list the compiled libraries)
Please help me,
Best regards.
Huber Paul Gilt López
# pwd
/home/huber/grads/supplibs/lib
# ls
libcurl.a libhdf5_hl.a libncurses.a libreadline.a libxdr.a
libdf.a libjpeg.a libnetcdf.a libsz.a libz.a
libhdf5.a libmfhdf.a libpng12.a libudunits.a
_____
De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En
nombre de Huddleston, John
Enviado el: viernes, 02 de julio de 2010 9:30
Para: GrADS Users Forum
Asunto: Re: [gradsusr] error compiling gd library
Hi Huber, On June 15th I sent you a PDF on how to build GrADS, please look
it over,
libpng doesn't build because you do not have the zlib.
Get zlib from ftp://grads.iges.org/grads/Supplibs/2.0/src/zlib-1.2.3.tar.gz
tar xvfz ./tarfiles/zlib-1.2.3.tar.gz
cd zlib-1.2.3/
./configure --prefix=$HOME/supplibs/src/zlib-1.2.3
make
make install
cp ./lib/libz.a $HOME/supplibs/lib
mkdir $HOME/supplibs/include/zlib
cp ./include/zlib.h $HOME/supplibs/include/zlib
John
_____
From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On
Behalf Of Huber Paúl Gilt López [huber.gilt at igp.gob.pe]
Sent: Friday, July 02, 2010 8:17 AM
To: 'GrADS Users Forum'
Subject: Re: [gradsusr] error compiling gd library
John,
Because I found this error when I configure PNG library 1.2:
#cd /home/huber/grads/supplibs/src/libpng-1.2.18
./configure --disable-shared
--prefix=/home/huber/grads/supplibs/src/libpng-1.2.18
checking for pow in -lm... yes
checking for zlibVersion in -lz... no
configure: error: zlib not installed
Ive exported this variable CC=gcc by this other CC='gcc
-L/home/huber/grads/supplibs/lib -lz', then Ive done make, and make
install. Provably the libpng12.a library didnt build well, how I can fix
the previous error when I tried to configure the libpng12 library?
Please help me,
Best regards,
Huber Paul Gilt Lopez
_____
De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En
nombre de Huddleston, John
Enviado el: jueves, 01 de julio de 2010 18:46
Para: GrADS Users Forum
Asunto: Re: [gradsusr] error compiling gd library
Huber
You need the PNG library1.2 not 1.4. Somehow you've installed a more recent
version of PNG into /usr/local
Go back to the PNG 1.2 build and do a "make install" to load it into
/usr/local
Otherwise, manually edit the Makefile and change it to point to your
$(SUPPLIBS) PNG area.
John Huddleston
_____
From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On
Behalf Of Huber Paúl Gilt López [huber.gilt at igp.gob.pe]
Sent: Thursday, July 01, 2010 4:15 PM
To: 'GrADS Users Forum'
Subject: [gradsusr] error compiling gd library
Hello,
I want to compile the gd library, i used this command, but I have an
unsatisfied symbol. How can I include these missing symbol?
#cd /home/huber/grads/supplibs/src/gd-2.0.34
#./configure --disable-shared\
--with-png=/home/huber/grads/supplibs/src/libpng-1.2.18\
--with-jpeg=/home/huber/grads/supplibs/src/jpeg-6b\
--prefix=/home/huber/grads/supplibs/src/gd-2.0.34
#make
gcc -g -O2 -o gdparttopng gdparttopng.o -L/home/huber/grads/supplibs/lib
-L/usr/local/lib/hpux32 -L/usr/lib/X11R4
-L/home/huber/grads/supplibs/src/jpeg-6b/lib ./.libs/libgd.a
-L/usr/contrib/X11R6/lib /usr/local/lib/hpux32/libXpm.so
/usr/local/lib/hpux32/libintl.so -lX11 -ljpeg
/usr/local/lib/hpux32/libfontconfig.so /usr/local/lib/hpux32/libiconv.so
/usr/local/lib/hpux32/libexpat.so /usr/local/lib/hpux32/libfreetype.so
/usr/local/lib/hpux32/libpng14.so -lz -lm
ld: Unsatisfied symbol "png_check_sig" in file ./.libs/libgd.a[gd_png.o]
1 errors.
collect2: ld returned 1 exit status
make[2]: *** [gdparttopng] Error 1
make[2]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34'
make: *** [all] Error 2
Please help me,
Best regards,
Huber Paul Gilt Lopez
IGP-Peru
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100707/26328cd5/attachment-0003.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile
Type: application/octet-stream
Size: 37856 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100707/26328cd5/attachment-0003.obj
More information about the gradsusr
mailing list