alayi

程序人生用音乐来点缀

博客园 首页 联系 订阅 管理

Download the directfb from www.directfb.org
  • Mandatory tarballs:
    • DirectFB-x.x.x.tar.gz
    • linux-fusion-x.x.tar.gz
  • Optional tarballs:
    • DirectFBGL-x.x.x.tar.gz
    • FusionSound-x.x.x.tar.gz

Build Fusion DirectFB driver

To build the fusion device driver the source for the Linux kernel your system is running must be installed. If this is the case then continue with the following sequence of actions. If not then skip this chapter and continue with building DirectFB itself.

Unpack Linux Fusion driver (linux-fusion-1.1.tar.gz):


Unpack DirectFB-x.x.x.tar.gz:
$> tar -xzvf DirectFB-x.x.x.tar.gz -C directory_where_to_unpack
Build the DirectFB's fusion driver:
$> cd /linux-fusion-x.x/
$> make
#> make install
Copy fusion.h into /usr/include/linux directory:

#> cp linux/include/linux/fusion.h /usr/include/linux
Build DirectFB
Unpack DirectFB-x.x.x.tar.gz:
#> tar -xzvf DirectFB-x.x.x.tar.gz -C directory_where_to_unpack
Configure DirectFB:
#> cd /DirectFB-x.x.x/
If the Fusion DirectFB driver has been compiled and installed against your running version of the Linux kernel, then the DirectFB configure-line looks like this: (If not the --enable-multi can be omitted.)
#> ./configure --enable-multi
#> make
#> make install
add the path (on my system)
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
export LD_LIBRARY_PATH
=/usr/local/lib

don't forget to insmod
insmod fusion.ko









posted on 2007-11-02 10:13  alayi  阅读(524)  评论(0)    收藏  举报