Establish directfb in Phoneme

Source: Internet
Author: User

Establish directfb in Phoneme

1. Introduction
Directfb is an Open Source graphics hardware abstraction library. Directfb is a thin software layer that can directly map graphical calls to hardware-accelerated feature. However, directfb also provides software simulation.

This article describes how to build the directfb used by phoneme advanced.

In addition to the core directfb library, two additional libraries are required:
1) Linux Fusion
Is a Linux kernel module that provides thread abstraction and allows multiple directfb applications to run in parallel.
2) Simple DirectMedia Layer (SDL)
Is an optional multi-media library, making it easier to run and debug directfb-based applications.
SDL allows the directfb application to appear in the same virtual console. In this way, no screen switch is required when the application is running. In addition, you do not need the root permission to run the directfb program through SDL.

2. Create and install linux Fusion
Gcc/g ++ 4. x compiler and Linux 2.6.x kernel are required.

1. Download linux-fusion-3.2.6.tar.gz and decompress
2) Go To The linux-fusion-3.2.6 directory
3) Establish Linux Fusion
Make
4) install linux Fusion
Make install
5) load the Linux fusion device module
Modprobe Fusion
Note: If the CVM prompts that the/dev/fusion0 device is not found, run modprobe fusion again.
6) change the permission of the/dev/fusion * device module.
Chmod 666/dev/fusion *

3. Install SDL
Directfb development requires the SDL runtime and Development Library.
1) install the following packages
Libsdl1.2debian
Libsdl1.2debian-ALSA
Libsdl1.2-Dev
2) Add the following options to/etc/directfbrc:
System = SDL
Force-Modify wed
Mode = 240*320
If the file does not exist, create it.

4. Create and install directfb
1. Download directfb-1.3.0.tar.gz and decompress it.
2) enter the directory of directfb
3) Run configure with the following options:
. /Configure -- disable-x11 -- enable-VNC -- disable-OSX -- enable-fbdev -- enable-SDL -- enable-Multi -- enable-FreeType -- disable-video4linux -- without-tools -- disable-Voodoo -- disable -sysfb -- With-gfxdrivers = none -- With-inputdrivers = keyboard, linuxinput
By default, directfb is installed in the/usr/local directory. To change the directory, use the -- prefix option.
4) Establish directfb
Make
5) install directfb
Make install

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.