30楼#
发布于:2025-11-25 20:38
dgod:可能吧回到原帖
我把有警示的信息都贴出到附件了,麻烦周大有空时瞅瞅能否看出来有什么问题哈err.txt
31楼#
发布于:2025-11-25 20:40
laolang_cool:我把有警示的信息都贴出到附件了,麻烦周大有空时瞅瞅能否看出来有什么问题哈回到原帖
因为我的环境没有装gtk4和wayland,所以编译前我把相应的依赖去掉了:
sed -i '/gtk4/d' im/build.txt
sed -i '/gtk+-4/d' im/build.txt
sed -i "s/,'l\(32\|64\)-gtk4'//" config/build.txt
sed -i 's/,"l\(32\|64\)-gtk4"//' config/build.txt
sed -i '/gtk4/d' install/build.txt
sed -i "s/,'ybus-wayland\.c'//" im/build.txt
sed -i '/wayland/d' im/build.txt
32楼#
发布于:2025-11-25 21:05
你错误删除了gtk的链接参数。
不想编译gtk4的话,执行命令build l64 -x l64-gtk4即可
33楼#
发布于:2025-11-25 21:19
dgod:你错误删除了gtk的链接参数。
不想编译gtk4的话,执行命令build l64 -x l64-gtk4即可
回到原帖
是类似这样子么:node ./build.js l64 -x l64-qt6 l64-gtk4

但我如果不删掉 build.txt 里的相关语句,按上面来编译时会出现这样的错误:
clang -m64 -I/tmp/YWu/yong-20251123/llib -D_GNU_SOURCE -Wall -g -O2 -fno-plt -fno-strict-aliasing -Wno-format-truncation -fms-extensions -pipe -ffast-math -I/tmp/YWu/yong-20251123/include -I/tmp/YWu/yong-20251123/common -Wno-invalid-source-encoding  -Wno-microsoft-anon-tag `pkg-config --cflags gtk+-3.0` -Wno-deprecated-declarations -L/tmp/YWu/yong-20251123/llib/l64 -Wl,--hash-style=sysv -Wl,-rpath,'$ORIGIN' config_ui.o config_main.o translate.o sync.o aes.o update.o config_gtk.o session_curl.o  -o ./yong-config -ll `pkg-config --libs gtk+-3.0` -lcurl -ldl
clang -m64 -I/tmp/YWu/yong-20251123/llib -D_GNU_SOURCE -Wall -g -O2 -fno-plt -fno-strict-aliasing -Wno-format-truncation -fms-extensions -pipe -ffast-math -I/tmp/YWu/yong-20251123/include -I/tmp/YWu/yong-20251123/common -Wno-invalid-source-encoding  -Wno-microsoft-anon-tag `pkg-config --cflags gtk4` -Wno-deprecated-declarations -c /tmp/YWu/yong-20251123/config/config_ui.c -o config_ui.o
Package gtk4 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk4.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk4' found
warning: unknown warning option '-Wno-format-truncation' [-Wunknown-warning-option]/tmp/YWu/yong-20251123/config/config_ui.c:761:10: fatal error: 'glib.h' file not found
#include <glib.h>
         ^~~~~~~~
1 warning and 1 error generated.
我感觉是 l64-gtk4没有生效。
34楼#
发布于:2025-11-25 21:48
node ./build.js l64 -x l64-qt6 -x l64-gtk4
35楼#
发布于:2025-11-25 22:04
dgod:node ./build.js l64 -x l64-qt6 -x l64-gtk4回到原帖
看来去年我强行改文件的方式原来是错误的,编过去也是运气原因,现在这样子的话就没有之前包括cairo等那些错误了。


不过现在还有个错误就是关于 wayland 的依赖错误了,我也是强行用下面方式想强行跳过wayland依赖的:
sed -i "s/,'ybus-wayland\.c'//" im/build.txt
sed -i '/wayland/d' im/build.txt

但很明显这样是不行的了……不知能否跳过wayland相关依赖呢?
不过我发现实际上系统也是装有 wayland-1.22.0-x86_64-1_slack15.0 和 wayland-protocols-1.25-noarch-1 的

/usr/bin/ld: keyboard.o: in function `kbd_main_new':
/tmp/YWu/yong-20251123/common/keyboard.c:1124: undefined reference to `ybus_wayland_set_window'
/usr/bin/ld: keyboard.o: in function `kbd_select':
/tmp/YWu/yong-20251123/common/keyboard.c:377: undefined reference to `ybus_wayland_win_move'
/usr/bin/ld: keyboard.o: in function `y_kbd_show_with_main':
/tmp/YWu/yong-20251123/common/keyboard.c:473: undefined reference to `ybus_wayland_get_custom'
/usr/bin/ld: keyboard.o: in function `keyboard_motion_cb':
/tmp/YWu/yong-20251123/common/keyboard.c:531: undefined reference to `ybus_wayland_win_move_relative'
/usr/bin/ld: ui.o: in function `ui_win_show':
/tmp/YWu/yong-20251123/im/ui.c:644: undefined reference to `ybus_wayland_win_show'
/usr/bin/ld: ui.o: in function `ui_init':
/tmp/YWu/yong-20251123/im/ui.c:290: undefined reference to `ybus_wayland_ui_init'
/usr/bin/ld: ui.o: in function `ui_main_update':
/tmp/YWu/yong-20251123/im/ui.c:750: undefined reference to `ybus_wayland_set_window'
/usr/bin/ld: ui.o: in function `ui_main_show':
/tmp/YWu/yong-20251123/im/ui.c:1882: undefined reference to `ybus_wayland_win_move'
/usr/bin/ld: /tmp/YWu/yong-20251123/im/ui.c:(.text+0x3012): undefined reference to `ybus_wayland_win_move'
/usr/bin/ld: ui.o: in function `ui_input_update':
/tmp/YWu/yong-20251123/im/ui.c:1117: undefined reference to `ybus_wayland_set_window'
/usr/bin/ld: /tmp/YWu/yong-20251123/im/ui.c:1136: undefined reference to `ybus_wayland_set_window'
/usr/bin/ld: ui.o: in function `ui_show_tip':
/tmp/YWu/yong-20251123/im/ui.c:2493: undefined reference to `ybus_wayland_set_window'
/usr/bin/ld: /tmp/YWu/yong-20251123/im/ui.c:2496: undefined reference to `ybus_wayland_set_window'
/usr/bin/ld: ui.o: in function `main_motion_cb':
/tmp/YWu/yong-20251123/im/ui.c:487: undefined reference to `ybus_wayland_win_move_relative'
/usr/bin/ld: ui.o: in function `input_motion_cb':
/tmp/YWu/yong-20251123/im/ui.c:865: undefined reference to `ybus_wayland_win_move_relative'
/usr/bin/ld: ybus.o: in function `y_xim_init_default':
/tmp/YWu/yong-20251123/common/ybus.c:1007: undefined reference to `ybus_wayland_init'
clang-13: error: linker command failed with exit code 1 (use -v to see invocation)
36楼#
发布于:2025-11-25 22:40
那几个符号在im/wayland/ybus-wayland.c里
37楼#
发布于:2025-12-01 22:30
最新进展:把wayland 和 gtk-layer-shell都安装了后,编译通过了,但是安装后运行yong时,提示:
(yong:13710): GLib-GIO-ERROR **: 22:24:34.815: Settings schema 'org.gnome.desktop.interface' is not installed
我没有装gnome之类的DE,只用很精简的wm,但之前也没有这个依赖呢
38楼#
发布于:2025-12-01 22:34
laolang_cool:最新进展:把wayland 和 gtk-layer-shell都安装了后,编译通过了,但是安装后运行yong时,提示:
(yong:13710): GLib-GIO-ERROR **: 22:24:34.815: Settings sche...
回到原帖
我日常用的是lxqt,没问题。ai说是要装gsettings-desktop-schemas
39楼#
发布于:2025-12-03 22:04
dgod:我日常用的是lxqt,没问题。ai说是要装gsettings-desktop-schemas回到原帖
嗯,装了这个后不提示出错了,但现在是运行后没有提示,但是小小也不能正常运行……通过startx进Xorg时会卡一段时间,然后才能进入Xorg,但小小没有运行起来……
暂时还是只能先退回旧版去了……
上一页 下一页
游客

返回顶部