[gdal-dev] Gdal/Proj builds on iOS

Philippe Lelong lelong.ph at meltemus.com
Tue Sep 20 01:46:54 PDT 2022


Hi,


I finally found the solution, I had to export my deployment target.


I just added in my build scripts for PROJ and GDAL:


export IOS_DEPLOYMENT_TARGET=12 and (to be sure) export IPHONEOS_DEPLOYMENT_TARGET=12


And all good!


Thanks again
Philippe


________________________________
From: Peter Petrik <peter.petrik at lutraconsulting.co.uk>
Sent: Tuesday, September 20, 2022 8:35 AM
To: Philippe Lelong
Cc: gdal-dev at lists.osgeo.org
Subject: Re: [gdal-dev] Gdal/Proj builds on iOS

Hi Philippe,

iOS links all the stuff statically, so there are sometimes clashes of symbols. You can look at how we build it for Mergin Maps here: https://github.com/MerginMaps/input-sdk/tree/master/ios/recipes

Kind Regards,
Peter Petrík
CPO of Mergin Maps
LI<https://www.linkedin.com/in/peter-petrik/>, Mergin Maps<https://www.merginmaps.com>





On Tue, Sep 20, 2022 at 8:31 AM Philippe Lelong <lelong.ph at meltemus.com<mailto:lelong.ph at meltemus.com>> wrote:

Hi,


We have a strange issue with our GDAL build for iOS (GDAL 3.4.1, PROJ6). Everything is fine when running on iOS 15 or 16, but when the same app is run on iOS 14 or 12 the app will not load at all (does not even reach main) and the only thing I can see in a console is this:


dyld: Symbol not found: __ZTTNSt3__114basic_ifstreamIcNS_11char_traitsIcEEEE


If I remove completely GDAL libs from the app it works, so I know this is a dependency coming for GDAL, and a grep "char_traits" in all our libs returns libgdal.a and libproj.a only.


I can join more logs from configure or build if needed.


Any idea what is wrong here ?


Thanks

Philippe.

_______________________________________________
gdal-dev mailing list
gdal-dev at lists.osgeo.org<mailto:gdal-dev at lists.osgeo.org>
https://lists.osgeo.org/mailman/listinfo/gdal-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20220920/3b0eaaeb/attachment.htm>


More information about the gdal-dev mailing list