[GRASS-dev] how to start wx vdigit?

William Kyngesburye woklist at kyngchaos.com
Sun Mar 9 16:18:03 EDT 2008


On Mar 9, 2008, at 2:43 PM, Martin Landa wrote:

> Now fixed in trunk, http://trac.osgeo.org/grass/changeset/30510
>
Yep, works now.

> important is the last part of the message which comes when you try to
> import grass6_wxvdigit Python module .
>
> Try:
>
> cd gui/wxpython/vdigit
> python
> import grass6_wxvdigit
>
> you will get this error

So is there a bug in grass6_wxvdigit.py?

>> I'm not sure if this is from the way I setup my test build or
>> something else.
>>
>> Here is what I did to get it compiled: since _gdi_.so is technically
>> an extension to [wx]Python, I figure that it should get loaded (maybe
>> automatically?) by wxPython.  So instead of directly linking it into
>> vdigit, I used an OSX linker flag "-undefined dynamic_lookup" to tell
>> the linker that the gdi.so symbols will be found at runtime.
>
> Hm, the last days I have not so much time to work on this, the way you
> suggest maybe could solve it.
>
>>


I'm guessing "import wx" should import _gdi and load _gdi_.so, since  
_core imports _gdi.  Didn't help with the init_grass6_wxvdigit error.

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"Those people who most want to rule people are, ipso-facto, those  
least suited to do it."

- A rule of the universe, from the HitchHiker's Guide to the Galaxy




More information about the grass-dev mailing list