linux build bug and fix

6 views
Skip to first unread message

Andrew Charles

unread,
Feb 16, 2009, 6:55:07 AM2/16/09
to py-lepton-users
Tried building the most recent trunk on a PC running Ubuntu 8.04, got
a link error:

In [3]: from lepton.renderer import BillboardRenderer
<type 'exceptions.ImportError'>: lepton/renderer.so: undefined symbol:
Vector_new

Adding groupmodule.c to the renderer extension list of modules fixed
it, but maybe the better fix is for Vector_new to be defined in
vector.h?

line 86 or so:
Extension('lepton.renderer',
['lepton/group.c', 'lepton/renderermodule.c',
'lepton/controllermodule.c','lepton/groupmodule.c'], ...


-Andrew

Casey Duncan

unread,
Feb 16, 2009, 10:07:42 AM2/16/09
to py-lept...@googlegroups.com
On Mon, Feb 16, 2009 at 4:55 AM, Andrew Charles <ac1...@gmail.com> wrote:
>
> Tried building the most recent trunk on a PC running Ubuntu 8.04, got
> a link error:
>
> In [3]: from lepton.renderer import BillboardRenderer
> <type 'exceptions.ImportError'>: lepton/renderer.so: undefined symbol:
> Vector_new

Hmm, interesting how nothing has changed in that module yet it starts
complaining.

> Adding groupmodule.c to the renderer extension list of modules fixed
> it, but maybe the better fix is for Vector_new to be defined in
> vector.h?

I made the change to setup.py in r161. The vector stuff is destined to
go into another module altogether in a later release, so we'll make
due with it like this for now.

Thanks!

-Casey

Reply all
Reply to author
Forward
0 new messages