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

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

Reply via email to