[GRASS-SVN] r30189 - in grass/trunk/gui/wxpython: . gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Feb 16 12:32:47 EST 2008
Author: martinl
Date: 2008-02-16 12:32:47 -0500 (Sat, 16 Feb 2008)
New Revision: 30189
Modified:
grass/trunk/gui/wxpython/README
grass/trunk/gui/wxpython/gui_modules/digit.py
Log:
wxGUI: README fixed (use LD_LIBRARY_PATH instead of /lib). Error message for missing vdigit more detailed.
Modified: grass/trunk/gui/wxpython/README
===================================================================
--- grass/trunk/gui/wxpython/README 2008-02-16 17:05:27 UTC (rev 30188)
+++ grass/trunk/gui/wxpython/README 2008-02-16 17:32:47 UTC (rev 30189)
@@ -144,13 +144,18 @@
First, create a symlink to _gdi_.so shared library
-$ ln -s `locate _gdi_.so` $GISBASE/lib/libgdi.so
+$ sudo ln -s `locate _gdi_.so` /usr/local/lib/libgdi.so
e.g.
-$ ln -s /usr/lib/python2.4/site-packages/wx-2.8-gtk2-unicode/wx/_gdi_.so $GISBASE/lib/libgdi.so
+$ sudo ln -s /usr/lib/python2.4/site-packages/wx-2.8-gtk2-unicode/wx/_gdi_.so /usr/local/lib/libgdi.so
+Make sure you set up LD_LIBRARY_PATH or noted '/usr/local/lib' in
+/etc/ld.so.conf.
+
+$ sudo ldconfig
+
Then you can compile the driver
-$ cd $GISBASE/etc/wxpython/vdigit
+$ cd gui/wxpython/vdigit
$ make
Modified: grass/trunk/gui/wxpython/gui_modules/digit.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/digit.py 2008-02-16 17:05:27 UTC (rev 30188)
+++ grass/trunk/gui/wxpython/gui_modules/digit.py 2008-02-16 17:32:47 UTC (rev 30189)
@@ -184,8 +184,10 @@
try:
ret = self.driver.Reset(self.map)
- except:
- raise gcmd.DigitError('Unable to initialize display driver, see README file for more information.')
+ except StandardError, e:
+ raise gcmd.DigitError('Unable to initialize display driver, '
+ 'see README file for more information.%s%s'
+ 'Details: %s' % (os.linesep, os.linesep, e))
if map and ret == -1:
raise gcmd.DigitError(_('Unable to open vector map <%s> for editing. The vector map is probably broken. '
More information about the grass-commit
mailing list