[GRASS-user] wxpython gui: d.vect.thematic raises error

Martin Landa landa.martin at gmail.com
Mon Feb 25 14:41:24 EST 2008


Hi,

2008/2/25, G. Allegri <giohappy at gmail.com>:
> I've solved linking _gdi_.so library into /usr/lib
>  mmm... not very straigthforward :-)

yes, compiling vdigit is quite tricky, it needs to be simplified. The
problematic is usage of wxPython wxPseudoDC class which is not part of
wxWidgets itself. Solution would be to use wxDC instead of wxPseudoDC
in vdigit code. The problem is that in the Python code are used
methods of wxPseudoDC which are not available in wxDC class, e.g.
TraslateId() to move objects. Anyway linking against Python extension
_gdi_.so is not solution, it works on Linux machines, but on Mac
(AFAIU).

Congrats, you are one of the few users who manage compile it;-) Enjoy.

Martin

>  The second error remains (d.vect.thematic)
>
>
>  2008/2/25, G. Allegri <giohappy at gmail.com>:
>  > I'm sorry. I had a problem with vdigit compilation and I accidentally ignore it.
>  >  I had an error with the compiler linker:
>  >
>  >  /usr/bin/ld: cannot find -lgdi
>  >  collect2: ld returned 1 exit status
>  >
>  >
>  >
>  >  2008/2/25, G. Allegri <giohappy at gmail.com>:
>  >  > The strange think is that after having made vdigit, I've run make
>  >  >  install (from the source root), but nothing has been moved to the
>  >  >  $GISBASE/etc/wxpython/vdigit folder.
>  >  >
>  >  >  Anyway I've manually moved grass6_wxvdigit.py but obviously it'not
>  >  >  enough because I can't find _grass6_wxdigit.so. Where should it have
>  >  >  been compiled?
>  >  >
>  >  >
>  >  >  2008/2/25, Martin Landa <landa.martin at gmail.com>:
>  >  >  > Hi,
>  >  >  >
>  >  >  >  2008/2/25, G. Allegri <giohappy at gmail.com>:
>  >  >  >
>  >  >  > > Martin, I've already compiled vdigit correctly. It didn't give any
>  >  >  >  >  error or warning...
>  >  >  >
>  >  >  >
>  >  >  > If you run 'make' in gui/wxpython/vdigit, you get two files
>  >  >  >  'grass6_wxvdigit.py' and '_grass6_wxvdigit.so'. Maybe you need to run
>  >  >  >  'make install' (depends on your installation procedure) or just copy
>  >  >  >  these file to $GISBASE/etc/wxpython/vdigit manually.
>  >  >  >
>  >  >  >
>  >  >  >  Martin
>  >  >  >
>  >  >  >
>  >  >  >  >  2008/2/25, Martin Landa <landa.martin at gmail.com>:
>  >  >  >  >
>  >  >  >  > > Hi,
>  >  >  >  >  >
>  >  >  >  >  >  2008/2/25, G. Allegri <giohappy at gmail.com>:
>  >  >  >  >  >  [snip]
>  >  >  >  >  >
>  >  >  >  >  >
>  >  >  >  >  >  >  FIRST ERROR: vdigit
>  >  >  >  >  >  >
>  >  >  >  >  >  >  I've loaded (inside the manager) a polygon layer and an empty line
>  >  >  >  >  >  >  layer to digitize the latter.
>  >  >  >  >  >  >  Then I've run vdigit from the "tools" menu. I've selected the line
>  >  >  >  >  >  >  layer as the layer to be digitized.
>  >  >  >  >  >  >  I get an error window with:
>  >  >  >  >  >  >
>  >  >  >  >  >  >  "Unable to initialize display driver, see README file for more information."
>  >  >  >  >  >
>  >  >  >  >  >
>  >  >  >  >  > To make digitizer you need to compile C++ code in gui/wxpython/vdigit,
>  >  >  >  >  >  see gui/wxpython/README for detailed information.
>  >  >  >  >  >
>  >  >  >  >  >  [snip]
>  >  >  >  >  >
>  >  >  >  >  >  Martin
>  >  >  >  >  >
>  >  >  >  >  >
>  >  >  >  >  >  --
>  >  >  >  >  >  Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *
>  >  >  >  >  >
>  >  >  >  >
>  >  >  >
>  >  >  >
>  >  >  >
>  >  >  > --
>  >  >  >
>  >  >  > Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *
>  >  >  >
>  >  >
>  >
>


-- 
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *


More information about the grass-user mailing list