[gdal-dev] Building GDAL 3.0.0 with Proj 6.0.0

Even Rouault even.rouault at spatialys.com
Thu May 16 10:58:32 PDT 2019


On jeudi 16 mai 2019 10:35:22 CDT joshl wrote:
> Thanks for the info Richard.
> 
> Right now I'm having issues running proj's ./configure. We build sqlite3
> statically using the sqlite-amalgamation, the version we use is 3.26.0.
> 
> Using https://trac.osgeo.org/gdal/wiki/BuildingOnUnixGDAL25dev as a guide,
> the configure script is unable to find sqlite3.
> 
> The error is:
> checking for SQLITE3... configure: error: Package requirements (sqlite3 >=
> 3.7) were not met:
> No package 'sqlite3' found
> Consider adjusting the PKG_CONFIG_PATH environment variable if you
> installed software in a non-standard prefix.
> Alternatively, you may set the environment variables SQLITE3_CFLAGS
> and SQLITE3_LIBS to avoid the need to call pkg-config.
> See the pkg-config man page for more details.
> 
> 
> The manual test commands I am using:
> projSubmoduleDir='/home/loshjawrence/clonesRedo/agi-asset-pipeline/ThirdPart
> y/proj.4' cd $projSubmoduleDir
> sqlite3InstallDir='/home/loshjawrence/clonesRedo/agi-asset-pipeline/build'
> ls $sqlite3InstallDir/lib
> libsqlite3.a  libz.a
> 
> ./autogen.sh
> projInstallDir='/home/loshjawrence/clonesRedo/agi-asset-pipeline/build/Third
> Party/proj.4' CXXFLAGS="-DPROJ_RENAME_SYMBOLS -O2"
> CFLAGS=$CXXFLAGS
> LDFLAGS="-L$sqlite3InstallDir/lib"
> ./configure --prefix=$projInstallDir
> 
> --disable-static wasn't listed in ./configure -h but I think the same thing
> can be had with --enable-static=no. Either way I still get the sqlite3
> error.

Did you try the hints given in the error message

That is set

PKG_CONFIG_PATH="$sqlite3InstallDir/lib/pkgconfig"

or

SQLITE3_CFLAGS="-I$sqlite3InstallDir/include"
SQLITE3_LIBS="-L$sqlite3InstallDir/lib -lsqlite3"

Even


-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list