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

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. On running the gcc command to compile main.c with a -I/path/include flag, it worked and grass installed successfully. Maybe there is a forgotten include in the Makefile setup?

$ cd general/g.version
$ make
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
$ gcc <lots of includes> -I/path/to/sqlite/include -o OBJ.x86_64-pc-linux-gnu/main.o -c main.c
$ # this works well

Regards,
Michel

On Wed, Feb 22, 2017 at 1:13 PM, Michel Wortmann
<wortmann@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

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

<details class='elided'>
<summary title='Show trimmed content'>&#183;&#183;&#183;</summary>

On 02/22/2017 09:07 PM, Markus Neteler wrote:

> ```
> On Wed, Feb 22, 2017 at 1:13 PM, Michel Wortmann
> [<wortmann@pik-potsdam.de>](mailto:wortmann@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
> 
> ```

</details>

Hi,

2017-02-27 13:46 GMT+01:00 Michel Wortmann <wortmann@pik-potsdam.de>:

here is the complete g.version make error (I have replaced the server

please try out attached patch. Ma

--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa

(attachments)

g-version-sqlite.diff (597 Bytes)

Yes this works.
Thanks,
Michel

···

On 02/27/2017 02:13 PM, Martin Landa wrote:

+EXTRA_CFLAGS = $(PROJINC) $(GEOSCFLAGS) $(SQLITEINCPATH) \

Hi,

2017-02-27 14:45 GMT+01:00 Michel Wortmann <wortmann@pik-potsdam.de>:

Yes this works.

committed to trunk in r70872. Backported to relbr72. Ma

--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa