zlgopen / awtk-linux-fb

awtk port for linux framebuffer
110 stars 49 forks source link

树莓派 3B 上编译后运行直接白屏报错! #91

Closed GitYonglin closed 2 years ago

GitYonglin commented 2 years ago

树莓派的系统版本:2022-04-04-raspios-bullseye-armhf-lite 没有启动tslib $ sudo ./bin/demoui try /home/pi/AWTK/awtk-linux-fb try set app_root:/home/pi/AWTK/awtk-linux-fb/res try set app_root:/home/pi/AWTK/awtk-linux-fb/demos try /home/pi/AWTK/awtk-linux-fb/bin try set app_root:/home/pi/AWTK/awtk-linux-fb/res try set app_root:/home/pi/AWTK/awtk-linux-fb/demos try /home/pi/AWTK try set app_root:/home/pi/AWTK/res try set app_root:/home/pi/AWTK/demos app_root= Not found valid assets folder! fb_info_t: /dev/fb0 xres=1280 yres=800 xres_virtual=1280 yres_virtual=800 bits_per_pixel=16 line_length=2560 fb_info_t: red(11 5) green(5 6) blue(0 5) xpanstep=1 ywrapstep=0 fb_size=2048000 fb_total_size=2048000 fb_nr=1 smem_len=2048000 fb_open clear fb_open ok =========fb_number=1 ratio=1.000000 1280 800 ratio=1.000000 1280 800 input_run:312: open keyboard successful, fd=5, filename=/dev/input/event1 assets_manager_preload:809 condition(info != NULL) failed! Build at: Jun 6 2022 16:51:51 input_run:256: open mouse successful, fd=6, filename=/dev/input/mouse0 !!!Asset [name=uiex/sysbar_landscape type=ui] not exist!!! ui_loader_load_widget_with_parent:46 condition(ui != NULL) failed! !!!Asset [name=uiex/menu_landscape type=ui] not exist!!! ui_loader_load_widget_with_parent:46 condition(ui != NULL) failed! !!!Asset [name=uiex/preload type=ui] not exist!!! ui_loader_load_widget_with_parent:46 condition(ui != NULL) failed! widget_add_timer:3227 condition(widget != NULL && on_timer != NULL) failed!

xianjimli commented 2 years ago

!!!Asset [name=uiex/sysbar_landscape type=ui] not exist!!!

应该是资源没有放进去

GitYonglin commented 2 years ago

的确是资源文件没有打包 安装下面这个教程进行单个项目的编译-打包-解压是可以正确的运行 https://awtk.zlg.cn/docs/AWTK/v1.7/AWTK%20Guide/11.%E7%AC%AC%E5%8D%81%E4%B8%80%E7%AB%A0%20%E6%8A%8A%E5%BA%94%E7%94%A8%E9%83%A8%E7%BD%B2%E5%88%B0%E5%B5%8C%E5%85%A5%E5%BC%8F%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83.html#_11-1-%E6%8A%8A%E5%BA%94%E7%94%A8%E9%83%A8%E7%BD%B2%E5%88%B0%E5%B5%8C%E5%85%A5%E5%BC%8Flinux