[gdal-dev] No OGR formats found in my OS X universal binaries?
sean at mapbox.com
Fri Jan 23 13:32:10 PST 2015
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
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
$ ./parts/gdal/bin/ogrinfo --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
--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
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
Here are the details on my gcc:
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr
Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
Thread model: posix
Anybody run into this problem before or see something I'm obviously doing
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the gdal-dev