[gdal-dev] GDAL 3.6.0 patch for building on iOS (and Mac Catalyst)

Nik Sands nik at nixanz.com
Fri Nov 11 17:00:34 PST 2022


Hi GDAL devs

It appears as though ‘pread64’, introduced in 3.6.0, has broken building on iOS in the same way that other ‘…64’ errors used to occur on version 3.5.0 before being patched for 3.5.2.

The attached patch (text content also pasted below) allows the build to continue past that point for iOS (and Mac Catalyst).  I’m just an ignorant hobbyist who doesn’t really understand a lot of this stuff, so please check that what I’ve done here is correct!  :-)  If it’s all OK, then please apply this (or similar) patch for the next release.

(I’ll post my next error in a seperate email, shortly.)

(PS.  I’m VERY excited to be able to create/update fGDBs with 3.6.0!!!  Thanks so much for all the work you guys do on this.)

Cheers,
Nik.


--- configure.cmake.orig	2022-11-07 07:09:20
+++ configure.cmake	2022-11-12 11:39:42
@@ -280,6 +280,7 @@
     unset(HAVE_FSEEK64 CACHE)
     unset(HAVE_STATVFS64)
     unset(HAVE_STATVFS64 CACHE)
+    unset(HAVE_PREAD64 CACHE)
   endif()
 
   set(UNIX_STDIO_64 TRUE)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure.cmake.PATCH
Type: application/octet-stream
Size: 267 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20221112/adbd4967/attachment.obj>


More information about the gdal-dev mailing list