[Gdal-dev] GDAL on OS X
Frank Warmerdam
warmerdam at pobox.com
Sat Aug 2 19:56:37 EDT 2003
Sean Fulton wrote:
> I'm trying to compile GDAL on OS X. The compile seems to fail at the
> linking stage. Can anyone suggest what the problem might be?
>
> Thanks.
>
> Sean
>
> ranlib ./gdal.a
> ranlib: file: ./gdal.a(pnggccrd.o) has no symbols
> ranlib: file: ./gdal.a(pngvcrd.o) has no symbols
> ranlib: file: ./gdal.a(tif_pixarlog.o) has no symbols
> ranlib: file: ./gdal.a(cpl_vsil_unix_stdio_64.o) has no symbols
> make ./libgdal.1.1.dylib
> gcc -dynamiclib ./frmts/o/*.o ./gcore/*.o ./port/*.o ./alg/*.o
> ./ogr/ogrct.o ./ogr/ogr_opt.o ./ogr/ogr_fromepsg.o
> ./ogr/ogr_srs_validate.o ./ogr/ogrutils.o ./ogr/ogr_srs_proj4.o
> ./ogr/ograssemblepolygon.o ./ogr/ogr_api.o
> ./ogr/ogrsf_frmts/generic/ogrregisterall.o ./ogr/ogrfeaturestyle.o
> ./ogr/ogrsf_frmts/ogrsf_frmts.a ./gdal.a ./ogr/ogr.a ./gdal.a
> ./port/cpl.a -lz -lm -lm \
> -o ./libgdal.1.1.dylib
> ld: Undefined symbols:
> /usr/bin/libtool: internal link edit command failed
> vtable for __cxxabiv1::__class_type_info
> vtable for __cxxabiv1::__si_class_type_info
> operator delete(void*)
> operator new(unsigned long)
> ___gxx_personality_v0
> operator delete[](void*)
> operator new[](unsigned long)
> ___cxa_pure_virtual
> vtable for __cxxabiv1::__vmi_class_type_info
> make[1]: *** [libgdal.1.1.dylib] Error 1
> make: *** [check-lib] Error 2
Sean,
I may have missed another answer for this, but basically, I presume you
are missing C++ libraries and linking with g++ would hopefully fix this.
Try changing LD_SHARED in GDALmake.opt to "g++ -dynamiclib".
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
More information about the Gdal-dev
mailing list