[gdal-dev] cmake status update - 99% good news!

Greg Troxel gdt at lexort.com
Mon Jan 24 16:05:27 PST 2022


I have started testing cmake support on gdal master.
My approach is

  1) Build gdal from git using cmake.

  2) Be able to create a release tarball (not actually a release of
  course) from master in order to use for building with pkgsrc.

  3) Build the release using autoconf, basically unchanged pkgsrc
  control files execpt for version, and run tests and check qgis
  functionality.

  4) Convert the package control files to use cmake instead of autoconf
  and test again.  This involves our "gdal-lib" and "py-gdal" packages.

In step 1, I have so far found one problem, an incorrect INCLUDE
variable for poppler.  I have created a pull request with a simple fix:
  https://github.com/OSGeo/gdal/pull/5161

For step 2, as Even suggested would be the case, I ran into a number of
small portability issues (some makefiles need GNU make, even though the
cmake makefiles don't) and missing documentation (breathe and swig (4?)
are required to run mkgdaldist.sh).  None of these are a big deal and
the list is pretty small for what I think might be the first time the
script has been used on a different operating system.  I have a branch
in progress and will submit a PR when it settles down.  The changes are
minor.

For step 3, I've been able to build the release, but haven't tested yet.

Greg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20220124/904e6506/attachment.sig>


More information about the gdal-dev mailing list