Skip to content

Instantly share code, notes, and snippets.

@jorgeas80
Created March 9, 2012 18:12
Show Gist options
  • Save jorgeas80/2007830 to your computer and use it in GitHub Desktop.
Save jorgeas80/2007830 to your computer and use it in GitHub Desktop.
GDAL configure line for Mac OS X 10.6.8
export MACOSX_DEPLOYMENT_TARGET=10.6
export ARCHFLAGS="-arch i386 -arch x86_64"
./configure --with-threads --disable-static --without-grass --with-jasper=/Library/Frameworks/UnixImageIO.framework/unix --with-libtiff=/Library/Frameworks/UnixImageIO.framework/unix --with-jpeg=/Library/Frameworks/UnixImageIO.framework/unix --with-gif=/Library/Frameworks/UnixImageIO.framework/unix --with-png=/Library/Frameworks/UnixImageIO.framework/unix --with-geotiff=/Library/Frameworks/UnixImageIO.framework/unix --with-sqlite3=/Library/Frameworks/SQLite3.framework/unix --with-odbc --with-pcraster=internal --with-geos=/Library/Frameworks/GEOS.framework/unix -with-static-proj4=/Library/Frameworks/PROJ.framework/unix --with-expat=/usr/local --with-curl --with-python --with-macosx-framework CFLAGS="-Os -arch i386 -arch x86_64" CXXFLAGS="-Os -arch i386 -arch x86_64" LDFLAGS="-arch i386 -arch x86_64"
@jorgeas80
Copy link
Author

BE CAREFUL: GDAL r23745 causes a build error. You need to remove --tag=LD from GDALMake.opt.in. See http://trac.osgeo.org/gdal/ticket/4557

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment