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
그렇지 않았습니다.
답변1
루트로 빌드 스크립트를 실행하면 문제가 해결되었습니다.