[gdal-dev] How to build GDAL 3.1.3 with sqlite3 3.33.0

Mateusz Loskot mateusz at loskot.net
Tue Oct 20 02:07:31 PDT 2020


On Tue, 20 Oct 2020 at 04:34, Doug Niven <dniven at ucsc.edu> wrote:
>
> I’m having trouble building GDAL 3.1.3 with sqlite3 3.33.0 in Centos 7.
>
> The compile steps work, but the build does not.
> I believe this is because of conflicts between the built-in version of sqlite3 in Centos (3.7.17) and the newer one (3.33.0) I’ve built in /usr/local/ and /usr/local/lib
> /usr/local/lib, where the sqlite3 library files are, is in my LD_LIBRARY_PATH
> /usr/local/bin, where sqlite3 is, is also in my PATH
>
> I’m curious how others have successfully managed to build GDAL with the above in mind.

As usual:

./configure --help
./configure --help | grep -i sqlite

So, you should be able to
./configure --with-sqlite3=/usr/local

as per
https://github.com/OSGeo/gdal/blob/master/gdal/m4/ax_lib_sqlite3.m4#L36-L37

Best regards,
-- 
Mateusz Loskot, http://mateusz.loskot.net


More information about the gdal-dev mailing list