[gdal-dev] Issue with Configure for cross compiling GDAL and make

Chaitanya kumar CH chaitanya.ch at gmail.com
Tue Mar 29 14:34:51 EDT 2011


Pradeep,

These kind of errors resolve themselves if you run it after a "make clean"
or on a new copy of the source.

On Tue, Mar 29, 2011 at 11:40 PM, PradeepKumar Penchala <
pradeepkumar.penchala at iiitb.net> wrote:

> Hello,
>
> When I am running make command, I am getting some errors at the end of its
> execution:
>
> make[1]: Entering directory `/home/gise/Desktop/Pradeep/gdal-1.8.0/apps'
> /bin/sh /home/gise/Desktop/Pradeep/gdal-1.8.0/libtool --mode=link g++
>  gdalinfo.lo  /home/gise/Desktop/Pradeep/gdal-1.8.0/libgdal.la -o gdalinfo
> libtool: link: g++ .libs/gdalinfo.o -o .libs/gdalinfo
>  /home/gise/Desktop/Pradeep/gdal-1.8.0/.libs/libgdal.so  -Wl,-rpath
> -Wl,/external/gdal/lib
> /home/gise/Desktop/Pradeep/gdal-1.8.0/.libs/libgdal.so: undefined reference
> to `png_read_info at PNG12_0'
> /home/gise/Desktop/Pradeep/gdal-1.8.0/.libs/libgdal.so: undefined reference
> to `png_get_tRNS at PNG12_0'
> /home/gise/Desktop/Pradeep/gdal-1.8.0/.libs/libgdal.so: undefined reference
> to `png_set_PLTE at PNG12_0'
> /home/gise/Desktop/Pradeep/gdal-1.8.0/.libs/libgdal.so: undefined reference
> to `png_get_text at PNG12_0'
> /home/gise/Desktop/Pradeep/gdal-1.8.0/.libs/libgdal.so: undefined reference
> to `png_set_packing at PNG12_0'
> /home/gise/Desktop/Pradeep/gdal-1.8.0/.libs/libgdal.so: undefined reference
> to `png_write_rows at PNG12_0'
> /home/gise/Desktop/Pradeep/gdal-1.8.0/.libs/libgdal.so: undefined reference
> to `png_set_error_fn at PNG12_0'
> /home/gise/Desktop/Pradeep/gdal-1.8.0/.libs/libgdal.so: undefined reference
> to `png_get_image_width at PNG12_0'
> /home/gise/Desktop/Pradeep/gdal-1.8.0/.libs/libgdal.so: undefined reference
> to `png_get_interlace_type at PNG12_0'
> /home/gise/Desktop/Pradeep/gdal-1.8.0/.libs/libgdal.so: undefined reference
> to `png_read_rows at PNG12_0'
> /home/gise/Desktop/Pradeep/gdal-1.8.0/.libs/libgdal.so: undefined reference
> to `png_set_IHDR at PNG12_0'
> /home/gise/Desktop/Pradeep/gdal-1.8.0/.libs/libgdal.so: undefined reference
> to `png_set_write_fn at PNG12_0'
> /home/gise/Desktop/Pradeep/gdal-1.8.0/.libs/libgdal.so: undefined reference
> to `png_write_end at PNG12_0'
> /home/gise/Desktop/Pradeep/gdal-1.8.0/.libs/libgdal.so: undefined reference
> to `png_get_bit_depth at PNG12_0'
> /home/gise/Desktop/Pradeep/gdal-1.8.0/.libs/libgdal.so: undefined reference
> to `png_create_read_struct at PNG12_0'
> /home/gise/Desktop/Pradeep/gdal-1.8.0/.libs/libgdal.so: undefined reference
> to `png_read_image at PNG12_0'
> /home/gise/Desktop/Pradeep/gdal-1.8.0/.libs/libgdal.so: undefined reference
> to `png_get_channels at PNG12_0'
> /home/gise/Desktop/Pradeep/gdal-1.8.0/.libs/libgdal.so: undefined reference
> to `png_create_write_struct at PNG12_0'
> /home/gise/Desktop/Pradeep/gdal-1.8.0/.libs/libgdal.so: undefined reference
> to `png_get_color_type at PNG12_0'
> /home/gise/Desktop/Pradeep/gdal-1.8.0/.libs/libgdal.so: undefined reference
> to `png_write_info at PNG12_0'
> /home/gise/Desktop/Pradeep/gdal-1.8.0/.libs/libgdal.so: undefined reference
> to `png_get_PLTE at PNG12_0'
> /home/gise/Desktop/Pradeep/gdal-1.8.0/.libs/libgdal.so: undefined reference
> to `png_destroy_write_struct at PNG12_0'
> /home/gise/Desktop/Pradeep/gdal-1.8.0/.libs/libgdal.so: undefined reference
> to `png_get_image_height at PNG12_0'
> /home/gise/Desktop/Pradeep/gdal-1.8.0/.libs/libgdal.so: undefined reference
> to `png_set_compression_level at PNG12_0'
> /home/gise/Desktop/Pradeep/gdal-1.8.0/.libs/libgdal.so: undefined reference
> to `png_destroy_read_struct at PNG12_0'
> /home/gise/Desktop/Pradeep/gdal-1.8.0/.libs/libgdal.so: undefined reference
> to `png_error at PNG12_0'
> /home/gise/Desktop/Pradeep/gdal-1.8.0/.libs/libgdal.so: undefined reference
> to `inflateCopy at ZLIB_1.2.0'
> /home/gise/Desktop/Pradeep/gdal-1.8.0/.libs/libgdal.so: undefined reference
> to `png_set_read_fn at PNG12_0'
> /home/gise/Desktop/Pradeep/gdal-1.8.0/.libs/libgdal.so: undefined reference
> to `png_set_tRNS at PNG12_0'
> /home/gise/Desktop/Pradeep/gdal-1.8.0/.libs/libgdal.so: undefined reference
> to `png_create_info_struct at PNG12_0'
> /home/gise/Desktop/Pradeep/gdal-1.8.0/.libs/libgdal.so: undefined reference
> to `png_sig_cmp at PNG12_0'
> collect2: ld returned 1 exit status
> make[1]: *** [gdalinfo] Error 1
> make[1]: Leaving directory `/home/gise/Desktop/Pradeep/gdal-1.8.0/apps'
> make: *** [apps-target] Error 2
>
> Can you please help me out in resolving this issue.
>
> --
> Thanks and Regards,
> Pradeep
> GISE Lab,
> IIT Bombay
> 9769598197
>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>



-- 
Best regards,
Chaitanya kumar CH.
/tʃaɪθənjə/ /kʊmɑr/
+91-9494447584
17.2416N 80.1426E
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20110330/5acec108/attachment.html


More information about the gdal-dev mailing list