libgeotiff icon indicating copy to clipboard operation
libgeotiff copied to clipboard

Documentation request: Supported compiler versions and C language versions

Open schwehr opened this issue 11 months ago • 3 comments

I didn't spot anywhere that libgeotiff documents the compiler and C language versions support.

#127 depends on knowing what the project supports.

schwehr avatar Jan 27 '25 16:01 schwehr

I am also searching for this information. It seems that latest version requires gcc >= 13? Since the current Opensuse / SLES 15.* series provides gcc 7, it would help to know which library version still supports these older gcc versions

Konfekt avatar Jun 25 '25 06:06 Konfekt

It seems that latest version requires gcc >= 13?

what makes you think so ? CMakeLists.txt shows:

set_property(TARGET ${GEOTIFF_LIBRARY_TARGET} PROPERTY C_STANDARD 99)

rouault avatar Jun 25 '25 07:06 rouault

Well, vcpkg install libgeotiff gave via its dependency proj

-- Performing Test _TEST_SHARP_EMBED
CMake Error in /home/gitlab-runner/vcpkg/buildtrees/proj/x64-linux-rel/CMakeFiles/CMakeScratch/TryCompile-quHcMl/CMakeLists.txt:
  Target "cmTC_d1640" requires the language dialect "C23" .  But the current
  compiler "GNU" does not support this, or CMake does not know the flags to
  enable it.
CMake Error at /home/gitlab-runner/vcpkg/downloads/tools/cmake-3.30.1-linux/cmake-3.30.1-linux-x86_64/share/cmake-3.30/Modules/Internal/CheckSourceCompiles.cmake:101 (try_compile):
  Failed to generate test project build system.
Call Stack (most recent call first):
  /home/gitlab-runner/vcpkg/downloads/tools/cmake-3.30.1-linux/cmake-3.30.1-linux-x86_64/share/cmake-3.30/Modules/CheckCSourceCompiles.cmake:52 (cmake_check_source_compiles)
  CMakeLists.txt:366 (check_c_source_compiles)
  CMakeLists.txt:378 (is_sharp_embed_available)
-- Configuring incomplete, errors occurred!
ninja: build stopped: subcommand failed.

One issue seemed to be that 1.7.4 requires cmake 3.21 but Opensuse 15.* has 3.20. A git hard reset to an older version of vcpkg/ports has alas allowed gitlab-runner to install libgeotiff.

Konfekt avatar Jun 25 '25 10:06 Konfekt