嵌入式GUI FTK介绍(10)-编译选项
942 views| 2010-01-24| 李先静| FTK(嵌入式GUI)| | 发表评论转载时请注明出处和作者联系方式
文章出处:http://www.limodev.cn/blog
作者联系方式:李先静 <xianjimli@gmail.com>
作为嵌入式GUI, FTK必须要能适应不同的环境,在Linux下,这可以通过编译选项来配置。
o 支持电阻式触摸屏 –enable-tslib
build with tslib support, tslib is a library to handle touchscreen event,
if you has a resistive touchscreen, you should enable this option.
电容式触摸屏不需要tslib,直接从/dev/input/eventX里读取即可,不需要打开该选项。
o 选择字体引擎 –with-fontengine
there are two options: default and freetype, generally freetype is better
choise, but if you don’t want to depend on freetype, or freetype is
unavailable, use default instead.
FTK可以使用freetype,也可以使用缺省字体引擎。freetype可以用来支持多种格式的字体,特别是可以自由缩放的矢量字体,灵活性更高。而缺省字体引擎使用256级灰度的点阵字体,不能自由绽放,但它的好处在于不依赖于第三方软件包。另外,FTK提供一个字体转换工具,把适量字体转换成点阵字体。
o 选择后端 –with-backend
backend means how to display bitmap on the screen and how to get the input
device events. there are three options now:
linux-x11:WxH With this option, FTK will run on X11 for emulation. W and H is
the width and height of the emulator. For exmaple, with the following value,
it will create a emulation window with 320 pixels width and 480 pixels height.
–with-backend=linux-x11:320×480
linux-native With this option, FTK will run on linux framebuffer, this is
default value.
linux-vlcd With this option, FTK will run on virtual framebuffer. I wrote a
emulator for FTK base on memfb and uinput, with a vnc server and vncviever,
FTK can run on VNC.
linux-dfb With this option, FTK will run on DirectFB, FTK does not use
DirectFB Windows system, just use it to abstract display and input device, so
you can utilize DirectFB hardware acceleration.
backend决定了FTK如何显示位图,以及如何获取输入事件。通过backend的抽象,FTK可以运行在多个平台上,比如X11、DirectFB、framebuffer、Windows和其它平台。
FTK Share
Tags
Recent Posts
Most Viewed
- 系统程序员成长计划写作提纲 - 19,646 views
- Android IPC机制详解 - 6,350 views
- 系统程序员成长计划-走近专业程序员(上) - 6,262 views
- 系统程序员成长计划-写得又快又好的秘诀(一) - 5,419 views
- 系统程序员成长计划-背景知识 - 5,075 views
- i++循环与i–循环的执行效率 - 4,738 views
- 系统程序员成长计划-Write once, run anywhere(WORA)(上) - 4,708 views
- 系统程序员成长计划-走近专业程序员(下) - 4,262 views
- Linux下的调试工具 - 4,033 views
- Advanced Linux Sound Architecture (ALSA) 研究笔记 - 4,032 views
- 系统程序员成长计划-序 - 3,998 views
- 系统程序员成长计划-写得又快又好的秘诀(三) - 3,937 views
- 中国人与自由软件文化研究(搞笑版) - 3,743 views
- Android中的MessageQueue,Handler,Looper和Thread - 3,715 views
- 答复:我不会OOO,仍然可以XXX - 3,665 views
Categories
- Android (28)
- Broncho-A1-Hack (6)
- DirectFB (7)
- FTK(嵌入式GUI) (24)
- GTK+ (29)
- KVM hack notes (8)
- Linux Mobile (65)
- Management (5)
- Mozilla (9)
- Open Source (5)
- Programming (34)
- Tools (9)
- Uncategorized (23)
- Win32 (3)
- X Windows (31)
- 沉思录 (29)
- 系统程序员成长计划 (67)
Blogroll
gallery
Linux guru
推荐网站
Recent Comments
- Dig on 嵌入式GUI FTK设计与实现-事件源(FtkSource)
- 用心生活每一天 » GNU gprof: linux profiling tools 使用 on gcc profiling的工作原理
- JavaScript for: i++ vs i–-传播、沟通、分享-一直“有你” on i++循环与i–循环的执行效率
- Frankly Law on 嵌入式GUI FTK介绍(11)-交叉编译
- tracing on Linux下的调试工具
- ndljsn on FTK移植指南(初稿)
- tracing on 爬塘朗山
- tracing on GTK+(基于DirectFB)的字体处理
- Kely on 系统程序员成长计划写作提纲
- tracing on 爬塘朗山



January 24th, 2010