gpt4 book ai didi

编译 xkbcomp (Xorg App)

转载 作者:太空狗 更新时间:2023-10-29 15:58:50 26 4
gpt4 key购买 nike

我正在尝试编译 xkbcomp(来自 xorg 应用程序)但出现以下错误:

warning: libxcb.so.1, needed by /lib/libX11.so, not found (try using -rpath or -rpath-link)
/lib/libX11.so: undefined reference to `xcb_connection_has_error'
/lib/libX11.so: undefined reference to `xcb_poll_for_reply'
/lib/libX11.so: undefined reference to `xcb_get_maximum_request_length'
/lib/libX11.so: undefined reference to `xcb_get_file_descriptor'
/lib/libX11.so: undefined reference to `xcb_connect'
/lib/libX11.so: undefined reference to `xcb_wait_for_reply'
/lib/libX11.so: undefined reference to `xcb_get_setup'
/lib/libX11.so: undefined reference to `xcb_wait_for_event'
/lib/libX11.so: undefined reference to `xcb_poll_for_event'
/lib/libX11.so: undefined reference to `xcb_parse_display'
/lib/libX11.so: undefined reference to `xcb_generate_id'
/lib/libX11.so: undefined reference to `xcb_disconnect'
/lib/libX11.so: undefined reference to `xcb_take_socket'
/lib/libX11.so: undefined reference to `xcb_writev'
/lib/libX11.so: undefined reference to `xcb_connect_to_display_with_auth_info'

注意:libX11 和 libxcb 已成功编译(使用 autotools)并且我获得了所有“.so”共享库和头文件。但问题依然存在。

我该如何解决?

最佳答案

我已经解决了这个问题,我只需要将“-lxcb”添加到我的 LDFLAGS 中。现在,它工作正常。谢谢——

关于编译 xkbcomp (Xorg App),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15365649/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com