View Single Post
Old 02-05-2012, 05:33 PM   #1
Pipeliners
Member
Pipeliners began at the beginning.
 
Posts: 10
Karma: 36
Join Date: Dec 2011
Device: Kindle 3G WiFi
[Unable to dlopen] Cannot run DirectFB tutorial app

Hi. I tried to follow instructions at https://www.mobileread.com/forums/sho...d.php?t=144212 to build DirectFB tutorial app.

I set up scratchbox2 env with
Code:
 sb2-init -c /opt/qemu/bin/qemu-arm arm6 /stuff/sourcery/arm-2011.03/bin/arm-none-linux-gnueabi-gcc
with crosscompiler from CodeSourcery mostly by http://felipec.wordpress.com/2009/06...s-compilation/ instruction.

Then I copied Kindle's /usr/lib/ contents to /stuff/sourcery/arm-2011.03/arm-none-linux-gnueabi/usr/lib, successfully built the example and tried to run on Kindle:
Code:
   ~~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.2.0 |~~~~~~~~~~~~~~~~~~~~~~~~~~
        (c) 2001-2008  The world wide DirectFB Open Source Community
        (c) 2000-2004  Convergence (integrated media) GmbH
      ----------------------------------------------------------------

(*) DirectFB/Core: Single Application Core. (2011-08-31 03:34) 
(!) Direct/Modules: Unable to dlopen `/usr/lib/directfb-1.2-0/systems/libdirectfb_devmem.so'!
    --> /usr/lib/directfb-1.2-0/systems/libdirectfb_devmem.so: undefined symbol: system_set_mode
(*) Direct/Thread: Started 'Linux Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: mxckpd (1) 0.1 (directfb.org)
(*) Direct/Thread: Started 'Linux Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: fiveway (2) 0.1 (directfb.org)
(*) Direct/Thread: Started 'Linux Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: volume (3) 0.1 (directfb.org)
(*) DirectFB/Graphics: Generic Software Rasterizer 0.6 (directfb.org)
(*) DirectFB/Core/WM: Default 0.3 (directfb.org)
(*) FBDev/Mode: Setting 600x706  videomode x=600, y=706
(*) FBDev/Mode: Setting 600x706  videomode x=800, y=506
(*) FBDev/Mode: Setting 600x706  videomode x=800, y=600
(*) FBDev/Mode: Setting 600x706  videomode x=600, y=706
(*) FBDev/Mode: Setting 600x706  videomode x=800, y=506
(*) FBDev/Mode: Setting 600x706  videomode x=800, y=600
(*) FBDev/Mode: Setting 600x706  videomode x=600, y=706
(*) FBDev/Mode: Setting 600x706  videomode x=800, y=506
(*) FBDev/Mode: Setting 600x706  videomode x=800, y=600
(*) FBDev/Mode: Setting 600x706  videomode x=600, y=706
(*) FBDev/Mode: Setting 600x706  videomode x=800, y=506
(*) FBDev/Mode: Setting 600x706  videomode x=800, y=600
(*) FBDev/Mode: Setting 600x706  videomode x=600, y=706
(*) FBDev/Mode: Setting 600x706  videomode x=800, y=506
(*) FBDev/Mode: Setting 600x706  videomode x=800, y=600
(*) FBDev/Surface: Allocated 600x706 8 bit LUT8 buffer (index 0) at offset 0 and pitch 800.
(!) [30175:    0.000] --> Caught signal 11 (at 0x40391000, invalid permissions) <--
 (!!!)  *** 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()]
Aborted
  • Is the dlopen failure fatal? libdirectfb_devmem.so
    Code:
     
    kindle # ls -a /usr/lib/directfb-1.2-0/systems/libdirectfb_devmem.so -l
    -rwxr-xr-x    1 root     root        16156 Apr 17  2011 /usr/lib/directfb-1.2-0/systems/libdirectfb_devmem.so
    
    sb2 # readelf usr/lib/directfb-1.2-0/systems/libdirectfb_devmem.so --dyn-syms  | grep set
        55: 00000000     0 NOTYPE  GLOBAL DEFAULT  UND system_set_mode
  • If not, why could be program aborted before anything drawn?
My device is Kindle 3.3 3G+WiFi.
Pipeliners is offline   Reply With Quote