[GRASS-dev] [GRASS GIS] #2017: ogsf compilation error
GRASS GIS
trac at osgeo.org
Wed Jun 25 09:08:01 PDT 2014
#2017: ogsf compilation error
-------------------------------------------+--------------------------------
Reporter: martinl | Owner: grass-dev@…
Type: defect | Status: new
Priority: critical | Milestone: 7.0.0
Component: Compiling | Version: svn-trunk
Keywords: libc, ogsf, libavutil, ffmpeg | Platform: Linux
Cpu: x86-64 |
-------------------------------------------+--------------------------------
Comment(by neteler):
FWIW, I tested edleaver's suggestion on Ubuntu 14.04:
Replying to [comment:13 edleaver]:
...
> 1. remove /usr/include/libavutil/ from --with-ffmpeg-includes paths
>
> 2. lib/ogsf/gsd_img_mpeg.c line 33 should read
> #include <libavutil/mathematics.h>
> rather than
> #include <mathematics.h>
>
> That should be all that is necessary, for now.
... unfortunately no success:
{{{
grass70_release/lib/ogsf$ make
gcc -g -O2 -fPIC -I/home/alba/source_code/grass70_release/dist.x86_64
-unknown-linux-gnu/include
-I/home/alba/source_code/grass70_release/dist.x86_64-unknown-linux-
gnu/include -I/usr/include/gdal -I/usr/include
-DPACKAGE=\""grasslibs"\" -I/usr/include/postgresql
-I/usr/include/libavcodec -I/usr/include/libavformat
-I/usr/include/libswscale -I/usr/include/libavutil
-I/home/alba/source_code/grass70_release/dist.x86_64-unknown-linux-
gnu/include -I/home/alba/source_code/grass70_release/dist.x86_64-unknown-
linux-gnu/include -o OBJ.x86_64-unknown-linux-gnu/GK2.o -c GK2.c
In file included from /usr/include/x86_64-linux-gnu/sys/stat.h:105:0,
from /home/alba/source_code/grass70_release/dist.x86_64
-unknown-linux-gnu/include/grass/defs/gis.h:64,
from /home/alba/source_code/grass70_release/dist.x86_64
-unknown-linux-gnu/include/grass/gis.h:636,
from GK2.c:21:
/usr/include/x86_64-linux-gnu/bits/stat.h:91:21: error: field ‘st_atim’
has incomplete type
struct timespec st_atim; /* Time of last access. */
^
/usr/include/x86_64-linux-gnu/bits/stat.h:92:21: error: field ‘st_mtim’
has incomplete type
struct timespec st_mtim; /* Time of last modification. */
^
/usr/include/x86_64-linux-gnu/bits/stat.h:93:21: error: field ‘st_ctim’
has incomplete type
struct timespec st_ctim; /* Time of last status change. */
^
In file included from /home/alba/source_code/grass70_release/dist.x86_64
-unknown-linux-gnu/include/grass/defs/gis.h:64:0,
from /home/alba/source_code/grass70_release/dist.x86_64
-unknown-linux-gnu/include/grass/gis.h:636,
from GK2.c:21:
/usr/include/x86_64-linux-gnu/sys/stat.h:365:31: error: array type has
incomplete element type
const struct timespec __times[2],
^
/usr/include/x86_64-linux-gnu/sys/stat.h:372:54: error: array type has
incomplete element type
extern int futimens (int __fd, const struct timespec __times[2]) __THROW;
^
make: *** [OBJ.x86_64-unknown-linux-gnu/GK2.o] Error 1
}}}
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2017#comment:21>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list