Opened 9 years ago

Closed 9 years ago

#2553 closed defect (fixed)

v.kriging: ogr_api.h: No such file or directory

Reported by: mlennert Owned by: grass-dev@…
Priority: normal Milestone:
Component: Addons Version: svn-trunk
Keywords: v.kriging, ogr_api.h Cc:
CPU: Unspecified Platform: Linux

Description

Trying to install v.kriging, both via the g.extension wxGUI, or from the addons source tree, I get the following error:

$ LANG=C make MODULE_TOPDIR=../../../../grass_trunk/dist.x86_64-unknown-linux-gnu/
c++  -g -O2  -I/data/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-unknown-linux-gnu/include -I/data/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-unknown-linux-gnu/include   -fopenmp -DPACKAGE=\""grassmods"\"  -I/usr/include/postgresql -I/usr/include/pcl-1.7 -I/usr/include/eigen3  -I/data/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-unknown-linux-gnu/include -I/data/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-unknown-linux-gnu/include -DRELDIR=\"/data/home/mlennert/SRC/GRASS/grass-addons/grass7/vector/v.kriging\" -o OBJ.x86_64-unknown-linux-gnu/utils.o -c utils.cpp
In file included from /data/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-unknown-linux-gnu/include/grass/vect/digit.h:3:0,
                 from /data/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-unknown-linux-gnu/include/grass/vector.h:4,
                 from local_proto.h:16,
                 from utils.cpp:1:
/data/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-unknown-linux-gnu/include/grass/vect/dig_structs.h:27:21: fatal error: ogr_api.h: No such file or directory
 #include <ogr_api.h>
                     ^
compilation terminated.
../../../../grass_trunk/dist.x86_64-unknown-linux-gnu//include/Make/Compile.make:35: recipe for target 'OBJ.x86_64-unknown-linux-gnu/utils.o' failed
make: *** [OBJ.x86_64-unknown-linux-gnu/utils.o] Error 1

When I had a similar error a long time ago with i.pr, the solution was to add 'EXTRA_CFLAGS = $(VECT_CFLAGS)' to the Makefile 1. However, v.kriging's Makefile already contains that line.

$ gdal-config --cflags
-I/usr/include/gdal

System info:

Version de GRASS: 7.1.svn                                                       
Version SVN: 64098                                                            
Build Date: 2015-01-12                                                          
Build Platform: x86_64-unknown-linux-gnu                                        
GDAL/OGR: 1.10.1                                                                
PROJ.4: 4.8.0                                                                   
GEOS: 3.4.2                                                                     
SQLite: 3.8.7.1                                                                 
Python: 2.7.8                                                                   
wxPython: 3.0.1.1                                                               
Plateforme: Linux-3.16.0-4-amd64-x86_64-with-debian-jessie-sid

Change History (1)

comment:1 by neteler, 9 years ago

Keywords: v.kriging ogr_api.h → v.kriging, ogr_api.h
Resolution: fixed
Status: newclosed

Fixed in r64242 - it requires also

EXTRA_INC = ... $(PROJINC)
Note: See TracTickets for help on using tickets.