DIrectFB学习资料.docx
- 文档编号:2783773
- 上传时间:2022-11-15
- 格式:DOCX
- 页数:32
- 大小:38.66KB
DIrectFB学习资料.docx
《DIrectFB学习资料.docx》由会员分享,可在线阅读,更多相关《DIrectFB学习资料.docx(32页珍藏版)》请在冰豆网上搜索。
DIrectFB学习资料
本文介绍了怎样生成一个最小(或接近最小)的DirectFB,以及相关的测试用例的安装和测试,对编译中的参数MMX,SSE,SDL,VNC的概念给出了较为详细的介绍
实验平台:
FC5(FedoraCore5)
DirectFB-0.9.24(目前最新版本为0.9.25,为了开发的稳定性,选择0.9.24版本)
下载源码:
下载DirectFB-0.9.24.tar.gz源码开发包,下载地址为:
http:
//www.directfb.org/index.php?
path=Main%2FDownloads&page=4;
下载测试用例DirectFB-examples-0.9.23.tar.gz:
源码包,下载地址为:
http:
//www.directfb.org/index.php?
path=Main%2FDownloads&page=4;
当然,也可以下载最新的安装和测试版本。
安装DirectFB-0.9.24
本例中将会在/usr目录下建立软件安装目录和测试用例目录,首先建立这两个目录
$mkdir/usr/miniDirectFB
$mkdir/usr/miniExample
假设DirectFB-0.9.24.tar.gz下载到本地机器的位置为home目录,解压并进入该包
$tarxvfDirectFB-0.9.24.tar.gz
$cdDirectFB-0.9.24
运行配置脚本,生成makefile文件
$./configure--prefix=/usr/miniDirectFB--enable-mmx=no--enable-sse=no--enable-sdl=no--enable-gif=no--enable-jpeg=no--with-gfxdrivers='none'--with-inputdrivers='none'--without-tools--disable-fast-install--disable-libtool-lock--enable-png=no--enable-video4linux=no--disable-debug--disable-trace--enable-freetype=no
注意,上面的参数和configure命令在同一行,各参数的含义详见后面附录部分。
编译完成后的输出结果参照后面的附录。
$makeclean;make
$makeinstall
修改/etc/ld.so.conf文件,加入你所安装的DirectFB库文件的位置,此例为
/usr/miniDirectFB/lib;
$vi/etc/ld.so.conf
添加usr/miniDirectFB/lib
保存退出
$ldconfig
Ldconfig命令使得你刚加入的参数起作用,详细可以参考相关资料。
安装测试用例
假设DirectFB-examples-0.9.23.tar.gz下载到本地机器的位置为home目录,解压并进入该包
$tarxvf DirectFB-examples-0.9.23.tar.gz
$cdDirectFB-examples-0.9.23
设置pkgconfig的目录(参考你的DirectFB安装目录)
$exportPKG_CONFIG_PATH=/usr/miniDirectFB/lib/pkgconfig
编译安装测试用例:
$./configure–prefix=/usr/miniExample
$makeclean;make
$makeinstall
安装完毕
测试
切换到一个终端下,设置相应的环境变量:
$export LD_LIBRARY_PATH=/usr/miniDirectFB/lib
运行测试用例
$df_bltload
$df_cpuload
$df_dioload
注意,这里运行的每一个例子,你都无法通过鼠标键盘正常退出,因为,我们生成的是一个最小(或者接近最小)的DirectFB,在configure中我们去掉了对输入设备的支持;当然,其它的例子我们基本上都不能运行,因为他们都需要输入或者gfxdrivers的支持,我们也去掉了,不过,看起来很简洁,可以更方便我们对DirectFB的认识。
安装的测试用例可以在你安装的目录里找到,本例中为:
/usr/miniExample/bin
附录1编译完成后,configure的输出结果
Buildoptions:
Version 0.9.24
Installprefix /usr/miniDirectFB
Buildsharedlibs yes
Buildstaticlibs no
Moduledirectory ${exec_prefix}/lib/directfb-0.9.24
CPPFLAGS -D_REENTRANT
CFLAGS -Wall-O3-ffast-math-pipe -D_GNU_SOURCE -Werror-implicit-function-declaration
LDFLAGS
LIBS -ldl-lpthread
Miscoptions:
MultiApplicationCore no
Voodoo(networksupport) no
Debugmode no
Tracesupport no
MMXsupport no
SSEsupport no
zlibcompression no
sysfssupport no
BuildingCoreSystems:
LinuxFBDevsupport yes
X11support no
OSXsupport no
SDLsupport no
VNCsupport no
BuildingWMModules:
Default yes
UniQuE no
BuildingTools no
BuildingImageProviders:
GIF no
JPEG no
MPEG2I-Frame yes
PNG no
BuildingVideoProviders:
Video4Linux no(v2:
no)
BuildingFontimplementations:
FreeType2
Defaultfont yes
BuildingGraphicsDrivers:
3DfxVoodoo no
ATIMach64 no
ATIRadeon no
ATIRage128 no
ATIR200 no
Inteli810 no
Inteli830 no
Matrox no
NeoMagic no
NSCGeode no
nVidia no
S3Savage no
SiS315 no
TVIACyberPro no
VIACLE266 no
VIAUniChrome no
BuildingInputDrivers:
DBox2Remote no
DreamBoxRemote no
ELOTouchscreen no
H3600Touchscreen no
Joystick no
Keyboard no
LinuxInput no
LiRC no
MuTouchtouchscreen no
PS/2Mouse no
SerialMouse no
SonyPIJogdial no
ucb1x00Touchscreen no
WM97xxTouchscreen no
附录2安装后生成的共享库列表为
libdirect-0.9.so.24.0.0
libdirectfb-0.9.so.24.0.0
libfusion-0.9.so.24
libdirectfbwm_default.so
libdirectfb_fbdev.so
libidirectfbimageprovider_mpeg2.so
libidirectfbfont_default.so
libidirectfbvideoprovider_v4l.so
附录三使用rpm命令参看DirectFB的依赖关系
rpm-qpRdirectfb-0.9.24-8.rhfc5.at.i386.rpm
warning:
directfb-0.9.24-8.rhfc5.at.i386.rpm:
HeaderV3DSAsignature:
NOKEY,keyID66534c2b
libSDL-1.2.so.0
libc.so.6
libc.so.6(GLIBC_2.0)
libc.so.6(GLIBC_2.1)
libc.so.6(GLIBC_2.1.3)
libc.so.6(GLIBC_2.3)
libc.so.6(GLIBC_2.3.4)
libc.so.6(GLIBC_2.4)
libdirect-0.9.so.24
libdirectfb-0.9.so.24
libdl.so.2
libdl.so.2(GLIBC_2.1)
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- DIrectFB 学习 资料