Trouble building GDAL 3.12.3 on Linux

Carl Godkin via gdal-dev <[email protected]>
Newsgroups gmane.comp.gis.gdal.devel
Message-ID <CAE=8kmmB26+vYO=3Yx2BkCbm5zGzx+vNO8m1f1edHdre4pX8gA@mail.gmail.com>
Hi,

I'm updating our GDAL and other third party libraries.  I'm usually pretty
adept at this but I am having a problem building GDAL 3.12.3 on Linux RHEL8
with GCC 13.2.

The shared library builds okay, but once we get to the apps, I am getting
undefined references to two PROJ functions (proj_coordinate_metadata_create
& proj_crs_has_point_motion_operation).

I was struggling with this last Friday with PROJ 9.8.0 but, after
this weekend's advice about ETRS89, I switched to PROJ 9.7.1 where I'm
having the same problem.

I haven't seen any similar questions go by and I am stuck.  Any advice?

My GDAL 3.12.3 cmake command looks like this:

 cmake \
   -DCMAKE_BUILD_TYPE=Release \
   -DCMAKE_C_COMPILER:FILEPATH=/usr/local/gcc132/bin/gcc \
   -DCMAKE_CXX_COMPILER:FILEPATH=/usr/local/gcc132/bin/g++ \
   -DCMAKE_POSITION_INDEPENDENT_CODE=ON \
   -DCMAKE_INSTALL_PREFIX=/usr/local/devlibs/gdal-3.12.3 \
   -DBUILD_JAVA_BINDINGS:BOOL=OFF \
   -DSQLite3_INCLUDE_DIR=/usr/local/devlibs/sqlite-3.51.3/include \
   -DSQLite3_LIBRARY=/usr/local/devlibs/sqlite-3.51.3/lib/libsqlite3.so \
   -DARCHIVE_INCLUDE_DIR=/usr/local/devlibs/libarchive-3.8.6/include \

 -DARCHIVE_LIBRARY=/usr/local/devlibs/libarchive-3.8.6/lib64/libarchive.so \
   -DCURL_INCLUDE_DIR=/usr/local/devlibs/curl-8.4.0/include \
   -DCURL_LIBRARY_RELEASE=/usr/local/devlibs/curl-8.4.0/lib64/libcurl.so \
   -DPROJ_INCLUDE_DIR=/usr/local/devlibs/proj-9.7.1/include \
   -DPROJ_LIBRARY_RELEASE=/usr/local/devlibs/proj-9.7.1/lib64/libproj.so \
   -DGDAL_USE_GEOTIFF_INTERNAL:BOOL=ON \
   -DGDAL_USE_WEBP_INTERNAL:BOOL=ON \

 -DMRSID_INCLUDE_DIR=/usr/local/devlibs/MrSID_DSDK-9.5.4.4709-rhel6.x86-64.gcc531/Raster_DSDK/include
\

 -DMRSID_LIBRARY=/usr/local/devlibs/MrSID_DSDK-9.5.4.4709-rhel6.x86-64.gcc531/Raster_DSDK/lib/libltidsdk.so
\
   -DGDAL_ENABLE_DRIVER_JP2MRSID=ON \
   ..

and my PROJ 9.7.0 is pretty basic, and looks like this:

   cmake \
   -DCMAKE_BUILD_TYPE=Release \
   -Wno-dev -Wno-deprecated \
   -DCMAKE_C_COMPILER:FILEPATH=/usr/local/gcc132/bin/gcc \
   -DCMAKE_CXX_COMPILER:FILEPATH=/usr/local/gcc132/bin/g++ \
   -DCMAKE_POSITION_INDEPENDENT_CODE=ON \
   -DCMAKE_INSTALL_PREFIX=/usr/local/devlibs/proj-9.7.1 \
   ..

Thank you very much,

carl

_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.