[gdal-dev] No OGR formats found in my OS X universal binaries?

Sean Gillies sean at mapbox.com
Fri Jan 23 13:32:10 PST 2015


Hi all,

I've run into a problem when building universal binaries for GDAL 1.11.1 on
OS X 10.9.5. If I follow the instructions at

  https://trac.osgeo.org/gdal/wiki/BuildingOnMac

and set

  CFLAGS="-arch i386 -arch x86_64" CXXFLAGS="-arch i386 -arch x86_64"
LDFLAGS="-arch i386 -arch x86_64"

the software builds without any errors I can tell, but provides no vector
formats:

  $ ./parts/gdal/bin/ogrinfo --formats
  Supported Formats:

Running gdalinfo --formats, on the other hand, gives me all the raster
formats I expect.

My configure commands is below:

  $ ./configure --prefix=/Users/sean/code/frs-wheel-builds/parts/gdal
ARCHFLAGS=-arch i386 -arch x86_64 CFLAGS=-arch i386 -arch x86_64
CXXFLAGS=-arch i386 -arch x86_64 LDFLAGS=-arch i386 -arch x86_64
--with-threads --disable-debug --disable-static --without-grass
--without-libgrass --without-jpeg12
--with-jasper=/Users/sean/code/frs-wheel-builds/parts/jasper
--with-libtiff=internal --with-jpeg --with-gif --with-png
--with-geotiff=internal --with-sqlite3=/usr --with-pcraster=internal
--with-pcraster=internal --with-pcidsk=internal --with-bsb --with-grib
--with-pam
--with-geos=/Users/sean/code/frs-wheel-builds/parts/geos/bin/geos-config
--with-static-proj4=/Users/sean/code/frs-wheel-builds/parts/proj4
--with-expat=/usr
--with-libjson-c=/Users/sean/code/frs-wheel-builds/parts/json-c
--with-libiconv-prefix=/usr --with-libz=/usr
--with-curl=/usr/bin/curl-config --without-python

If I rebuild, using the same configuration but omitting the -arch flags,
ogrinfo --formats reports all the vector formats I expect.

I should add that MACOSX_DEPLOYMENT_TARGET=10.6 is set in the environment
for all these builds. I'm doing that because I'm building GDAL to be used
with C Extension modules for the Python from python.org (which uses SDK
version 10.6).

Here are the details on my gcc:

  gcc -v
  Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr
--with-gxx-include-dir=/usr/include/c++/4.2.1
  Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
  Target: x86_64-apple-darwin13.4.0
  Thread model: posix

Anybody run into this problem before or see something I'm obviously doing
wrong?

Thanks,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20150123/453d7ad9/attachment.html>


More information about the gdal-dev mailing list