[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Adonthell-devel] 0.4 source structure proposals and questions
From: |
Kai Sterker |
Subject: |
Re: [Adonthell-devel] 0.4 source structure proposals and questions |
Date: |
Sun, 2 Mar 2003 21:16:36 +0100 |
On Sun, 02 Mar 2003 20:05:30 +0100 Alexandre Courbot wrote:
> Good. Looking forward to know whether it works now! ;)
Not out of the box :(.
Compilation itself was smooth, as was installation. However, when I
tried to import adonthell.gfx, I got the following:
Python 2.1 (#1, Apr 27 2001, 12:44:29)
[GCC 2.95.2 19991024 (release)] on linux2
Type "copyright", "credits" or "license" for more information.
>>> import adonthell.gfx
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File
"/home/kai/adonthell/test/lib/python2.1/site-packages/adonthell/gfx.py",
line 4, in ?
import _gfx
ImportError: /home/kai/adonthell/test/lib/libadonthell_base.so.0:
undefined symbol: cerr
After adding -lstdc++ to libadonthell_base_la_LIBADD, everything worked
fine though. Of course, sine I still use Python 2.1 here, the methods
from your example can't be accessed that way. Had to use
adonthell.gfx.screen_init()
and ^
adonthell.gfx.screen_set_video_mode(640, 480)
^
instead. That's something to keep in mind: either we should enforce
usage of Python 2.2, or write our scripts in "compatibility mode".
Kai