代码: https://github.com/zlgopen/awtk-linux-fb
获取源码
git clone https://github.com/zlgopen/awtk.git
git clone https://github.com/zlgopen/awtk-examples.git
git clone https://github.com/zlgopen/awtk-linux-fb.git
cd awtk-linux-fb
也编辑了 awtk_config.py 设置工具链的路径
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-'
界面没有任何显示,控制台一堆错误:
# /usr/bin/demo_animator
app_root_is_valid:43 app_root != NULL
try /root
try /usr/bin
app_root=
Not found valid assets folder!
!!!Asset [name=en_US type=strings] not exist!!!
!!!Asset [name=en type=strings] not exist!!!
fb_info_t: /dev/fb0
fb_info_t: xres=800 yres=480 bits_per_pixel=32 mem_size=1536000
fb_info_t: red(16 8) green(8 8) blue(0 8)
line_length=3200 mem_size=1536000 smem_len=1536000
xres_virtual =800 yres_virtual=480 xpanstep=0 ywrapstep=0
ratio=1.000000 800 480
Build at: Oct 15 2019 09:58:05
assets_manager_preload:585 info != NULL
assets_manager_preload:585 info != NULL
theme_find_style:89 t != NULL && t->data != NULL
!!!Asset [name=cursor type=image] not exist!!!
window_manager_default_set_cursor:993 image_manager_get_bitmap(image_manager(), cursor, &bitmap) == RET_OK
theme_find_style:89 t != NULL && t->data != NULL
theme_find_style:89 t != NULL && t->data != NULL
theme_find_style:89 t != NULL && t->data != NULL
theme_find_style:89 t != NULL && t->data != NULL
theme_find_style:89 t != NULL && t->data != NULL
theme_find_style:89 t != NULL && t->data != NULL
theme_find_style:89 t != NULL && t->data != NULL
!!!Asset [name=earth type=image] not exist!!!
image_on_paint_self:41 widget_load_image(widget, image_base->image, &bitmap) == RET_OK
theme_find_style:89 t != NULL && t->data != NULL
!!!Asset [name=earth type=image] not exist!!!
image_on_paint_self:41 widget_load_image(widget, image_base->image, &bitmap) == RET_OK
theme_find_style:89 t != NULL && t->data != NULL
!!!Asset [name=bricks type=image] not exist!!!
image_on_paint_self:41 widget_load_image(widget, image_base->image, &bitmap) == RET_OK
theme_find_style:89 t != NULL && t->data != NULL
!!!Asset [name=earth type=image] not exist!!!
image_on_paint_self:41 widget_load_image(widget, image_base->image, &bitmap) == RET_OK
theme_find_style:89 t != NULL && t->data != NULL
!!!Asset [name=earth type=image] not exist!!!
image_on_paint_self:41 widget_load_image(widget, image_base->image, &bitmap) == RET_OK
theme_find_style:89 t != NULL && t->data != NULL
!!!Asset [name=earth type=image] not exist!!!
image_on_paint_self:41 widget_load_image(widget, image_base->image, &bitmap) == RET_OK
theme_find_style:89 t != NULL && t->data != NULL
!!!Asset [name=earth type=image] not exist!!!
image_on_paint_self:41 widget_load_image(widget, image_base->image, &bitmap) == RET_OK
!!!Asset [name=cursor type=image] not exist!!!
window_manager_paint_cursor:529 image_manager_get_bitmap(image_manager(), wm->cursor, &bitmap) == RET_OK
input_dispatch_one_event:71 mouse read failed(ret=-1, errno=0, fd=-1, filename=/dev/input/mice)
Print mouse: : Success
input_dispatch_one_event:150 keyboard read failed(ret=-1, errno=0)
input_dispatch_one_event:154 keyboard read failed(ret=-1, errno=0, fd=-1, filename=/dev/input/event1)
Print keyboard: : Success
tslib_dispatch_one_event:61 tslib read failed(ret=-1, errno=0, filename=/dev/input/event0)
Print tslib: : Success
!!!Asset [name=earth type=image] not exist!!!
image_on_paint_self:41 widget_load_image(widget, image_base->image, &bitmap) == RET_OK
!!!Asset [name=earth type=image] not exist!!!
image_on_paint_self:41 widget_load_image(widget, image_base->image, &bitmap) == RET_OK
!!!Asset [name=bricks type=image] not exist!!!
image_on_paint_self:41 widget_load_image(widget, image_base->image, &bitmap) == RET_OK
!!!Asset [name=earth type=image] not exist!!!
image_on_paint_self:41 widget_load_image(widget, image_base->image, &bitmap) == RET_OK
!!!Asset [name=earth type=image] not exist!!!
image_on_paint_self:41 widget_load_image(widget, image_base->image, &bitmap) == RET_OK
离线
对于内置的 demoui 例子
先执行: ./release.sh
然后生成: release.tar.gz
最后解压到V3s 开发板, 现在貌似正常了。
离线