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:$> make
#> make install
#> cp linux/include/linux/fusion.h /usr/include/linux
Build DirectFBUnpack 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)#> make
#> make install
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
export LD_LIBRARY_PATH=/usr/local/lib
export LD_LIBRARY_PATH=/usr/local/lib
don't forget to insmod
insmod fusion.ko
浙公网安备 33010602011771号