<div dir="ltr">I tested compiling on Ubuntu 14.04 several times recently. Here is what is needed.<br><div><br>There is already a ticket for "ogsf compilation error"<br><br><a href="http://trac.osgeo.org/grass/ticket/2017">http://trac.osgeo.org/grass/ticket/2017</a><br>

<br><div>Where I say in the comment<br><br>--with-ffmpeg=no<br><br><a href="http://trac.osgeo.org/grass/ticket/2017#comment:17" target="_blank">http://trac.osgeo.org/grass/ticket/2017#comment:17</a><br><br></div><div>Perhaps, we should update "GRASS Wiki Comapile and Install Ubuntu" accordingly.<br>

<a href="http://grasswiki.osgeo.org/wiki/Compile_and_Install_Ubuntu" target="_blank">http://grasswiki.osgeo.org/wiki/Compile_and_Install_Ubuntu</a>
</div><div><br></div><div>See also recent notes on that topic in:<br></div><div><br>[GRASS-dev] Updates of wiki page for compiling on Ubuntu<br><a href="http://lists.osgeo.org/pipermail/grass-dev/2014-June/069334.html">http://lists.osgeo.org/pipermail/grass-dev/2014-June/069334.html</a><br>

<a href="http://lists.osgeo.org/pipermail/grass-dev/2014-June/069371.html">http://lists.osgeo.org/pipermail/grass-dev/2014-June/069371.html</a><br><div class="gmail_extra"><br></div><div class="gmail_extra">This should help. I don't know what ffmpeg is now for.<br>

<br></div><div class="gmail_extra">Vaclav<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 25, 2014 at 11:04 AM, Markus Neteler <span dir="ltr"><<a href="mailto:neteler@osgeo.org" target="_blank">neteler@osgeo.org</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
I try to help to compile 7.0 on an Ubuntu box 14.04. We fail to compile OGSF:<br>
<br>
<br>
alba@alba:~/source_code/grass70_release$ cd<br>
/home/alba/source_code/grass70_release/lib/ogsf<br>
<br>
alba@alba:~/source_code/grass70_release/lib/ogsf$ make<br>
gcc  -g -O2  -fPIC<br>
-I/home/alba/source_code/grass70_release/dist.x86_64-unknown-linux-gnu/include<br>
-I/home/alba/source_code/grass70_release/dist.x86_64-unknown-linux-gnu/include<br>
  -I/usr/include/gdal -I/usr/include  -DPACKAGE=\""grasslibs"\"<br>
-I/usr/include/postgresql   -I/usr/include/libavcodec<br>
-I/usr/include/libavformat -I/usr/include/libswscale<br>
-I/usr/include/libavutil<br>
-I/home/alba/source_code/grass70_release/dist.x86_64-unknown-linux-gnu/include<br>
-I/home/alba/source_code/grass70_release/dist.x86_64-unknown-linux-gnu/include<br>
-o OBJ.x86_64-unknown-linux-gnu/GK2.o -c GK2.c<br>
In file included from /usr/include/x86_64-linux-gnu/sys/stat.h:105:0,<br>
                 from<br>
/home/alba/source_code/grass70_release/dist.x86_64-unknown-linux-gnu/include/grass/defs/gis.h:64,<br>
                 from<br>
/home/alba/source_code/grass70_release/dist.x86_64-unknown-linux-gnu/include/grass/gis.h:636,<br>
                 from GK2.c:21:<br>
/usr/include/x86_64-linux-gnu/bits/stat.h:91:21: error: field<br>
‘st_atim’ has incomplete type<br>
     struct timespec st_atim;  /* Time of last access.  */<br>
                     ^<br>
/usr/include/x86_64-linux-gnu/bits/stat.h:92:21: error: field<br>
‘st_mtim’ has incomplete type<br>
     struct timespec st_mtim;  /* Time of last modification.  */<br>
                     ^<br>
/usr/include/x86_64-linux-gnu/bits/stat.h:93:21: error: field<br>
‘st_ctim’ has incomplete type<br>
     struct timespec st_ctim;  /* Time of last status change.  */<br>
                     ^<br>
In file included from<br>
/home/alba/source_code/grass70_release/dist.x86_64-unknown-linux-gnu/include/grass/defs/gis.h:64:0,<br>
                 from<br>
/home/alba/source_code/grass70_release/dist.x86_64-unknown-linux-gnu/include/grass/gis.h:636,<br>
                 from GK2.c:21:<br>
/usr/include/x86_64-linux-gnu/sys/stat.h:365:31: error: array type has<br>
incomplete element type<br>
         const struct timespec __times[2],<br>
                               ^<br>
/usr/include/x86_64-linux-gnu/sys/stat.h:372:54: error: array type has<br>
incomplete element type<br>
 extern int futimens (int __fd, const struct timespec __times[2]) __THROW;<br>
                                                      ^<br>
make: *** [OBJ.x86_64-unknown-linux-gnu/GK2.o] Error 1<br>
<br>
<br>
Something is overriding the time definition. I found<br>
<a href="http://stackoverflow.com/questions/14947691/c-system-file-bits-stat-h-suddenly-breaks-with-error-field-st-atim-has-inc" target="_blank">http://stackoverflow.com/questions/14947691/c-system-file-bits-stat-h-suddenly-breaks-with-error-field-st-atim-has-inc</a><br>



<br>
but dunno what to do next.<br>
<br>
Any Ubuntu user who knows the trick?<br>
<br>
thanks<br>
Markus<br>
_______________________________________________<br>
grass-dev mailing list<br>
<a href="mailto:grass-dev@lists.osgeo.org" target="_blank">grass-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-dev</a></blockquote></div><br></div></div></div></div>