[QGIS-Developer] Compiling against homebuilt GDAL

Thomas Larsen Wessel mrvelle at gmail.com
Wed Feb 28 10:33:32 PST 2024


I have successfully built QGIS and GDAL (3.7.2) separately. Now I want to
build QGIS against this GDAL. This is what I tried:

git clone git at github.com:qgis/QGIS.git
cd QGIS
mkdir build
cd build
GDAL_DIR=/home/velle/gdal3.7.2/build cmake ..

The output contains the following error for GDAL:

CMake Error at /home/velle/gdal-3.7.2/build/GDALConfig.cmake:24 (include):
  include could not find requested file:
    /home/velle/gdal-3.7.2/build/GDAL-targets.cmake
Call Stack (most recent call first):
  cmake/FindGDAL.cmake:16 (find_package)
  CMakeLists.txt:365 (find_package)

Could someone please tell me if I'm even doing it right?

More info in these two gists:
https://gist.github.com/velle/596a137dfe1c2325a056b5c8e3146efd#file-shell-output
https://gist.github.com/velle/596a137dfe1c2325a056b5c8e3146efd#file-cmakeoutput-log

Best regards, Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20240228/095491c9/attachment.htm>


More information about the QGIS-Developer mailing list