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

William Kyngesburye woklist at kyngchaos.com
Fri Jan 23 18:21:45 PST 2015


You need to quote the CFLAGS, CXXFLAGS and LDFLAGS parts in the configure line, which also overrides whatever you may have set before running configure as you imply (ARCHFLAGS is meaningless, drop that):

./configure --prefix=/Users/sean/code/frs-wheel-builds/parts/gdal 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

On Jan 23, 2015, at 3:32 PM, Sean Gillies <sean at mapbox.com> wrote:

> 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,
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"I ache, therefore I am.  Or in my case - I am, therefore I ache."

- Marvin




More information about the gdal-dev mailing list