Re: [GRASS-dev] grass7 compile problems

2009-01-16 Thread Glynn Clements

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 gl...@gclements.plus.com
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev


Re: [GRASS-dev] grass7 compile problems

2009-01-15 Thread Helena Mitasova
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 +, 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


Re: [GRASS-dev] grass7 compile problems

2009-01-15 Thread Markus Metz



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 +, 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


Re: [GRASS-dev] grass7 compile problems

2009-01-15 Thread Markus Metz
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 +, 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


Re: [GRASS-dev] grass7 compile problems

2009-01-15 Thread Markus Neteler
On Thu, Jan 15, 2009 at 10:20 PM, Markus Metz
markus.metz.gisw...@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
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev