X11
試圖編譯 X Window System 並得到我不知道的錯誤
我已經仔細檢查了建構 X 的所有依賴項,並且它們都是最新版本。我什至不確定從哪裡開始出現這些錯誤,所以我希望這裡有人可以幫助我。如果重要的話,在 WSL2 上編譯。
使用 build.sh 方法編譯。
這是我正在使用的命令:
./util/modular/build.sh --clone $HOME/Xbuild
這是錯誤:
/home/mason/lx-os/cross-tools/lib/gcc/x86_64-unknown-linux-gnu/9.3.0/../../../../x86_64-unknown-linux-gnu/bin/ld: warning: libXau.so.6, needed by /home/mason/Xbuild/lib/libxcb.so, not found (try using -rpath or -rpath-link) /home/mason/lx-os/cross-tools/lib/gcc/x86_64-unknown-linux-gnu/9.3.0/../../../../x86_64-unknown-linux-gnu/bin/ld: warning: libXdmcp.so.6, needed by /home/mason/Xbuild/lib/libxcb.so, not found (try using -rpath or -rpath-link) /home/mason/lx-os/cross-tools/lib/gcc/x86_64-unknown-linux-gnu/9.3.0/../../../../x86_64-unknown-linux-gnu/bin/ld: warning: libxcb-shm.so.0, needed by ../image/.libs/libxcb-image.so, not found (try using -rpath or -rpath-link) /home/mason/lx-os/cross-tools/lib/gcc/x86_64-unknown-linux-gnu/9.3.0/../../../../x86_64-unknown-linux-gnu/bin/ld: /home/mason/Xbuild/lib/libxcb.so: undefined reference to `XauGetBestAuthByAddr' /home/mason/lx-os/cross-tools/lib/gcc/x86_64-unknown-linux-gnu/9.3.0/../../../../x86_64-unknown-linux-gnu/bin/ld: ../image/.libs/libxcb-image.so: undefined reference to `xcb_shm_put_image' /home/mason/lx-os/cross-tools/lib/gcc/x86_64-unknown-linux-gnu/9.3.0/../../../../x86_64-unknown-linux-gnu/bin/ld: /home/mason/Xbuild/lib/libxcb.so: undefined reference to `XauDisposeAuth' /home/mason/lx-os/cross-tools/lib/gcc/x86_64-unknown-linux-gnu/9.3.0/../../../../x86_64-unknown-linux-gnu/bin/ld: ../image/.libs/libxcb-image.so: undefined reference to `xcb_shm_get_image' /home/mason/lx-os/cross-tools/lib/gcc/x86_64-unknown-linux-gnu/9.3.0/../../../../x86_64-unknown-linux-gnu/bin/ld: /home/mason/Xbuild/lib/libxcb.so: undefined reference to `XdmcpWrap' /home/mason/lx-os/cross-tools/lib/gcc/x86_64-unknown-linux-gnu/9.3.0/../../../../x86_64-unknown-linux-gnu/bin/ld: ../image/.libs/libxcb-image.so: undefined reference to `xcb_shm_get_image_reply' collect2: error: ld returned 1 exit status make[2]: *** [Makefile:648: test_xcb_image] Error 1
我以為跑步
sudo ldconfig
可以解決問題,但事實並非如此。
以root身份執行建構腳本解決了它。