Coder Social home page Coder Social logo

awtk-linux-fb's Introduction

AWTK针对arm-linux平台的移植。

AWTK是为嵌入式系统开发的GUI引擎库。

awtk-linux-fb是AWTK在arm-linux上的移植。

本项目以ZLG周立功 linux开发套件 AWork平台iMX287A 入门级ARM9开发板 为载体移植,其它开发板可能要做些修改,有问题请请创建issue。

使用方法

  • 1.获取源码
git clone https://github.com/zlgopen/awtk-linux-fb.git
cd awtk-linux-fb
git clone https://github.com/zlgopen/awtk.git

  • 2.编辑SConstruct设置工具链的路径
TSLIB_LIB_DIR='/opt/28x/tslib/lib'
TSLIB_INC_DIR='/opt/28x/tslib/include'
TOOLS_PREFIX='/opt/28x/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-linux-'
  • 3.编辑awtk-port/main_loop_linux.c修改输入设备的文件名
#define FB_DEVICE_FILENAME "/dev/fb0"
#define TS_DEVICE_FILENAME "/dev/input/event0"
#define KB_DEVICE_FILENAME "/dev/input/event1"
  • 4.编译(请先安装scons)
scons
  • 5.生成发布包
./release.sh
  • 6.运行

把release.zip上传到开发板,并解压,然后运行:

./release/bin/demoui

其它

编译自己的项目

  • 1.项目的目录结构与awtk-hello保持一致。

  • 2.项目放在当前目录下。

  • 3.修改SConstruct中的APP_NAME。

APP_NAME = 'awtk-hello'
  • 4.修改release.sh中的APP_ROOT。
APP_ROOT='awtk-hello'

后续工作与前面编译demos一致。

awtk-linux-fb's People

Contributors

xianjimli avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.