Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

移植到linux系统下,调用update_res.py脚本报错。 #76

Open
Ttwus opened this issue Sep 8, 2021 · 8 comments
Open

移植到linux系统下,调用update_res.py脚本报错。 #76

Ttwus opened this issue Sep 8, 2021 · 8 comments

Comments

@Ttwus
Copy link

Ttwus commented Sep 8, 2021

移植到linux系统下,调用update_res.py脚本报错。已调整过“AWTK_ROOT”,依旧提示No module named update_res_app。
如何在移植后的环境下调用update_res.py脚本生成资源?

@xianjimli
Copy link
Member

把操作步骤和相应的log贴上来吧。

@Ttwus
Copy link
Author

Ttwus commented Sep 9, 2021

移植的步骤是按照github上的操作的,其中不同点就是把awtk文件名改成了awtk-linux。其他的就是对应的修改了。
update_res.py脚本用的的是demo默认的没有修改。
log:
AWTK_ROOT: /home/zyb/AK37E_SDK_V1.02/application/gui/awtk
AWTK_SCRIPTS_ROOT: /home/zyb/AK37E_SDK_V1.02/application/gui/awtk/scripts
Traceback (most recent call last):
File "./scripts/update_res.py", line 41, in
update_res(ARGUMENTS, is_new_usage)
File "./scripts/update_res.py", line 27, in update_res
import update_res_app as updater
ImportError: No module named update_res_app

@xianjimli
Copy link
Member

不要改名

@Ttwus
Copy link
Author

Ttwus commented Sep 9, 2021

如果改名了,是不是在demo的project.json文件中应修改"awtkRoot"的位置?

@Ttwus
Copy link
Author

Ttwus commented Sep 9, 2021

"awtkRoot": "${DesignerPath}/SDK/awtk" 改为

@Ttwus
Copy link
Author

Ttwus commented Sep 9, 2021

"awtkRoot": "${DesignerPath}/SDK/awtk-linux"

@xianjimli
Copy link
Member

最好不要改,先跑起来了再研究。

@fatalfeel
Copy link

fatalfeel commented Sep 16, 2022

Here is the process of porting to embeeded linux on arm64 & demo for your reference
AWTK is easy to use. Thanks to Master Lee for sharing more than ten years of experience
I am using python3.7.13 in my host x64 pc in ubuntu 16.04
https://fatalfeel.blogspot.com/2013/12/awtk-framebuffer-gui.html
https://www.mediafire.com/file/6574qtf1hw92vey/awtk.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants