|
阅读:829回复:38
slackware上的编译打包出错
看了下,上次编译还是在 2024年1月,正常编译打包。过了1年大半,再次用 github最新代码编译,过程中出错,不知该怎么解决:
/usr/bin/ld: /usr/bin/../lib64/gcc/x86_64-slackware-linux/11.2.0/../../../../lib64/libcurl.so: undefined reference to `libssh2_session_set_read_timeout' /usr/bin/ld: /usr/bin/../lib64/gcc/x86_64-slackware-linux/11.2.0/../../../../lib64/libcurl.so: undefined reference to `libssh2_crypto_engine' /usr/bin/ld: /usr/bin/../lib64/gcc/x86_64-slackware-linux/11.2.0/../../../../lib64/libcurl.so: undefined reference to `libssh2_session_callback_set2' clang-13: error: linker command failed with exit code 1 (use -v to see invocation) |
|
|
沙发#
发布于:2025-11-24 21:40
帖内置顶 – dgod – 2025-11-25 21:48
|
|
|
板凳#
发布于:2025-12-03 22:04
|
|
|
地板#
发布于:2025-12-01 22:34
laolang_cool:最新进展:把wayland 和 gtk-layer-shell都安装了后,编译通过了,但是安装后运行yong时,提示:我日常用的是lxqt,没问题。ai说是要装gsettings-desktop-schemas |
|
|
4楼#
发布于: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,但之前也没有这个依赖呢 |
|
|
6楼#
发布于: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) |
|
|
8楼#
发布于:2025-11-25 21:19
dgod:你错误删除了gtk的链接参数。是类似这样子么: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没有生效。 |
|
|
9楼#
发布于:2025-11-25 21:05
你错误删除了gtk的链接参数。
不想编译gtk4的话,执行命令build l64 -x l64-gtk4即可 |
|
上一页
下一页