<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi list, </div><div><br></div><div>First, let me say, I'm *not* a python person, so please be gentle with your assumptions.</div><div><br></div><div>I built gdal-1.7.2 with the following configure options:</div><div><br></div><div><br></div><div><div>$ ./configure \</div><div> CC="gcc -arch i386" \</div><div> CXX="g++ -arch i386" \</div><div>OBJC="gcc -arch i386" \</div><div> F77="gfortran -arch i386" \</div><div> FC="gfortran -arch i386" \</div><div> --with-pg=/usr/local/pgsql/bin/pg_config \</div><div> --with-macosx-framework=NO \</div><div> --without-sqlite3 \</div><div> --with-python</div></div><div><br></div><div><div>configure: WARNING: unrecognized options: --with-macosx-framework</div><div><br></div><div>GDAL is now configured for i386-apple-darwin10.4.0</div><div><br></div><div> Installation directory: /usr/local</div><div> C compiler: gcc -arch i386 -g -O2</div><div> C++ compiler: g++ -arch i386 -g -O2</div><div><br></div><div> LIBTOOL support: yes</div><div><br></div><div> LIBZ support: external</div><div> GRASS support: no</div><div> CFITSIO support: no</div><div> PCRaster support: internal</div><div> NetCDF support: yes</div><div> LIBPNG support: internal</div><div> LIBTIFF support: internal (BigTIFF=yes)</div><div> LIBGEOTIFF support: internal</div><div> LIBJPEG support: internal</div><div> 8/12 bit JPEG TIFF: yes</div><div> LIBGIF support: internal</div><div> OGDI support: no</div><div> HDF4 support: no</div><div> HDF5 support: no</div><div> Kakadu support: no</div><div> JasPer support: no</div><div> ECW support: no</div><div> MrSID support: no</div><div> MSG support: no</div><div> GRIB support: yes</div><div> EPSILON support: no</div><div> cURL support (wms/wcs/...):yes</div><div> PostgreSQL support: yes</div><div> MySQL support: no</div><div> Ingres support: no</div><div> Xerces-C support: no</div><div> NAS support: no</div><div> Expat support: yes</div><div> ODBC support: no</div><div> PGeo support: no</div><div> PCIDSK support: internal</div><div> OCI support: no</div><div> GEORASTER support: no</div><div> SDE support: no</div><div> DODS support: no</div><div> SQLite support: no</div><div> SpatiaLite support: no</div><div> DWGdirect support no</div><div> INFORMIX DataBlade support:no</div><div> GEOS support: yes</div><div> VFK support: yes</div><div><br></div><div> Mac OS X Framework : no</div><div><br></div><div> SWIG Bindings: python </div><div><br></div><div> Statically link PROJ.4: no</div><div> enable OGR building: yes</div><div> enable pthread support: no</div><div> hide internal symbols: no</div><div><br></div><div>Jeff-Hamanns-MacBook-Pro:gdal-1.7.2 hamannj$ </div></div><div><br></div><div><br></div><div>okay, a little odd (-with-macosx-framework, --with-swig) when ./configure --help contains:</div><div><br></div><div><div> --with-macosx-framework Build and install GDAL as a Mac OS X Framework</div><div> --with-perl Enable perl bindings</div><div> --with-php Enable php bindings</div><div> --with-ruby Enable Ruby bindings</div><div> --with-python Enable python bindings</div></div><div><br></div><div>but, it builds and installs just fine. I can also build things that depend on gdal (i.e. wktraster). </div><div><br></div><div>When I try to "run" (again newbie talking here, so be patient), a python script and import gdal:</div><div><br></div><div>Jeff-Hamanns-MacBook-Pro:gdal-1.7.2 hamannj$ python</div><div><div>Python 2.6.1 (r261:67515, Feb 11 2010, 00:51:29) </div><div>[GCC 4.2.1 (Apple Inc. build 5646)] on darwin</div><div>Type "help", "copyright", "credits" or "license" for more information.</div><div>>>> import gdal</div><div>Traceback (most recent call last):</div><div> File "<stdin>", line 1, in <module></div><div> File "/Library/Python/2.6/site-packages/GDAL-1.7.2-py2.6-macosx-10.6-universal.egg/gdal.py", line 2, in <module></div><div> from osgeo.gdal import deprecation_warn</div><div> File "/Library/Python/2.6/site-packages/GDAL-1.7.2-py2.6-macosx-10.6-universal.egg/osgeo/__init__.py", line 21, in <module></div><div> _gdal = swig_import_helper()</div><div> File "/Library/Python/2.6/site-packages/GDAL-1.7.2-py2.6-macosx-10.6-universal.egg/osgeo/__init__.py", line 17, in swig_import_helper</div><div> _mod = imp.load_module('_gdal', fp, pathname, description)</div><div>ImportError: dlopen(/Library/Python/2.6/site-packages/GDAL-1.7.2-py2.6-macosx-10.6-universal.egg/osgeo/_gdal.so, 2): Symbol not found: _CPLDefaultErrorHandler</div><div> Referenced from: /Library/Python/2.6/site-packages/GDAL-1.7.2-py2.6-macosx-10.6-universal.egg/osgeo/_gdal.so</div><div> Expected in: flat namespace</div><div> in /Library/Python/2.6/site-packages/GDAL-1.7.2-py2.6-macosx-10.6-universal.egg/osgeo/_gdal.so</div><div>>>> </div></div><div><br></div><div>I can't seem to get any traction, but can somebody provide an answer as to why gdal isn't loading?</div><div><br></div><div>Please?</div><div><br></div><div>Respectfully,</div><div>Jeff.</div><div><br></div><div><br></div><div><br></div><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div>Jeff Hamann, PhD<br>PO Box 1421<br>Corvallis, Oregon 97339-1421<br>541-754-2457<br>jeff.hamann[at]forestinformatics[dot]com<br><a href="http://www.forestinformatics.com/">http://www.forestinformatics.com</a></div></span>
</div>
<br></body></html>