[GRASS-dev] ogsf, nviz, m.nviz.image build errors -- ticket #1423 ?

Hi!

In Ubuntu 13.04, as you probably know, ogsf, nviz and m.nviz.image
(still) wont compile. This all is related to ticket
<https://trac.osgeo.org/grass/ticket/1423&gt; I guess.

-->%---
GRASS GIS 7.0.svn 56732 compilation log
--------------------------------------------------
Started compilation: Sun Jun 16 19:13:04 EEST 2013
--
Errors in:
/geo/osgeo/src/grass_trunk/lib/ogsf
/geo/osgeo/src/grass_trunk/lib/nviz
/geo/osgeo/src/grass_trunk/misc/m.nviz.image
--
In case of errors please change into the directory with error and run
'make'.
If you get multiple errors, you need to deal with them in the order
they
appear in the error log. If you get an error building a library, you
will
also get errors from anything which uses the library.
--
Finished compilation: Sun Jun 16 19:31:30 EEST 2013
make: *** [default] Error 1
---%<--

Nikos

On Sunday 16 of June 2013 20:21:12 Nikos Alexandris wrote:

Hi!

In Ubuntu 13.04, as you probably know, ogsf, nviz and m.nviz.image
(still) wont compile. This all is related to ticket
<https://trac.osgeo.org/grass/ticket/1423&gt; I guess.

-->%---
GRASS GIS 7.0.svn 56732 compilation log
--------------------------------------------------
Started compilation: Sun Jun 16 19:13:04 EEST 2013
--
Errors in:
/geo/osgeo/src/grass_trunk/lib/ogsf
/geo/osgeo/src/grass_trunk/lib/nviz
/geo/osgeo/src/grass_trunk/misc/m.nviz.image
--
In case of errors please change into the directory with error and

run

'make'.
If you get multiple errors, you need to deal with them in the order
they
appear in the error log. If you get an error building a library, you
will
also get errors from anything which uses the library.
--
Finished compilation: Sun Jun 16 19:31:30 EEST 2013
make: *** [default] Error 1
---%<--

Same (almost) for grass64:

--%<---
----------------------------------------------------------------------
GRASS GIS compilation log
-------------------------
Started compilation: Sun Jun 16 20:24:02 EEST 2013
--
Errors in:
/geo/osgeo/src/grass64_release/lib/ogsf
/geo/osgeo/src/grass64_release/lib/nviz
/geo/osgeo/src/grass64_release/misc/m.nviz.image
/geo/osgeo/src/grass64_release/visualization/xganim
/geo/osgeo/src/grass64_release/visualization/nviz
--
In case of errors please change into the directory with error and run
'make'.
If you get multiple errors, you need to deal with them in the order
they
appear in the error log. If you get an error building a library, you
will
also get errors from anything which uses the library.
--
Finished compilation: Sun Jun 16 20:32:53 EEST 2013
make: *** [default] Error 1
--->%--

Nikos

i'm on ubuntu 13.04 as well

grass_trunk configured with :

./configure --with-freetype-includes=/usr/include/freetype2 --with-blas --with-netcdf --with-geos --with-lapack --with-odbc --with-pthread --with-readline --with-sqlite --with-wxwidgets --with-postgres-includes=/usr/include/postgresql --with-postgres

wx is 2.8 :

wx-config --version-full
2.8.12.1

i do not have errors to build ogsf/nviz/m.nviz.image

the only error i got are in

wximgview/xganim

i guess because of wx-2.8

attached the log :

https://gist.github.com/5793126

Massimo.

Il giorno 16/giu/2013, alle ore 13:35, Nikos Alexandris <nik@nikosalexandris.net> ha scritto:

On Sunday 16 of June 2013 20:21:12 Nikos Alexandris wrote:

Hi!

In Ubuntu 13.04, as you probably know, ogsf, nviz and m.nviz.image
(still) wont compile. This all is related to ticket
<https://trac.osgeo.org/grass/ticket/1423&gt; I guess.

-->%---
GRASS GIS 7.0.svn 56732 compilation log
--------------------------------------------------
Started compilation: Sun Jun 16 19:13:04 EEST 2013
--
Errors in:
/geo/osgeo/src/grass_trunk/lib/ogsf
/geo/osgeo/src/grass_trunk/lib/nviz
/geo/osgeo/src/grass_trunk/misc/m.nviz.image
--
In case of errors please change into the directory with error and

run

'make'.
If you get multiple errors, you need to deal with them in the order
they
appear in the error log. If you get an error building a library, you
will
also get errors from anything which uses the library.
--
Finished compilation: Sun Jun 16 19:31:30 EEST 2013
make: *** [default] Error 1
---%<--

Same (almost) for grass64:

--%<---
----------------------------------------------------------------------
GRASS GIS compilation log
-------------------------
Started compilation: Sun Jun 16 20:24:02 EEST 2013
--
Errors in:
/geo/osgeo/src/grass64_release/lib/ogsf
/geo/osgeo/src/grass64_release/lib/nviz
/geo/osgeo/src/grass64_release/misc/m.nviz.image
/geo/osgeo/src/grass64_release/visualization/xganim
/geo/osgeo/src/grass64_release/visualization/nviz
--
In case of errors please change into the directory with error and run
'make'.
If you get multiple errors, you need to deal with them in the order
they
appear in the error log. If you get an error building a library, you
will
also get errors from anything which uses the library.
--
Finished compilation: Sun Jun 16 20:32:53 EEST 2013
make: *** [default] Error 1
--->%--

Nikos
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Nikos wrote:

In Ubuntu 13.04, as you probably know,

(didn't)

ogsf, nviz and m.nviz.image(still) wont compile.
This all is related to ticket
<https://trac.osgeo.org/grass/ticket/1423&gt; I guess.

-->%---
GRASS GIS 7.0.svn 56732 compilation log

AFAIK right now --with-ffmpeg adds nothing in GRASS 7 since
it was only used by Tcl/Tk NVIZ and that got deleted in trunk.
We need to consider if we should keep direct animation creation
support for wxGUI; I'm happy with producing raw PPM frames and
ffmpeg API is a pain to try and keep up with, but I'll reserve
judgement until we see what the less-changing libav looks like.

--with-ffmpeg --with-ffmpeg-includes="/usr/include/libavcodec /usr/include/libavformat /usr/include/libswscale /usr/include/libavutil"

Massimo:

i'm on ubuntu 13.04 as well

...

i do not have errors to build ogsf/nviz/m.nviz.image

the only error i got are in
wximgview/xganim

i guess because of wx-2.8

attached the log :

https://gist.github.com/5793126

...

Errors in:
/home/epi/dev/src/grass7_trunk/visualization/wximgview

/home/epi/dev/src/grass7_trunk/visualization/xganim

...
c++ -g -O2 -I/home/epi/dev/src/grass7_trunk/dist.x86_64-unknown-linux-gnu/include
-I/home/epi/dev/src/grass7_trunk/dist.x86_64-unknown-linux-gnu/include
-I/usr/lib/x86_64-linux-gnu/wx/include/base-unicode-release-2.8
-I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DwxUSE_GUI=0
-pthread -DWXINTL_NO_GETTEXT_MACRO -DPACKAGE=\""grassmods"\"
-I/home/epi/dev/src/grass7_trunk/dist.x86_64-unknown-linux-gnu/include
-I/home/epi/dev/src/grass7_trunk/dist.x86_64-unknown-linux-gnu/include
-o OBJ.x86_64-unknown-linux-gnu/main.o -c main.cpp
In file included from main.cpp:41:0:
wximgview.h:9:23: error: invalid use of incomplete type 'class wxFrame'
In file included from /usr/include/wx-2.8/wx/wx.h:27:0,
from main.cpp:34:
/usr/include/wx-2.8/wx/utils.h:50:28: error: forward declaration of 'class wxFrame'
In file included from main.cpp:41:0:
wximgview.h:12:5: error: 'wxTimer' does not name a type
wximgview.h:19:19: error: 'wxSize' does not name a type
wximgview.h:19:27: error: ISO C++ forbids declaration of 'size' with no type [-fpermissive]
wximgview.h:23:17: error: 'wxPaintEvent' has not been declared
...

epi@epi:~/dev/src/grass7_trunk/visualization/wximgview$ cd /home/epi/dev/src/grass7_trunk/visualization/xganim
epi@epi:~/dev/src/grass7_trunk/visualization/xganim$ make
c++ -g -O2 -I/home/epi/dev/src/grass7_trunk/dist.x86_64-unknown-linux-gnu/include
-I/home/epi/dev/src/grass7_trunk/dist.x86_64-unknown-linux-gnu/include
-I/usr/lib/x86_64-linux-gnu/wx/include/base-unicode-release-2.8 -I/usr/include/wx-2.8
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DwxUSE_GUI=0 -pthread -DWXINTL_NO_GETTEXT_MACRO
-DPACKAGE=\""grassmods"\" -I/home/epi/dev/src/grass7_trunk/dist.x86_64-unknown-linux-gnu/include
-I/home/epi/dev/src/grass7_trunk/dist.x86_64-unknown-linux-gnu/include
-o OBJ.x86_64-unknown-linux-gnu/gui.o -c gui.cpp
In file included from /usr/include/wx-2.8/wx/window.h:23:0,
from /usr/include/wx-2.8/wx/sizer.h:17,
from gui.cpp:23:
/usr/include/wx-2.8/wx/cursor.h: In constructor 'wxBusyCursorSuspender::wxBusyCursorSuspender()':
/usr/include/wx-2.8/wx/cursor.h:65:22: error: 'wxIsBusy' was not declared in this scope
/usr/include/wx-2.8/wx/cursor.h:67:26: error: 'wxBusyCursor' has not been declared
/usr/include/wx-2.8/wx/cursor.h: In destructor 'wxBusyCursorSuspender::~wxBusyCursorSuspender()':
/usr/include/wx-2.8/wx/cursor.h:72:22: error: 'wxIsBusy' was not declared in this scope

fwiw as a pre-release test I built the 6.4.3svn Debian
package yesterday in Debian/sid (wx2.8), it was all ok.

I'll try in a ubuntu 13.04 vm..

Hamish

Nikos wrote:

>>> In Ubuntu 13.04, as you probably know,

Hamish wrote:

(didn't)

sorry :-/

>>> ogsf, nviz and m.nviz.image(still) wont compile.
>>> This all is related to ticket
>>> <https://trac.osgeo.org/grass/ticket/1423&gt; I guess.
>>> -->%---
>>> GRASS GIS 7.0.svn 56732 compilation log

..

AFAIK right now --with-ffmpeg adds nothing in GRASS 7 since
it was only used by Tcl/Tk NVIZ and that got deleted in trunk.
We need to consider if we should keep direct animation creation
support for wxGUI; I'm happy with producing raw PPM frames and
ffmpeg API is a pain to try and keep up with, but I'll reserve
judgement until we see what the less-changing libav looks like.

I don't mind about ffmpeg for animation creation -- hopefully most people wont
mind too. What "hurts" more is nviz not working, which means, literally no 3D-
mode available in wxGUI (right?).

--with-ffmpeg --with-ffmpeg-includes="/usr/include/libavcodec
/usr/include/libavformat /usr/include/libswscale /usr/include/libavutil"

Massimo:

> i'm on ubuntu 13.04 as well
...
> i do not have errors to build ogsf/nviz/m.nviz.image
>
> the only error i got are in
> wximgview/xganim

strange, I do have

wx-config --version
2.8.12

but xganim compiled fine!

Nikos

> i guess because of wx-2.8
>
> attached the log :
>
> https://gist.github.com/5793126

...

> Errors in:
> /home/epi/dev/src/grass7_trunk/visualization/wximgview
>
> /home/epi/dev/src/grass7_trunk/visualization/xganim
>
> ...
> c++ -g -O2
> -I/home/epi/dev/src/grass7_trunk/dist.x86_64-unknown-linux-gnu/include>
> -I/home/epi/dev/src/grass7_trunk/dist.x86_64-unknown-linux-gnu/include
> -I/usr/lib/x86_64-linux-gnu/wx/include/base-unicode-release-2.8
> -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DwxUSE_GUI=0
> -pthread -DWXINTL_NO_GETTEXT_MACRO -DPACKAGE=\""grassmods"\"
> -I/home/epi/dev/src/grass7_trunk/dist.x86_64-unknown-linux-gnu/include
> -I/home/epi/dev/src/grass7_trunk/dist.x86_64-unknown-linux-gnu/include
> -o OBJ.x86_64-unknown-linux-gnu/main.o -c main.cpp
>
> In file included from main.cpp:41:0:
> wximgview.h:9:23: error: invalid use of incomplete type 'class wxFrame'
> In file included from /usr/include/wx-2.8/wx/wx.h:27:0,
> from main.cpp:34:
> /usr/include/wx-2.8/wx/utils.h:50:28: error: forward declaration of 'class
> wxFrame' In file included from main.cpp:41:0:
> wximgview.h:12:5: error: 'wxTimer' does not name a type
> wximgview.h:19:19: error: 'wxSize' does not name a type
> wximgview.h:19:27: error: ISO C++ forbids declaration of 'size' with no
> type [-fpermissive] wximgview.h:23:17: error: 'wxPaintEvent' has not been
> declared
> ...
>
> epi@epi:~/dev/src/grass7_trunk/visualization/wximgview$ cd
> /home/epi/dev/src/grass7_trunk/visualization/xganim
> epi@epi:~/dev/src/grass7_trunk/visualization/xganim$ make
> c++ -g -O2
> -I/home/epi/dev/src/grass7_trunk/dist.x86_64-unknown-linux-gnu/include>
> -I/home/epi/dev/src/grass7_trunk/dist.x86_64-unknown-linux-gnu/include
> -I/usr/lib/x86_64-linux-gnu/wx/include/base-unicode-release-2.8
>-I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DwxUSE_GUI=0
>-pthread -DWXINTL_NO_GETTEXT_MACRO -DPACKAGE=\""grassmods"\"
>-I/home/epi/dev/src/grass7_trunk/dist.x86_64-unknown-linux-gnu/include
>-I/home/epi/dev/src/grass7_trunk/dist.x86_64-unknown-linux-gnu/include -o
>OBJ.x86_64-unknown-linux-gnu/gui.o -c gui.cpp
>
> In file included from /usr/include/wx-2.8/wx/window.h:23:0,
> from /usr/include/wx-2.8/wx/sizer.h:17,
> from gui.cpp:23:
> /usr/include/wx-2.8/wx/cursor.h: In constructor
> 'wxBusyCursorSuspender::wxBusyCursorSuspender()':
> /usr/include/wx-2.8/wx/cursor.h:65:22: error: 'wxIsBusy' was not declared
> in this scope /usr/include/wx-2.8/wx/cursor.h:67:26: error:
> 'wxBusyCursor' has not been declared /usr/include/wx-2.8/wx/cursor.h: In
> destructor 'wxBusyCursorSuspender::~wxBusyCursorSuspender()':
> /usr/include/wx-2.8/wx/cursor.h:72:22: error: 'wxIsBusy' was not declared
> in this scope

fwiw as a pre-release test I built the 6.4.3svn Debian
package yesterday in Debian/sid (wx2.8), it was all ok.

I'll try in a ubuntu 13.04 vm..

Hamish wrote:
..

--with-ffmpeg --with-ffmpeg-includes="/usr/include/libavcodec
/usr/include/libavformat /usr/include/libswscale /usr/include/libavutil"

No errors now! I was missing the last lib (/usr/include/libavutil) in my
configuration script. Currently it goes like:

CFLAGS="-ggdb -march=native -Wall -Werror-implicit-function-declaration" \
./configure \
--with-cxx \
--with-proj-share=/usr/local/share/proj/ \
--with-geos=/usr/local/bin/geos-config \
--with-motif \
--with-tcltk-includes="/usr/include/tcl8.5/" \
--with-cairo \
--with-opengl-libs=/usr/include/GL \
--with-python=yes --with-python=/usr/bin/python2.7-config \
--with-wxwidgets \
--with-ffmpeg=yes --with-ffmpeg-includes="/usr/include/libavcodec
/usr/include/libavformat /usr/include/libswscale /usr/include/libavutil" \
--with-freetype=yes --with-freetype-includes="/usr/include/freetype2/" \
--with-odbc=yes \
--with-mysql=yes --with-mysql-includes="/usr/include/mysql" \
--with-sqlite=yes \
--with-postgres=yes --with-postgresql=yes --with-postgres-
includes="/usr/include/postgresql" \
--with-openmp --with-pthread \
--with-readline \
--with-nls \
--enable-largefile=yes \
--with-netcdf

Thanks, N :slight_smile:

Hi,

2013/6/16 Nikos Alexandris <nik@nikosalexandris.net>:

Hamish wrote:
..

--with-ffmpeg --with-ffmpeg-includes="/usr/include/libavcodec
/usr/include/libavformat /usr/include/libswscale /usr/include/libavutil"

No errors now! I was missing the last lib (/usr/include/libavutil) in my
configuration script. Currently it goes like:

these headers should be checked by configuration script I would say. Martin

Martin

these headers should be checked by configuration script I would say.

afaik they (generally) are, it's just that the functions keep on
getting renamed and jumping between libs, so it's a moving target,
and it's a bit much to do a test compile for every function call
used.

regards,
Hamish