For compiling gdal with oracle, I build gdal oracle drivers as a plugin to use with conda compiled gdal. You need the instant client SDK to build.
I build the plugin with export CXXFLAGS="${CXXFLAGS} -std=c++17 -D_LIBCPP_DISABLE_AVAILABILITY" mkdir build cd build cmake -G "Ninja" \ ${CMAKE_ARGS} \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_PREFIX_PATH=$PREFIX \ -DCMAKE_INSTALL_PREFIX=$PREFIX \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_SHARED_LIBS=ON \ -DGDAL_ENABLE_PLUGINS=ON \ -DOracle_INCLUDE_DIR=${PREFIX}/instantclient/sdk/include/ \ -DBUILD_PYTHON_BINDINGS=OFF \ -DGDAL_BUILD_OPTIONAL_DRIVERS:BOOL=OFF \ -DOGR_BUILD_OPTIONAL_DRIVERS:BOOL=OFF \ -DOGR_ENABLE_DRIVER_OCI_PLUGIN=ON \ -DOGR_ENABLE_DRIVER_OCI=ON \ -DGDAL_USE_GEOTIFF_INTERNAL=OFF \ -DGDAL_HIDE_INTERNAL_SYMBOLS=OFF \ -DOracle_LIBRARY=${PREFIX}/lib/libclntsh.so \ ${SRC_DIR} cmake --build . -j ${CPU_COUNT} --config Release --target ogr_OCI --verbose mkdir -p $PREFIX/lib/gdalplugins cp gdalplugins/ogr_OCI.so $PREFIX/lib/gdalplugins -- Michael Smith RSGIS Center – ERDC CRREL NH US Army Corps From: gdal-dev <gdal-dev-boun...@lists.osgeo.org> on behalf of "Dr. Kai Behncke via gdal-dev" <gdal-dev@lists.osgeo.org> Reply-To: "Dr. Kai Behncke" <i...@umweltschutz-und-lebenshilfe.de> Date: Tuesday, July 15, 2025 at 8:24 AM To: <gdal-dev@lists.osgeo.org> Subject: [gdal-dev] Creating gdal with oracle-support Dear users, I would like to create gdal with Oracle-support. I already tried e.g. " cmake .. -DWITH_OCI=ON -DWITH_OCI8=ON -DWITH_ORACLE=ON" but I had no success. Could anybody give me a hint how to do that please? Thank you very much, Kai I ---------------------- gemeinnützige GmbH (gGmbH) Behncke Umweltschutz und Lebenshilfe Dr. Kai Behncke Am Wulberg 15 49324 Melle Tel.: 0176-84019660 (ab 18.00 Uhr) http://umweltschutz-und-lebenshilfe.de Unsere Klima- und Tierschutzprojekte sind zuweilen nicht ganz günstig. Wir freuen uns immer über Spenden: https://www.betterplace.org/de/projects/71760-gnadenhof-broedel-melle-artenschutzprojekt-blumiger-landkreis-osnabrueck _______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev