[GRASS-dev] Building gui/wxpython/vdigit fails on Gentoo
michael.barton at asu.edu
Sat Feb 16 11:58:20 EST 2008
On Feb 16, 2008, at 5:59 AM, grass-dev-request at lists.osgeo.org wrote:
> Date: Sat, 16 Feb 2008 13:59:09 +0100
> From: "Martin Landa" <landa.martin at gmail.com>
> Subject: Re: [GRASS-dev] Building gui/wxpython/vdigit fails on Gentoo
> To: "Maris Nartiss" <maris.gis at gmail.com>
> Cc: grass-dev at lists.osgeo.org
> <f8fe65c40802160459n6d7c500s4ff2dbd21c96bdcc at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
> 2008/2/16, Maris Nartiss <maris.gis at gmail.com>:
>> 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?
>> 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/
> So I am not sure how to solve this issue in Makefile. Now you need to
> create a symlink, e.g.
> First, create a symlink to _gdi_.so shared library
> $ ln -s `locate _gdi_.so` $GISBASE/lib/libgdi.so
> $ ln -s /usr/lib/python2.4/site-packages/wx-2.8-gtk2-unicode/wx/
> Then you can compile the driver
> $ cd $GISBASE/etc/wxpython/vdigit
> $ make
> I hope this helps.
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?
More information about the grass-dev