[gdal-dev] Building GDAL on Ubuntu 22.04

Even Rouault even.rouault at spatialys.com
Sat Jul 6 03:39:12 PDT 2024


I definitely ran into build issues in that past related to missing 
libstdc++ (perhaps related to using older CMake and/or clang?). But 
looking closer, we only add -lstdc++ when building a test program fails 
without this explicit addition. Cf 
https://github.com/OSGeo/gdal/blob/master/cmake/helpers/GdalCompilationFlags.cmake#L165 
to L183

Le 06/07/2024 à 12:02, Kai Pastor, DG0YT via gdal-dev a écrit :
> Why does it have to force anything at all? CMake normally knows how to 
> setup CMAKE_CXX_IMPLICIT_LINK_LIBRARIES.
>
> (Right now fixing hard-coded libstdc++ assumptions in ffmpeg and 
> dependencies in vcpkg, breaking Android.)
>
> Kai
>
> Am 06.07.24 um 09:59 schrieb Even Rouault via gdal-dev:
>> Hi,
>>
>> when using CLang, GDAL forces the use of libstdc++ for linking, so 
>> seeing "cannot find -lstdc++", I suspect you might lack the 
>> installation of libstdc++-11-dev package
>>
>> Even
>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev

-- 
http://www.spatialys.com
My software is free, but my time generally not.



More information about the gdal-dev mailing list