Hello, <br><br><div>I am having trouble with CMake and creating the GDAL configuration that I desire.  My goal is to be able to distribute GDAL to a few colleagues so they can immediately use the GDAL bindings in Java code without them having to build and install GDAL directly.  The GDAL build should be minimal and only include the OpenFileGDB driver.<br></div><br><div>I run the following CMake configuration and build:<br></div><div><p style="margin:0px;font:11px Menlo"><span style="font-variant-ligatures:no-common-ligatures"><br></span></p><p style="margin:0px;font:11px Menlo"><span style="font-variant-ligatures:no-common-ligatures">cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_JAVA_BINDINGS=ON -DGDAL_BUILD_OPTIONAL_DRIVERS:BOOL=OFF -DOGR_BUILD_OPTIONAL_DRIVERS:BOOL=OFF -DOGR_ENABLE_DRIVER_OPENFILEGDB:BOOL=ON -DBUILD_PYTHON_BINDINGS=OFF -DBUILD_APPS=NO -DGDAL_USE_EXTERNAL_LIBS=OFF<span> </span></span></p><p style="margin:0px;font:11px Menlo"><span style="font-variant-ligatures:no-common-ligatures"><span><br></span></span></p></div><div style="font-family: Arial, sans-serif; font-size: 14px; color: rgb(0, 0, 0);"><p style="margin:0px;font:11px Menlo"><span style="font-variant-ligatures:no-common-ligatures">cmake --build .</span></p><p style="margin:0px;font:11px Menlo"><br></p><span></span></div><div>After this, I am able to add the Java bindings (.jar) to my Java project on my machine without installing GDAL.  After setting java.library.path to the gdalalljni directory (gdal-version/build/swig/java) the bindings work. I want my colleagues to be able to do the same by simply sending them a folder of the build I create.  Currently when I send my build to a colleague and they set up their Java project to include the bindings, they get this error:<br></div><div style="font-family: Arial, sans-serif; font-size: 14px; color: rgb(0, 0, 0);"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px; color: rgb(0, 0, 0);"><p style="margin:0px;font:11px Menlo"><span style="font-variant-ligatures:no-common-ligatures">java.lang.UnsatisfiedLinkError: no gdalalljni in java.library.path</span></p></div><br><div>Is it even possible to distribute GDAL this way on MacOS/Ubuntu?  Especially given PROJ as a runtime dependency?  I would be grateful for any advice about how I can get close to be able to distributing GDAL in this manner.  Perhaps using a docker container is the way to go?  However I have been unable to find any documentation about how to use the Java bindings with docker since it does not look like they are included in the latest alpine release.<br></div><div style="font-family: Arial, sans-serif; font-size: 14px; color: rgb(0, 0, 0);"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px; color: rgb(0, 0, 0);">Kind regards,</div><div style="font-family: Arial, sans-serif; font-size: 14px; color: rgb(0, 0, 0);">Adam Gutonski</div><br><br><br>