Skip to content

Cannot build gdal 1.10.1 on Maverick Xcode 5.0.2 #1

@mohpor

Description

@mohpor

Hi,
I'm working hard on compiling gdal for iOS and I ran into your python scripts (wonderful work btw) but I'm stuck with a weird issue.
let me explain the situation:
1- gdal 1.10.0 won't be compiled because of some known issues with OSX/iOS on gdal side discussed here and here
2- After changing gdal.py to reflect the need to download 1.10.1 instead of 1.10.0, when I run

python preflight.py build gdal

certain errors come up that when I investigate, I can see that the linker is trying to link standard libraries from OSX SDK (in /usr/include/sys) instead of iOS SDK (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/usr/include/sys)! this leads to errors like _Unsupported Architecture_ in cdef.h and all.

P.S.: proj4 gets compiled for all architectures and is present in ~/iOS_libs output directory, gdal compiles for i386 & x86_64 only.
P.P.S: I have limited my Archs to armv7 for the sake of speed. I had to remove arm64 because it wouldn't pass for proj4.
same error goes for 1.10.0,1.10.1, 1.9.2

How can I overcome this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions