zoukankan      html  css  js  c++  java
  • 嵌入式GUI FTK介绍(10)编译选项

    转载时请注明出处和作者联系方式
    文章出处:http://www.limodev.cn/blog
    作者联系方式:李先静 <xianjimli at hotmail dot 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和其它平台。

  • 相关阅读:
    web api 设置允许跨域,并设置预检请求时间
    T4模板
    DDD模式
    Vue watch用法
    第三章--第五节:集合
    简单的Python API爬虫与数据分析教程--目录
    第三章--第四节:字典
    第三章--第三节(补充):列表排序
    汇总张小龙在知乎上的问答
    第三章--第三节:列表
  • 原文地址:https://www.cnblogs.com/zhangyunlin/p/6167419.html
Copyright © 2011-2022 走看看