[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: DirectFB bindings
- From: "Paul Eipper" <lkraider@...>
- Date: Thu, 11 Dec 2008 16:07:34 -0200
I'm working on a binding for using DirectFB on Lua scripts, but I'm
having some problems. It seems that creating the super interface for
the IDirectFB  fails only when calling from within the binding.
I have put a small example code at this pastebin:
The error I get when initializing the directfb interface is that the
libdirectfb_fbdev.so cannot initialize ("did not register") leading to
(!) DirectFB/core/system: No system found!
whereas if I use the exact same code, but using a main section (like a
regular app) it all loads and executes correctly.
I'm wondering if being loaded from within lua something changes on the
environment somehow? I tried printing the env variables but they show
the same under both runs. I also tried running under strace, and the
only difference I could notice is that when running under lua there
are no "futex" calls, while as an app is does a "futex wake" right
before directfb starts to load its modules. I'm not sure if this is
the actual culprit tho.
I'm using DirectFB 1.0 and Lua 5.1.4