Hi list,
I’m having some trouble compiling the add-on v.delaunay3d on a 7.6.1 GRASS GIS install under Ubuntu. Running g.extension I get the following error messages:
g.extension extension=v.delaunay3d operation=add
Fetching <v.delaunay3d> from GRASS GIS Addons repository (be patient)…
Compiling…
In file included from
/usr/lib/grass76/include/grass/vect/digit.h:3:0,
from
/usr/lib/grass76/include/grass/vector.h:4,
from main.cpp:26:
/usr/lib/grass76/include/grass/vect/dig_structs.h:27:10:
fatal error: ogr_api.h: No such file or directory
#include <ogr_api.h>
^~~~~~~~~~~
compilation terminated.
make: *** [OBJ.x86_64-pc-linux-gnu/main.o] Error 1
ERROR: Compilation failed, sorry. Please check above error messages.
Any ideas on how to resolve this compilation issue would be appreciated.
Thank you.
Rob
Hi,
út 26. 3. 2019 v 17:20 odesílatel Robert Dzur <rdzur@bhinc.com> napsal:
fatal error: ogr_api.h: No such file or directory
try to install `libgdal-dev` package. Ma
--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
Hi Martin, thanks for your response.
Yeah...I actually have libgdal-dev (2.4.0) package installed; and still see this issue.
Thanks again.
Rob
--
-----Original Message-----
From: Martin Landa <landa.martin@gmail.com>
Sent: Tuesday, March 26, 2019 11:56 AM
To: Robert Dzur <rdzur@bhinc.com>
Cc: grass-user@lists.osgeo.org
Subject: Re: [GRASS-user] v.delaunay3d compilation issues
Hi,
út 26. 3. 2019 v 17:20 odesílatel Robert Dzur <rdzur@bhinc.com> napsal:
fatal error: ogr_api.h: No such file or directory
try to install `libgdal-dev` package. Ma
--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
Hi,
út 26. 3. 2019 v 19:07 odesílatel Robert Dzur <rdzur@bhinc.com> napsal:
Yeah...I actually have libgdal-dev (2.4.0) package installed; and still see this issue.
check header location:
$ dpkg -L libgdal-dev | grep ogr_api
/usr/include/gdal/ogr_api.h
$ g.extension v.delaunay3d --v
...
c++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2
-fdebug-prefix-map=/build/grass-8Jl1TI/grass-7.6.1=.
-specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong
-Wformat -Werror=format-security -I/usr/lib/grass76/include
-I/usr/lib/grass76/include -frounding-math -DPACKAGE=\""grassmods"\"
-I/usr/include/postgresql -I/usr/lib/grass76/include
-I/usr/lib/grass76/include
-DRELDIR=\"/tmp/grass7-martin-628/tmpHLuA32/v.delaunay3d\" -o
OBJ.x86_64-pc-linux-gnu/main.o -c main.cpp
...
so apparently `-I/usr/include/gdal` is missing. Should be fixed in
r74306. Try to run g.extension command again.
Ma
--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
Thank you Martin,
That appears to have resolved the issue as running g.extension again now reports successful installation:
Fetching <v.delaunay3d> from GRASS GIS Addons repository (be patient)…
Compiling…
ERROR: Variable ‘LOCATION_NAME’ not set
Installing…
Updating addons metadata file…
Installation of <v.delaunay3d> successfully finished
Thanks again,
Rob
···
From: Martin Landa landa.martin@gmail.com
Sent: Tuesday, March 26, 2019 12:29 PM
To: Robert Dzur
Cc: grass-user@lists.osgeo.org
Subject: Re: [GRASS-user] v.delaunay3d compilation issues
Hi,
út 26. 3. 2019 v 19:07 odesílatel Robert Dzur rdzur@bhinc.com napsal:
Yeah…I actually have libgdal-dev (2.4.0) package installed; and still see this issue.
check header location:
$ dpkg -L libgdal-dev | grep ogr_api
/usr/include/gdal/ogr_api.h
$ g.extension v.delaunay3d --v
…
c++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2
-fdebug-prefix-map=/build/grass-8Jl1TI/grass-7.6.1=.
-specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong
-Wformat -Werror=format-security -I/usr/lib/grass76/include
-I/usr/lib/grass76/include -frounding-math -DPACKAGE="“grassmods”"
-I/usr/include/postgresql -I/usr/lib/grass76/include
-I/usr/lib/grass76/include
-DRELDIR="/tmp/grass7-martin-628/tmpHLuA32/v.delaunay3d" -o
OBJ.x86_64-pc-linux-gnu/main.o -c main.cpp
…
so apparently -I/usr/include/gdal
is missing. Should be fixed in
r74306. Try to run g.extension command again.
Ma
–
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
Hi,
út 26. 3. 2019 v 19:46 odesílatel Robert Dzur <rdzur@bhinc.com> napsal:
ERROR: Variable 'LOCATION_NAME' not set
well, are you running g.extension from a GRASS session (location/mapset)?
Ma
--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
Hi Martin,
Yes, g.extension was run from a location in the PERMANENT mapset.
Rob
-----Original Message-----
From: Martin Landa <landa.martin@gmail.com>
Sent: Tuesday, March 26, 2019 1:26 PM
To: Robert Dzur <rdzur@bhinc.com>
Cc: grass-user@lists.osgeo.org
Subject: Re: [GRASS-user] v.delaunay3d compilation issues
Hi,
út 26. 3. 2019 v 19:46 odesílatel Robert Dzur <rdzur@bhinc.com> napsal:
ERROR: Variable 'LOCATION_NAME' not set
well, are you running g.extension from a GRASS session (location/mapset)?
Ma
--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
Hi,
út 26. 3. 2019 v 21:13 odesílatel Robert Dzur <rdzur@bhinc.com> napsal:
Yes, g.extension was run from a location in the PERMANENT mapset.
sorry, I cannot reproduce this issue. But it seems that v.delaunay3d
has been successfully installed, right? Ma
--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
Hi Martin,
Yes it does appear that it has compiled and is functioning fine. I’ll have to spend a little time exploring the module with some test data but it’s looking like it’s working well. I imported a small 3D line file, converted to points (843) with v.to.points and the ran the triangulation (-l flag) of ~12k triangles with immediate results. Thanks again for your kind assistance.
Rob
···
From: Martin Landa landa.martin@gmail.com
Sent: Tuesday, March 26, 2019 2:16 PM
To: Robert Dzur
Cc: grass-user@lists.osgeo.org
Subject: Re: [GRASS-user] v.delaunay3d compilation issues
Hi,
út 26. 3. 2019 v 21:13 odesílatel Robert Dzur rdzur@bhinc.com napsal:
Yes, g.extension was run from a location in the PERMANENT mapset.
sorry, I cannot reproduce this issue. But it seems that v.delaunay3d
has been successfully installed, right? Ma
–
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa