您尚未登录。

楼主 # 2021-07-06 23:04:25

cube
会员
注册时间: 2021-03-11
已发帖子: 288
积分: 202.5

XUI移植基本完成 https://gitee.com/891085309/xui , enjoy it! (转)

XUI移植基本完成 https://gitee.com/891085309/xui , enjoy it!

离线

#1 2021-07-07 09:04:19

xboot
会员
注册时间: 2019-10-15
已发帖子: 675
积分: 421

Re: XUI移植基本完成 https://gitee.com/891085309/xui , enjoy it! (转)

有个头依赖问题,下面是临时的修复方式

diff --git a/xui/xui.c b/xui/xui.c
index 6718af0..0e4ebcb 100644
--- a/xui/xui.c
+++ b/xui/xui.c
@@ -31,7 +31,8 @@
 #include <xui/xui.h>
 #include <shash.h>
 #include <graphic/surface.h>
-#include <bsd/string.h>
+//#include <bsd/string.h>^M
+extern size_t strlcpy(char * dest, const char * src, size_t n);^M
 
 static const char style_default[] = X({
        "primary": {
@@ -1646,4 +1647,4 @@ void xui_add_font(struct xui_context_t * ctx,  const char * family, const char *
 {
        if(ctx)
                font_add(ctx->f, family, path);
-}
\ No newline at end of file
+}^M

离线

#2 2021-07-15 11:41:03

tigger
Moderator
注册时间: 2021-06-18
已发帖子: 172
积分: 111

Re: XUI移植基本完成 https://gitee.com/891085309/xui , enjoy it! (转)

2021-07-15_114003.png

完全 OK


git仓库下载: xui_git.7z

离线

#3 2021-07-15 22:02:49

tango_zhu
会员
注册时间: 2018-04-12
已发帖子: 115
积分: 2

Re: XUI移植基本完成 https://gitee.com/891085309/xui , enjoy it! (转)

支持linux framebuffer吗  支持argb1555吗

离线

#4 2021-07-16 10:12:33

raspberryman
会员
注册时间: 2019-12-27
已发帖子: 503
积分: 465

Re: XUI移植基本完成 https://gitee.com/891085309/xui , enjoy it! (转)

请问 @xboot

https://github.com/xboot/xboot/tree/master/src/framework/romdisk/application

这些 demo 是基于 XUI 的吗?

离线

#5 2021-07-16 10:44:31

xboot
会员
注册时间: 2019-10-15
已发帖子: 675
积分: 421

Re: XUI移植基本完成 https://gitee.com/891085309/xui , enjoy it! (转)

raspberryman 说:

不是,这些demo是lua 框架的,非xui

离线

楼主 #6 2021-07-16 11:12:40

cube
会员
注册时间: 2021-03-11
已发帖子: 288
积分: 202.5

Re: XUI移植基本完成 https://gitee.com/891085309/xui , enjoy it! (转)

xboot 说:
raspberryman 说:

不是,这些demo是lua 框架的,非xui

怎么在xboot使用xui呢?

或者有没有lua绑定的demo?

最近编辑记录 cube (2021-07-16 11:12:59)

离线

#7 2021-07-16 11:49:52

xboot
会员
注册时间: 2019-10-15
已发帖子: 675
积分: 421

Re: XUI移植基本完成 https://gitee.com/891085309/xui , enjoy it! (转)

如何使用xui,参考cmd-overview.c这个程序,用c写的。
lua没有绑定xui,两者完全独立的

离线

楼主 #8 2021-07-16 12:44:08

cube
会员
注册时间: 2021-03-11
已发帖子: 288
积分: 202.5

Re: XUI移植基本完成 https://gitee.com/891085309/xui , enjoy it! (转)

xboot 说:

如何使用xui,参考cmd-overview.c这个程序,用c写的。
lua没有绑定xui,两者完全独立的

https://github.com/xboot/xboot/blob/71158c7afb74ab0c13f026abba38b56bc3dace39/src/kernel/command/cmd-overview.c

原来如此。那xboot有没有xui 绑定 lua的计划呢?

离线

#9 2021-07-16 13:56:03

xboot
会员
注册时间: 2019-10-15
已发帖子: 675
积分: 421

Re: XUI移植基本完成 https://gitee.com/891085309/xui , enjoy it! (转)

暂时没有,lua期望能上更高级点的gui,声明式之类的,xui还是c写更简单点。

离线

页脚

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

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