On Feb 16, 2008, at 5:59 AM, [EMAIL PROTECTED] wrote:
Date: Sat, 16 Feb 2008 13:59:09 +0100
From: "Martin Landa" <[EMAIL PROTECTED]>
Subject: Re: [GRASS-dev] Building gui/wxpython/vdigit fails on Gentoo
To: "Maris Nartiss" <[EMAIL PROTECTED]>
Cc: [email protected]
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1
Hi,
2008/2/16, Maris Nartiss <[EMAIL PROTECTED]>:
I was compiling recent svn trunk (r30180) and vdigit failed to build
(link). As trac issue #38 is closed, I assume wx related stuff
detection now works and this must be my fault. What I did wrong?
[snip]
cannot find -lgdi
collect2: ld returned 1 exit status
make: *** [grass6_wxvdigit.so] Error 1
yes, this is the last step you need to do manually. In wxPython code
is used wx.PsedoDC class which is not part of wxWidgets itself (should
be included in 2.9). So you need to link against C++ wxPython shared
library which is not defined in $WXWIDGETSLIB. On Debian this library
is located in /usr/lib/python2.4/site-packages/wx-2.8-gtk2-unicode/
wx/_gdi_.so.
So I am not sure how to solve this issue in Makefile. Now you need to
create a symlink, e.g.
from
http://svn.osgeo.org/grass/grass/trunk/gui/wxpython/README
First, create a symlink to _gdi_.so shared library
$ ln -s `locate _gdi_.so` $GISBASE/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
Then you can compile the driver
$ cd $GISBASE/etc/wxpython/vdigit
$ make
I hope this helps.
Martin
Martin,
This is confusing to me. wx.PseudoDC has been a part of wxPython code
for quite some time. We're using it as a basis for the main map display.
Also, since you use $GISBASE, I assume that you mean that the driver
must be compiled AFTER running make and make install. Correct?
Michael
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev