-- Could NOT find ZSTD (missing: ZSTD_DIR) -- Found PkgConfig: /usr/bin/x86_64-pc-linux-gnu-pkg-config (found version "1.8.0") -- Found ZSTD: /usr/lib64/libzstd.so (found version "1.5.6") -- Could NOT find SFCGAL (missing: SFCGAL_LIBRARY SFCGAL_INCLUDE_DIR) -- Reading /usr/share/cmake/GeoTIFF/geotiff-config.cmake -- GeoTIFF configuration, version 1.7.1 -- include directory: ${GeoTIFF_INCLUDE_DIRS} -- ${GeoTIFF_LIBRARIES} set to shared library -- Found PNG: /usr/lib64/libpng.so (found suitable version "1.6.43+apng", minimum required is "1.6") -- Found JPEG: /usr/lib64/libjpeg.so (found version "62") -- Performing Test HAVE_JPEGTURBO_DUAL_MODE_8_12 -- Performing Test HAVE_JPEGTURBO_DUAL_MODE_8_12 - Success -- Found GIF: /usr/lib64/libgif.so (found version "5.2.2") -- Could NOT find OpenCAD (missing: OPENCAD_LIBRARY OPENCAD_INCLUDE_DIR) -- Found QHULL: /usr/lib64/libqhull_r.so -- Could NOT find LERC (missing: LERC_LIBRARY LERC_INCLUDE_DIR) -- Could NOT find BRUNSLI (missing: BRUNSLI_ENC_LIB BRUNSLI_DEC_LIB BRUNSLI_INCLUDE_DIR) -- Could NOT find libQB3 (missing: libQB3_DIR) -- Found Shapelib: /usr/include/libshp (found version "1.5.0") -- SHAPELIB has been found, but is disabled by default. Enable it by setting GDAL_USE_SHAPELIB=ON I think there should be at least USE flag to enable shapelib. Thank you.
And there is 3.9.1 out, btw https://github.com/OSGeo/gdal/blob/v3.9.1/NEWS.md
unfortunately adding adding shapelib doensn't work straight forward by just adding ``` -DGDAL_USE_SHAPELIB=$(usex shapefile) ``` and none of arch, fedora or alpine did add shapelib (until now) ... and on gentoo starts throwing errors like -- Configuring done (15.7s) CMake Error at frmts/aigrid/CMakeLists.txt:14 (target_link_libraries): Error evaluating generator expression: $<TARGET_OBJECTS:shapelib> Objects of target "shapelib" referenced but no such target exists. CMake Error at frmts/aigrid/CMakeLists.txt:14 (target_link_libraries): Error evaluating generator expression: $<TARGET_OBJECTS:shapelib> Objects of target "shapelib" referenced but no such target exists. CMake Error at frmts/aigrid/CMakeLists.txt:14 (target_link_libraries): Error evaluating generator expression: $<TARGET_OBJECTS:shapelib> Objects of target "shapelib" referenced but no such target exists. CMake Error at frmts/aigrid/CMakeLists.txt:14 (target_link_libraries): Error evaluating generator expression: $<TARGET_OBJECTS:shapelib> Objects of target "shapelib" referenced but no such target exists. CMake Error at frmts/aigrid/CMakeLists.txt:14 (target_link_libraries): Error evaluating generator expression: $<TARGET_OBJECTS:shapelib> Objects of target "shapelib" referenced but no such target exists. -- Generating done (0.3s) so any contribution is welcome to get this to work as proposed ;-)
Ah, thank you for the research. I did not know it is not really implemented in the build system.