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

Even Rouault even.rouault at spatialys.com
Sun Jan 25 09:31:08 PST 2015


Slightly unrelated remark, I see you provide JPEG2000 support through Jasper. 
I'd rather encourage you using OpenJPEG instead, as Jasper is fairly limited 
and especially unable to deal with large images.

> 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,

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list