[GRASS-user] Error compiling vdigit support in wxgrass: make cannot find -lgdi

Hi,

I'm compiling vdigit support in wxpython Grass. I passed the --with-python and --with-wxwidgets flags during configure, with no errors.

make exits with one error:

<snip>
/usr/bin/ld: cannot find -lgdi
collect2: ld returned 1 exit status
make: *** [OBJ.x86_64-unknown-linux-gnu/_grass6_wxvdigit.so] Error 1

Does anyone know what library/package name this -lgdi refers to? In Ubuntu Synaptic, the only hit for "gdi" or "python gdi" is a package called python-egenix-mxbeebase, and installing this package doesn't seem to satisfy this dependency, after running make distclean and recompiling.

Any idea what's wrong?

~ Eric.

Hi,

2008/4/22, Patton, Eric <epatton@nrcan.gc.ca>:

I'm compiling vdigit support in wxpython Grass. I passed the --with-python and --with-wxwidgets flags during configure, with no errors.

make exits with one error:

<snip>
/usr/bin/ld: cannot find -lgdi
collect2: ld returned 1 exit status
make: *** [OBJ.x86_64-unknown-linux-gnu/_grass6_wxvdigit.so] Error 1

Does anyone know what library/package name this -lgdi refers to? In Ubuntu Synaptic, the only hit for "gdi" or "python gdi" is a package called python-egenix-mxbeebase, and installing this package doesn't seem to satisfy this dependency, after running make distclean and recompiling.

take a look at gui/wxpython/README

-> 7 - DIGITIZATION TOOL

it is just a link to wxPython extension, still unsolved issue. You
need to create a symlink for now.

Martin

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

take a look at gui/wxpython/README

-> 7 - DIGITIZATION TOOL

it is just a link to wxPython extension, still unsolved issue. You
need to create a symlink for now.

Martin

Thanks for the link. I created a symlink to the file in question:

$ cd /usr/local/lib
$ ls -rlt

lrwxrwxrwx 1 root root 64 2008-04-23 09:15 libgdi.so -> /usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_gdi_.so

However, when I try to run the vdigit module in the map display window, I get an error with the following traceback:

Traceback (most recent call last):
  File "/usr/local/grass-6.4.svn/etc/wxpython/gui_modules/to
olbars.py", line 182, in OnSelect

self.mapdisplay.AddToolbar("digit")
  File "/usr/local/grass-6.4.svn/etc/wxpython/gui_modules/ma
pdisp.py", line 2399, in AddToolbar

self.digittoolbar = toolbars.DigitToolbar(self, self.Map,
self.tree)
  File "/usr/local/grass-6.4.svn/etc/wxpython/gui_modules/to
olbars.py", line 298, in __init__

self.UpdateListOfLayers(updateTool=True)
  File "/usr/local/grass-6.4.svn/etc/wxpython/gui_modules/to
olbars.py", line 831, in UpdateListOfLayers

self.combo = wx.ComboBox(self.toolbar[self.numOfRows-1],
id=wx.ID_ANY, value=value,
TypeError
:
'ToolBar' object is unindexable

~ Eric.

Hi,

2008/4/23, Patton, Eric <epatton@nrcan.gc.ca>:

However, when I try to run the vdigit module in the map display window, I get an error with the following traceback:

Traceback (most recent call last):
  File "/usr/local/grass-6.4.svn/etc/wxpython/gui_modules/to
olbars.py", line 182, in OnSelect

self.mapdisplay.AddToolbar("digit")
  File "/usr/local/grass-6.4.svn/etc/wxpython/gui_modules/ma
pdisp.py", line 2399, in AddToolbar

self.digittoolbar = toolbars.DigitToolbar(self, self.Map,
self.tree)
  File "/usr/local/grass-6.4.svn/etc/wxpython/gui_modules/to
olbars.py", line 298, in __init__

self.UpdateListOfLayers(updateTool=True)
  File "/usr/local/grass-6.4.svn/etc/wxpython/gui_modules/to
olbars.py", line 831, in UpdateListOfLayers

self.combo = wx.ComboBox(self.toolbar[self.numOfRows-1],
id=wx.ID_ANY, value=value,
TypeError
:
'ToolBar' object is unindexable

ops, I introduced this bug yesterday when I was updating 'toolbars'
module, now should be fixed.

http://trac.osgeo.org/grass/changeset/31092

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

oops, I introduced this bug yesterday when I was updating 'toolbars'
module, now should be fixed.

http://trac.osgeo.org/grass/changeset/31092

Martin

Thanks, I've tested it and it works great. Nice job!

~ Eric.