[GRASS-dev] wxnviz

I am trying to get myself up to date on grass7, especially look at the
wxnviz but although I did make distclean and updated grass trunk
grass7_wxnviz is not found - am I perhaps missing
something in my configure (see below)?

thank you

Helena

P.S. Thanks for nviz_cmd - it is a very helpful addition and can
provide capabilities for dynamic surfaces which were lost when nviz
tcltk was modified.

CFLAGS="-g -Wall" ./configure \
--prefix=/local/home/helena/grasssvn \
--with-cxx \
--enable-64bit --with-libs=/usr/lib64 --enable-largefile --enable-shared
\
--with-bindir=/local/home/helena/grasssvn \
--with-gdal=/local/home/helena/gsgdal/bin/gdal-config \
--with-gdal-includes=/local/home/helena/gsgdal/include \
--with-gdal-libs=/local/home/helena/gsgdal/lib \
--with-proj=yes \
--with-proj-includes=/local/home/helena/gproj/include \
--with-proj-libs=/local/home/helena/gproj/lib \
--with-proj-share=/local/home/helena/gproj/share/proj \
--with-fftw \
--with-motif \
--with-freetype \
--with-freetype-includes=/usr/include/freetype2 \
--with-sqlite \
--with-python

Started compilation: Tue Jan 6 15:49:13 EST 2009
--
Errors in:
No errors detected.

import grass7_wxnviz as wxnviz
ImportError
:
No module named grass7_wxnviz
Traceback (most recent call last):
  File "/local/home/helena/grasssvn/grass-7.0.svn/etc/wxpyth
on/gui_modules/toolbars.py", line 250, in OnSelectTool

self.mapdisplay.AddToolbar("nviz")
  File "/local/home/helena/grasssvn/grass-7.0.svn/etc/wxpyth
on/gui_modules/mapdisp.py", line 2717, in AddToolbar

import nviz
  File "/local/home/helena/grasssvn/grass-7.0.svn/etc/wxpyth
on/gui_modules/nviz.py", line 42, in ?

import nviz_mapdisp
  File "/local/home/helena/grasssvn/grass-7.0.svn/etc/wxpyth
on/gui_modules/nviz_mapdisp.py", line 40, in ?

import grass7_wxnviz as wxnviz
ImportError
:
No module named grass7_wxnviz

Helena Mitasova wrote:

I am trying to get myself up to date on grass7, especially look at the
wxnviz but although I did make distclean and updated grass trunk
grass7_wxnviz is not found - am I perhaps missing
something in my configure (see below)?

You need --with-wxwidgets for the vdigit and nviz add-ons to the wx
GUI, also for the xganim replacement.

Also, --with-motif no longer exists.

--
Glynn Clements <glynn@gclements.plus.com>

I am trying to get to test the new r.watershed but I am stuck at
compiling grass7
(I had it working OK without wxwidgets before I updated)

First, the issue with wxWidgets, when I include --with-wxwidgets
I get

checking whether to use wxWidgets... yes
checking for wx-config... /usr/bin/wx-config
checking wxWidgets version... 2.8.9
checking for wx/wxprec.h... yes
checking for wx/wxPython/pseudodc.h... no
configure: error: *** Unable to locate wxWidgets includes.

but I do have it
deliboz%
ls /usr/lib/wxPython-2.8.7.1-gtk2-unicode/include/wx-2.8/wx/wxPython
i_files printfw.h pseudodc.h pyclasses.h pydrawxxx.h pyistream.h
pytree.h swigver.h twoitem.h wxPython.h wxPython_int.h

I tried to add (I don't know what I am doing here)
--with-wxwidgets-includes=/usr/lib/wxPython-2.8.7.1-gtk2-unicode/include/wx-2.8/wx
--with-wxwidgets-libs=/usr/lib/wxPython-2.8.7.1-gtk2-unicode/include/wx-2.8/wx/wxPython
but I got the same as above

-----------------------------------------------------------------------------
To get at least something running
I did make distclean
svn update
configure, make, make install
with skipped wxWidgets, configure goes through
but make gives error for g.cairocomp (do I need it compiled?)

OBJ.x86_64-unknown-linux-gnu/main.o: In function `init_xlib':
/local/home/helena/grasssvn/grass_trunk/general/g.cairocomp/main.c:118:
undefined reference to `cairo_xlib_surface_get_xrender_format'
collect2: ld returned 1 exit status

and when I try to run any r.* command I get

"ERROR: Incompatible library version for module"
g., v. commands run OK

any advice would be appreciated,

Helena

-----configure without wxwidgets-----------------------
GRASS is now configured for: x86_64-unknown-linux-gnu

  Source directory: /local/home/helena/grasssvn/grass_trunk
  Build directory: /local/home/helena/grasssvn/grass_trunk
  Installation directory: ${prefix}/grass-7.0.svn
  Startup script in directory: ${exec_prefix}/bin
  C compiler: gcc -g -Wall
  C++ compiler: c++ -g -O2
  Building shared libraries: yes
  64bit support: yes
  OpenGL platform: X11
  MacOSX application: no

  NVIZ: yes

  BLAS support: no
  C++ support: yes
  Cairo support: yes
  DWG support: no
FFMPEG support: no
  FFTW support: yes
  FreeType support: yes
  GDAL support: yes
  JPEG support: yes
  LAPACK support: no
  Large File support (LFS): yes
  MySQL support: no
  NLS support: no
  ODBC support: no
  OGR support: yes
  OpenGL support: yes
  PNG support: yes
  PostgreSQL support: no
  Python support: yes
  Readline support: no
  SQLite support: yes
  Tcl/Tk support: yes
  wxWidgets support: no
  TIFF support: yes
  X11 support: yes
  Regex support: yes
  POSIX thread support: no

On Wed, 2009-01-07 at 00:44 +0000, Glynn Clements wrote:

Helena Mitasova wrote:

> I am trying to get myself up to date on grass7, especially look at the
> wxnviz but although I did make distclean and updated grass trunk
> grass7_wxnviz is not found - am I perhaps missing
> something in my configure (see below)?

You need --with-wxwidgets for the vdigit and nviz add-ons to the wx
GUI, also for the xganim replacement.

Also, --with-motif no longer exists.

Helena Mitasova wrote:

I am trying to get to test the new r.watershed but I am stuck at
compiling grass7
(I had it working OK without wxwidgets before I updated)

First, the issue with wxWidgets, when I include --with-wxwidgets
I get

checking whether to use wxWidgets... yes
checking for wx-config... /usr/bin/wx-config
checking wxWidgets version... 2.8.9
checking for wx/wxprec.h... yes
checking for wx/wxPython/pseudodc.h... no
configure: error: *** Unable to locate wxWidgets includes.

but I do have it
deliboz%
ls /usr/lib/wxPython-2.8.7.1-gtk2-unicode/include/wx-2.8/wx/wxPython
i_files printfw.h pseudodc.h pyclasses.h pydrawxxx.h pyistream.h
pytree.h swigver.h twoitem.h wxPython.h wxPython_int.h

I tried to add (I don't know what I am doing here)
--with-wxwidgets-includes=/usr/lib/wxPython-2.8.7.1-gtk2-unicode/include/wx-2.8/wx
--with-wxwidgets-libs=/usr/lib/wxPython-2.8.7.1-gtk2-unicode/include/wx-2.8/wx/wxPython
but I got the same as above
  

You could try to add
CPPFLAGS="-I/usr/lib/wxPython-2.8.7.1-gtk2-unicode/include/wx-2.8/"
or
CPPFLAGS="-I/usr/include/wx-2.8/"
(location on my system)
without /wx or /wx/wxPython to your configure command. Just a wild guess...

-----------------------------------------------------------------------------
To get at least something running
I did make distclean
svn update
configure, make, make install
with skipped wxWidgets, configure goes through
but make gives error for g.cairocomp (do I need it compiled?)

OBJ.x86_64-unknown-linux-gnu/main.o: In function `init_xlib':
/local/home/helena/grasssvn/grass_trunk/general/g.cairocomp/main.c:118:
undefined reference to `cairo_xlib_surface_get_xrender_format'
collect2: ld returned 1 exit status
  

g.cairocomp is apparently not necessary for other commands to run [1].
[1] http://trac.osgeo.org/grass/ticket/419#comment:8

and when I try to run any r.* command I get

"ERROR: Incompatible library version for module"
  

Maybe you have grass libraries of a previous version somewhere in a system-wide location, e.g. /usr/local/lib, they can conflict with grass 7 and need to be removed.
If grass libraries of a previous version are in e.g. /usr/local/grass-6.4.0RC2/lib and a file called something like grass.conf exists in /etc/ld.so.conf.d/ that can also be the cause. Removing or renaming this file followed by ldconfig could then help.

I hope that helps.

Markus M

g., v. commands run OK

any advice would be appreciated,

Helena

-----configure without wxwidgets-----------------------
GRASS is now configured for: x86_64-unknown-linux-gnu

  Source directory: /local/home/helena/grasssvn/grass_trunk
  Build directory: /local/home/helena/grasssvn/grass_trunk
  Installation directory: ${prefix}/grass-7.0.svn
  Startup script in directory: ${exec_prefix}/bin
  C compiler: gcc -g -Wall
  C++ compiler: c++ -g -O2
  Building shared libraries: yes
  64bit support: yes
  OpenGL platform: X11
  MacOSX application: no

  NVIZ: yes

  BLAS support: no
  C++ support: yes
  Cairo support: yes
  DWG support: no
FFMPEG support: no
  FFTW support: yes
  FreeType support: yes
  GDAL support: yes
  JPEG support: yes
  LAPACK support: no
  Large File support (LFS): yes
  MySQL support: no
  NLS support: no
  ODBC support: no
  OGR support: yes
  OpenGL support: yes
  PNG support: yes
  PostgreSQL support: no
  Python support: yes
  Readline support: no
  SQLite support: yes
  Tcl/Tk support: yes
  wxWidgets support: no
  TIFF support: yes
  X11 support: yes
  Regex support: yes
  POSIX thread support: no

On Wed, 2009-01-07 at 00:44 +0000, Glynn Clements wrote:
  

Helena Mitasova wrote:

I am trying to get myself up to date on grass7, especially look at the
wxnviz but although I did make distclean and updated grass trunk
grass7_wxnviz is not found - am I perhaps missing
something in my configure (see below)?
      

You need --with-wxwidgets for the vdigit and nviz add-ons to the wx
GUI, also for the xganim replacement.

Also, --with-motif no longer exists.

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

I forgot, if gdal is compiled with grass support based on a previous version, that doesn't work too, you have to compile gdal without grass support again, then grass7 with gdal support. It's a bit of a hassle but worth the effort, grass7 is really nice:-)

Markus M

Helena Mitasova wrote:

I am trying to get to test the new r.watershed but I am stuck at
compiling grass7
(I had it working OK without wxwidgets before I updated)

First, the issue with wxWidgets, when I include --with-wxwidgets
I get

checking whether to use wxWidgets... yes
checking for wx-config... /usr/bin/wx-config
checking wxWidgets version... 2.8.9
checking for wx/wxprec.h... yes
checking for wx/wxPython/pseudodc.h... no
configure: error: *** Unable to locate wxWidgets includes.

but I do have it
deliboz%
ls /usr/lib/wxPython-2.8.7.1-gtk2-unicode/include/wx-2.8/wx/wxPython
i_files printfw.h pseudodc.h pyclasses.h pydrawxxx.h pyistream.h
pytree.h swigver.h twoitem.h wxPython.h wxPython_int.h

I tried to add (I don't know what I am doing here)
--with-wxwidgets-includes=/usr/lib/wxPython-2.8.7.1-gtk2-unicode/include/wx-2.8/wx
--with-wxwidgets-libs=/usr/lib/wxPython-2.8.7.1-gtk2-unicode/include/wx-2.8/wx/wxPython
but I got the same as above

-----------------------------------------------------------------------------
To get at least something running
I did make distclean
svn update
configure, make, make install
with skipped wxWidgets, configure goes through
but make gives error for g.cairocomp (do I need it compiled?)

OBJ.x86_64-unknown-linux-gnu/main.o: In function `init_xlib':
/local/home/helena/grasssvn/grass_trunk/general/g.cairocomp/main.c:118:
undefined reference to `cairo_xlib_surface_get_xrender_format'
collect2: ld returned 1 exit status

and when I try to run any r.* command I get

"ERROR: Incompatible library version for module"
g., v. commands run OK

any advice would be appreciated,

Helena

-----configure without wxwidgets-----------------------
GRASS is now configured for: x86_64-unknown-linux-gnu

  Source directory: /local/home/helena/grasssvn/grass_trunk
  Build directory: /local/home/helena/grasssvn/grass_trunk
  Installation directory: ${prefix}/grass-7.0.svn
  Startup script in directory: ${exec_prefix}/bin
  C compiler: gcc -g -Wall
  C++ compiler: c++ -g -O2
  Building shared libraries: yes
  64bit support: yes
  OpenGL platform: X11
  MacOSX application: no

  NVIZ: yes

  BLAS support: no
  C++ support: yes
  Cairo support: yes
  DWG support: no
FFMPEG support: no
  FFTW support: yes
  FreeType support: yes
  GDAL support: yes
  JPEG support: yes
  LAPACK support: no
  Large File support (LFS): yes
  MySQL support: no
  NLS support: no
  ODBC support: no
  OGR support: yes
  OpenGL support: yes
  PNG support: yes
  PostgreSQL support: no
  Python support: yes
  Readline support: no
  SQLite support: yes
  Tcl/Tk support: yes
  wxWidgets support: no
  TIFF support: yes
  X11 support: yes
  Regex support: yes
  POSIX thread support: no

On Wed, 2009-01-07 at 00:44 +0000, Glynn Clements wrote:
  

Helena Mitasova wrote:

I am trying to get myself up to date on grass7, especially look at the
wxnviz but although I did make distclean and updated grass trunk
grass7_wxnviz is not found - am I perhaps missing
something in my configure (see below)?
      

You need --with-wxwidgets for the vdigit and nviz add-ons to the wx
GUI, also for the xganim replacement.

Also, --with-motif no longer exists.

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

On Thu, Jan 15, 2009 at 10:20 PM, Markus Metz
<markus.metz.giswork@googlemail.com> wrote:

I forgot, if gdal is compiled with grass support based on a previous
version, that doesn't work too, you have to compile gdal without grass
support again, then grass7 with gdal support. It's a bit of a hassle but
worth the effort, grass7 is really nice:-)

Won't the GRASS-GDAL plugin solve this? Then you avoid this nightmare...

Markus

Helena Mitasova wrote:

I am trying to get to test the new r.watershed but I am stuck at
compiling grass7
(I had it working OK without wxwidgets before I updated)

First, the issue with wxWidgets, when I include --with-wxwidgets
I get

checking whether to use wxWidgets... yes
checking for wx-config... /usr/bin/wx-config
checking wxWidgets version... 2.8.9
checking for wx/wxprec.h... yes
checking for wx/wxPython/pseudodc.h... no
configure: error: *** Unable to locate wxWidgets includes.

but I do have it
deliboz%
ls /usr/lib/wxPython-2.8.7.1-gtk2-unicode/include/wx-2.8/wx/wxPython
i_files printfw.h pseudodc.h pyclasses.h pydrawxxx.h pyistream.h
pytree.h swigver.h twoitem.h wxPython.h wxPython_int.h

I tried to add (I don't know what I am doing here)
--with-wxwidgets-includes=/usr/lib/wxPython-2.8.7.1-gtk2-unicode/include/wx-2.8/wx

The trailing "/wx" doesn't belong there; wx headers are referenced as
e.g. "#include <wx/dc.h>", so the -I switch needs to point to the
directory containing the wx subdirectory, not the header files.

-----------------------------------------------------------------------------
To get at least something running
I did make distclean
svn update
configure, make, make install
with skipped wxWidgets, configure goes through
but make gives error for g.cairocomp (do I need it compiled?)

Known issue; g.cairocomp is currently unused, but I need to add more
configure checks to detect whether cairo has the features which
g.cairocomp requires (currently, configure only checks what's required
by the cairo driver).

and when I try to run any r.* command I get

"ERROR: Incompatible library version for module"
g., v. commands run OK

See Markus' comments about GDAL.

--
Glynn Clements <glynn@gclements.plus.com>