Thanks Peter,

I have tried various combinaisons of "rename-internal" symbols and 
hide-internal-symbols yes/no and with/without png and some other guesses but 
couldn't fix it.


Here is my current configure (for iOS Simulator, works great on iOS 15 or 16, 
but not on iOS 12 or 14).


./configure --prefix=/Users/philippelelong/Documents/gdal/gdal_ios_simulator \
            --disable-shared --enable-static \
            --without-sqlite3 \
            --without-ld-shared \
            --without-libtool \
            --with-threads \
            --without-geos \
            --with-libz=internal \
            --with-libtiff=internal \
            --with-geotiff=internal \
            
--with-expat=/Users/philippelelong/Documents/libexpat-R_2_4_8/expat/expat_ios_simulator
 \
            --disable-all-optional-drivers \
            --enable-driver-bsb \
            --enable-driver-iso8211 \
            --enable-driver-s57 \
            --enable-driver-shape \
            --with-png \
            --with-jpeg=no \
            --with-curl=no \
            --with-sqlite3=no \
            --with-hide-internal-symbols=yes \
            
--with-proj=/Users/philippelelong/Documents/gdal/proj6_ios_simulator 
--host=$host

--Philippe


________________________________
From: Peter Petrik <peter.pet...@lutraconsulting.co.uk>
Sent: Tuesday, September 20, 2022 8:35 AM
To: Philippe Lelong
Cc: gdal-dev@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...@meltemus.com<mailto:lelong...@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@lists.osgeo.org<mailto:gdal-dev@lists.osgeo.org>
https://lists.osgeo.org/mailman/listinfo/gdal-dev
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to