Hi all,

I am trying to cross-compile DirectFB 1.1.0 on TI's DaVinci platform
such that it can be statically linked into my application.

I've used the following configure arguments

./configure --enable-static --enable-fbdev --with-inputdrivers=none
--with-gfxdrivers=none --disable-sysfs --disable-multi --disable-sdl
--disable-x11 --disable-png --disable-jpeg --disable-freetype
--disable-freetype2 --host=arm-linux --target=arm-linux
--prefix=/home/user/inst_dfb/

After configuring, 'make' and 'make install' run without any obvious errors.

I am now trying to run the simple directfb sample
(http://directfb.org/docs/DirectFB_Tutorials/simple.html) that draws a
straight line on screen by compiling it with the following arguments:

arm_v5t_le-gcc testdfb.c -I/home/user/inst_dfb/include/directfb/
-static /home/user/inst_dfb//lib/directfb-1.1-0/wm/libdirectfbwm_default.o
/home/user/inst_dfb//lib/directfb-1.1-0/systems/libdirectfb_fbdev.o
-L/home/user/inst_dfb//lib -ldirectfb -lfusion -ldirect -lpthread

The DirectFBCreate API call fails and the device hangs. I get this
console output:
----------------

     =======================|  DirectFB 1.1.0  |=======================
          (c) 2001-2007  The DirectFB Organization (directfb.org)
          (c) 2000-2004  Convergence (integrated media) GmbH
        ------------------------------------------------------------

(*) DirectFB/Core: Single Application Core. (2007-12-04 13:18)
Division by zero in kernel.
Unable to handle kernel NULL pointer dereference at virtual address 00000008
pgd = c0004000
[00000008] *pgd=00000000
Internal error: Oops: 17 [#1]
Modules linked in:
CPU: 0
PC is at fb_videomode_to_var+0xc/0x68
LR is at fbcon_switch+0x150/0x580

----------------

And it seems to print a registry and stack trace, and then the device hangs.

Any idea what might be going wrong? Have I given wrong arguments
to./configure, or while compiling the source?

---
Srikanth Nori

_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to