[gdal-dev] Gdal/Proj builds on iOS

Peter Petrik peter.petrik at lutraconsulting.co.uk
Mon Sep 19 23:35:40 PDT 2022


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>
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
> 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/78dff599/attachment.htm>


More information about the gdal-dev mailing list