[Gdal-dev] OSX compile problem
Phil Lavery
phil.lavery at mac.com
Mon Oct 20 08:57:38 EDT 2003
Hi Alessandro
thank you, that seems to have worked.
Now I just need to get the OSG to find the GDAL libs.....
Entering directory gdal
c++ -O2 -Wall -D__DARWIN_OSX__ -I../../../../include
-I/usr/X11R6/include -c ../ReaderWriterGDAL.cpp
c++ -O2 -L../../../../lib/Darwin -L/usr/X11R6/lib -L/sw/lib -bundle
ReaderWriterGDAL.o -losgGA -losgDB -losgUtil -losg -lgdal.1.1 -lm
-lstdc++ -lobjc -lOpenThreads -o osgdb_gdal.so
ld: can't locate file for: -lgdal.1.1
make[4]: *** [osgdb_gdal.so] Error 1
make[3]: *** [osgdb_gdal.so.opt] Error 2
make[2]: *** [default] Error 1
make[1]: *** [default] Error 1
make: *** [default] Error 1
[Beagle3:/OpenSceneGraph] phillavery%
thanks again
phil
>> I am trying to compile GDAL on OSX 10.2.6, and get the following
>> error.
>> I have gone back through the archives but can't see a similar problem.
>
>> g++ -Wl,-bind_at_load -o .libs/_gdalmodule.so -bundle
>> .libs/gdal_wrap.o .libs/numpydataset.o .libs/gdalnumeric.o
>> ../.libs/libgdal.dylib -lz -lm -L/stereotools/gdal/.libs
>> ld: Undefined symbols:
>> _PyArg_Parse
> [...]
>
> apparently you miss a reference to the python library in the g++
> command line. i don't know what is the correct fix for this, but
> if you don't need gdal support for the python programming language
> you can easily work around the problem adding '--without-python' on
> the ./configure command line.
>
> cheers,
> alessadnro
> _______________________________________________
> Gdal-dev mailing list
> Gdal-dev at remotesensing.org
> http://remotesensing.org/mailman/listinfo/gdal-dev
>
Phil Lavery
Greythorn Associates
07811 44 56 57
01294 824 824
fax: 01294 822 593
phil at greythornassociates.com
More information about the Gdal-dev
mailing list