您尚未登录。

楼主 #1 2020-07-02 12:08:55

huy666
会员
注册时间: 2018-02-24
已发帖子: 26
积分: 11

如何windows下交叉编译适用于beaglebone black的awtk?

各位好!
我用windows编译、运行awtk正常。现在想在beaglebone black的framebuffer上运行awtk。
windows下安装了交叉编译工具
https://gnutoolchains.com/beaglebone/
arm-linux-gnueabihf-gcc在C:\SysGCC\beaglebone\bin目录下。
这个目录加到环境变量path里,命令行可以直接运行arm-linux-gnueabihf-gcc。

awtk_config.py已改为
#for prebuild tslib
TSLIB_LIB_DIR=''
TSLIB_INC_DIR=''
TOOLS_PREFIX='arm-linux-gnueabihf-'

编译出错:
G:\gui\awtk-linux-fb>scons
scons: Reading SConscript files ...
KeyError: 'TOOLS_NAME':
  File "G:\gui\awtk-linux-fb\SConstruct", line 61:
    SConscript(SConscriptFiles)
  File "c:\python\python37_6\lib\site-packages\scons\SCons\Script\SConscript.py", line 660:
    return method(*args, **kw)
  File "c:\python\python37_6\lib\site-packages\scons\SCons\Script\SConscript.py", line 597:
    return _SConscript(self.fs, *files, **subst_kw)
  File "c:\python\python37_6\lib\site-packages\scons\SCons\Scri

请教如何才能正确在windows下编译?

离线

楼主 #2 2020-07-02 17:50:09

huy666
会员
注册时间: 2018-02-24
已发帖子: 26
积分: 11

Re: 如何windows下交叉编译适用于beaglebone black的awtk?

直接在bbb上编译通过
运行出错
app_root_is_valid:43 app_root != NULL
path_is_abs:202 path != NULL && *path
try /home/ubuntu/bbtest1/awtk/awtk-linux-fb/build/bin
try /home/ubuntu/bbtest1/awtk/awtk-linux-fb/build/bin
app_root=
Not found valid assets folder!
fb_info_t: /dev/fb0
xres=800 yres=600
xres_virtual=800 yres_virtual=600
bits_per_pixel=16 line_length=1600
fb_info_t: red(11 5) green(5 6) blue(0 5)
xpanstep=1 ywrapstep=0
fb_size=960000 fb_total_size=960000 fb_nr=1 smem_len=960000
fb_open clear
fb_open ok
ratio=1.000000 800 600
assets_manager_preload:643 info != NULL
assets_manager_preload:643 info != NULL
Build at: Jul  2 2020 16:48:45
!!!Asset [name=system_bar type=ui] not exist!!!
ui_loader_load_widget:38 ui != NULL
!!!Asset [name=basic type=ui] not exist!!!
ui_loader_load_widget:38 ui != NULL
widget_set_prop:1536 widget != NULL && name != NULL && v != NULL
widget_add_timer:2723 widget != NULL && on_timer != NULL
widget_lookup_all:870 widget != NULL && name != NULL
widget_on_with_tag:1066 widget != NULL && on_event != NULL
widget_lookup_all:870 widget != NULL && name != NULL
widget_on_with_tag:1066 widget != NULL && on_event != NULL
widget_lookup_all:870 widget != NULL && name != NULL
widget_on_with_tag:1066 widget != NULL && on_event != NULL
widget_lookup_all:870 widget != NULL && name != NULL
widget_on_with_tag:1066 widget != NULL && on_event != NULL
theme_find_style:84 t != NULL && t->data != NULL
^Cassets_manager_unref:621 info != NULL
suggest_words_destroy:135 suggest_words != NULL
assets_manager_unref:621 info != NULL
timer_manager_remove:96 timer_manager != NULL
application_exit
tk_thread_destroy:362 thread != NULL
tk_thread_destroy:362 thread != NULL
tk_thread_destroy:362 thread != NULL
fb_close
fb_close ok
on_app_exit

离线

#3 2020-07-03 11:05:16

wangjun110
会员
注册时间: 2020-07-03
已发帖子: 11
积分: 7

Re: 如何windows下交叉编译适用于beaglebone black的awtk?

这个可以有啊。

离线

楼主 #4 2020-07-03 12:00:23

huy666
会员
注册时间: 2018-02-24
已发帖子: 26
积分: 11

Re: 如何windows下交叉编译适用于beaglebone black的awtk?

fb_test可以正常运行。

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn