[pygtk] pygtk with directfb without x11
sgf42 at fischer-abc.de
sgf42 at fischer-abc.de
Mon Jul 13 20:54:40 WST 2009
Hi Albert,
thank you very much for your reply.
Meanwhile I found out, that it's not a good idea to use precompiled packages
from debian if you don't like X11 dependentcies. You have to compile it on
your own. And the description for it is already available here:
http://www.directfb.org/wiki/index.php/Projects:GTK_on_DirectFB
this works great, no X11 dependencies at all anymore!
BUT as usual that's not all...
I got this
ImportError: /usr/gtkdfb/lib/python2.5/site-packages/gtk-2.0/gtk/_gtk.so:
undefined symbol: gdk_keyval_convert_case
>>
which I fixed with the help of this posting
http://www.daa.com.au/pipermail/pygtk/2007-August/014101.html
And now I get this error message:
Python 2.5.2 (r252:60911, Jan 5 2009, 02:00:00)
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygtk
>>> pygtk.require('2.0')
>>> import gtk
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/gtkdfb/lib/python2.5/site-packages/gtk-2.0/gtk/__init__.py", line
48, in <module>
from gtk import _gtk
ImportError: /usr/gtkdfb/lib/python2.5/site-packages/gtk-2.0/gtk/_gtk.so:
undefined symbol: gdk_keymap_have_bidi_layouts
>>>
I tried the same approach as above by adding "gdk_keymap_have_bidi_layouts" to
the ignore section in
pygtk-x.x/gtk/gdk.override
but to no avail...
My setup is at the moment:
Python 2.5.2
pygtk-2.12.1
pygobject-2.14.2
gtk+-2.12.12
libglade-2.6.2
libxml2-2.6.30
pango-1.20.5
cairo-1.6.4
Does anybody can give me a hint how to get rid of this error. And why does
adding it to the ignore section doesn't help here ?
Thank you very much in advance!
Sven
On Monday 06 July 2009, A.T.Hofkamp wrote:
> sgf42 at fischer-abc.de wrote:
> > Hi,
> >
> > nobody who can help me to answer the question, is it possible to use
> > pygtk with directfb without x11 libs ?
>
> I have no idea what directfb is, nor do I know anything about GTK or PyGTK
> internals, so I cannot make a fair estimate of how difficult it is going to
> be.
>
>
> In short, the answer to your question is yes, everything is open source
> software. Either it is supported already, or you can extend the software.
> It may however not be trivial.
>
>
> PyGTK is not really relevant to your question. PyGTK is nothing more than a
> very thin layer on top of GTK, so if you want to use PyGTK with directfb,
> you need a GTK with directfb.
> If you have that, building a PyGTK with directfb should be quite easy.
>
> Thus, find out what video backends are supported by GTK, and you know how
> non-trivial directfb support is going to be.
>
>
> Albert
More information about the pygtk
mailing list