[gdal-dev] installing gdal for iOS development

Paul Lohr pmlpml001 at yahoo.com
Fri Jul 8 04:30:21 EDT 2011


I have the build_for_iphoneos.sh script from pseudogreen.com along with 
gdal-1.8.0. I am trying to get GDAL installed so I can start learning how to use 

it with iOS devices (iPhone, iPad).

Xcode is version 3.2.5 and the iOS SDK is version 4.2. I have Xcode 4.2 and iOS 
5.0 installed but they are not in the same folders as the earlier versions.

I am getting at least two error messages. When I run build_for_iphoneos.sh, this 

is the first error that is returned in the config.log file: "conftest.c:59:22: 
error: dbmalloc.h: No such file or directory". I read somewhere to find the 
earliest error message and deal with that first.

While the build_for_iphoneos.sh script is running in the terminal window, it 
stops running after this message appears: 
"/Developer4.2/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/usr/include/architecture/arm/math.h:475:

error: expected initializer before ‘__AVAILABILITY_INTERNAL__IPHONE_3_2’
make[3]: *** [../o/ogrsqlitedatasource.lo] Error 1
make[2]: *** [sqlite-target] Error 2
make[1]: *** [sublibs] Error 2
make: *** [ogr-target] Error 2"

The build_for_iphoneos.sh script can be found here:
http://pseudogreen.org/bzr/sandbox/iphone/build_for_iphoneos

Should I deal with the dbmalloc.h error first? Any ideas what to do to correct 
this?

Thank you for any help,
Paul Lohr


More information about the gdal-dev mailing list