ok .. obviously there is no free lunch. code does not work out of the box.
need to compile the libraries as so and copy everything .. including the directfb-1.2.9 directory to my kindle touch. basically the whole /usr/local/lib directory to kindle.
then add the following code into the tutorial code:
DirectFBSetOption("module-dir", "./directfb-1.2-9"); // depending on where you copy the files to.
unfortunately still not much luck ... the last repaint command gives exception.
[root@kindle development]# a.out
~~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.2.9 |~~~~~~~~~~~~~~~~~~~~~~~~~~
(c) 2001-2008 The world wide DirectFB Open Source Community
(c) 2000-2004 Convergence (integrated media) GmbH
----------------------------------------------------------------
(*) DirectFB/Core: Single Application Core. (2014-06-02 09:32)
(*) Direct/Thread: Started 'Linux Input' (18375) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: WM8962 Beep Generator (1) 0.1 (directfb.org)
(*) Direct/Thread: Started 'Linux Input' (18376) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: imx-yoshi Headset (2) 0.1 (directfb.org)
(*) Direct/Thread: Started 'Linux Input' (18377) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: whitney-button (3) 0.1 (directfb.org)
(*) Direct/Thread: Started 'Linux Input' (18378) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: zforce (4) 0.1 (directfb.org)
(!) DirectFB/Keyboard: Could not open() /dev/tty0!
--> No such file or directory
(!) Direct/Modules: Unable to dlopen `./directfb-1.2-9/gfxdrivers/libdirectfb_davinci.so'!
--> libdavinci_c64x.so.0: cannot open shared object file: No such file or directory
(*) DirectFB/Graphics: Generic Software Rasterizer 0.6 (directfb.org)
(*) DirectFB/Core/WM: Default 0.3 (directfb.org)
(*) FBDev/Surface: Allocated 600x800 8 bit LUT8 buffer (index 0) at offset 0 and pitch 608.
(*) Direct/Interface: Loaded 'FT2' implementation of 'IDirectFBFont'.
(!) [18374: 0.000] --> Caught signal 11 (at 0xffffffff, invalid address) <--
(!!!) *** WARNING [still objects in 'Layer Region Pool'] *** [object.c:241 in fusion_object_pool_destroy()]
(!!!) *** WARNING [still objects in 'Layer Context Pool'] *** [object.c:241 in fusion_object_pool_destroy()]
(!!!) *** WARNING [still objects in 'Surface Pool'] *** [object.c:241 in fusion_object_pool_destroy()]
Aborted
[root@kindle development]#
|