[GRASS-dev] g.version build failing with --with-sqlite-includes

Michel Wortmann wortmann at pik-potsdam.de
Mon Feb 27 04:46:29 PST 2017


Hi Markus,
here is the complete g.version make error (I have replaced the server 
critical paths with $builddir, $installdir and $pkgdir):

./configure --prefix=$installdir \
     --enable-shared \
     --enable-64bit \
     --enable-largefile \
     --with-readline \
     --with-gdal \
     --with-sqlite \
     --with-sqlite-libs=$pkgdir/anaconda/4.2.0/lib \
     --with-sqlite-includes=$pkgdir/anaconda/4.2.0/include \
     --with-geos \
     --with-png \
     --without-wxwidgets \
     --with-netcdf \
     --with-proj-includes=$pkgdir/proj4/4.9.3/include \
     --with-proj-share=$pkgdir/proj4/4.9.3/share/proj \
     --with-proj-libs=$pkgdir/proj4/4.9.3/lib \
     --with-freetype-include=/usr/include/ \
     --with-freetype-libs=/usr/lib/ \
     --with-includes=/usr/include/freetype2 \
     --with-python \
     --without-opengl \
     --without-fftw

-------
cd general/g.version
gcc -I/usr/include/freetype2 -g -O2  -I/usr/include/freetype2 -I$builddir/grass-7.2.0/dist.x86_64-pc-linux-gnu/include -I$builddir/grass-7.2.0/dist.x86_64-pc-linux-gnu/include  \
  -I$pkgdir/proj4/4.9.3/include -I$pkgdir/gdal/2.1.3/include -I$pkgdir/geos/3.6.1/include -DGRASS_VERSION_NUMBER=\"'7.2.0'\" -DGRASS_VERSION_DATE=\"'2016'\" \
  -DGRASS_VERSION_SVN=\"'exported'\" -DGRASS_VERSION_UPDATE_PKG=\"''\" -DARCH=\"'x86_64-pc-linux-gnu'\" -DPACKAGE=\""grassmods"\"   \
  -I$builddir/grass-7.2.0/dist.x86_64-pc-linux-gnu/include -I$builddir/grass-7.2.0/dist.x86_64-pc-linux-gnu/include -DRELDIR=\"general/g.version\" -o OBJ.x86_64-pc-linux-gnu/main.o -c main.c
main.c:37:21: fatal error: sqlite3.h: No such file or directory
compilation terminated.
../../include/Make/Compile.make:32: recipe for target 'OBJ.x86_64-pc-linux-gnu/main.o' failed
make: *** [OBJ.x86_64-pc-linux-gnu/main.o] Error 1

As I said, with -I$pkgdir/anaconda/4.2.0/include it worked fine.

Michel

On 02/22/2017 09:07 PM, Markus Neteler wrote:
> On Wed, Feb 22, 2017 at 1:13 PM, Michel Wortmann
> <wortmann at pik-potsdam.de> wrote:
>> Hi team,
>> it's really a minor issue, but wanted to let you know that I just built
>> grass-7.2.0 (on Suse SLE 12.2) configured with the
>> --with-sqlite-includes=/path/include flag. I got an error in
>> general/g.version complaining that it cant find sqlite3.h.
> Please post it completely, so that we can analyse the issue.
>
> Markus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20170227/f9e82dbc/attachment-0001.html>


More information about the grass-dev mailing list