[gdal-dev] iOS patch for GDAL 3.5 requires modification for Mac Catalyst

Nik nik at nixanz.com
Wed Aug 31 16:28:57 PDT 2022


Thanks Rob and Even,

Rob - yes, I am using the CMAKE as per your link.

I have documented my entire process here:  https://gis.stackexchange.com/questions/434514/build-gdal-3-x-for-ios

Although I’ve not yet updated it for the update to the patch file.

-----------------------------------------
NIK SANDS
Line Tamer | Time Traveller | Space Cadet

> On 1 Sep 2022, at 6:57 am, Robert Coup <robert.coup at koordinates.com> wrote:
> 
> 
> Hi,
> 
> The patch at the end of my reply builds & tests ok on my environment (macOS 12.5.1 + arm64).
> 
> Are you using https://github.com/leetal/ios-cmake or do newer versions of CMake now have support for Catalyst? (from https://gitlab.kitware.com/cmake/cmake/-/issues/20132 it seems not)
> 
> How do the varios combinations of CMAKE_SYSTEM_NAME=Darwin|iOS, APPLE, UNIX, etc work under Catalyst?
> 
> Rob :)
> 
> diff --git a/cmake/helpers/configure.cmake b/cmake/helpers/configure.cmake
> index 277f1ab2a9..a91f72aa04 100644
> --- a/cmake/helpers/configure.cmake
> +++ b/cmake/helpers/configure.cmake
> @@ -247,7 +247,7 @@ else ()
> 
>    # For some reason, above tests detect xxxx64 symbols for iOS, which are not
>    # available at build time.
> -  if (${CMAKE_SYSTEM_NAME} MATCHES "iOS")
> +  if (${CMAKE_SYSTEM_NAME} MATCHES “iOS” OR ${CMAKE_SYSTEM_NAME} MATCHES “Darwin”)
>      set(VSI_FOPEN64 "fopen")
>      set(VSI_FTRUNCATE64 "ftruncate")
>      set(VSI_FTELL64 "ftell")
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20220901/19958ae0/attachment.htm>


More information about the gdal-dev mailing list