• 下载

https://xorg.freedesktop.org/archive/individual/xcb/xcb-proto-1.13.tar.bz2
https://xorg.freedesktop.org/archive/individual/xcb/libxcb-1.13.tar.bz2

  • 依赖库
sudo apt install libxau-dev libpthread-stubs0-dev
  • 编译

先编译xcb,再编译libxcb。

使用同一个脚本:

BUILD_LIBS=${HOME}/build_libs

export PATH=${BUILD_LIBS}/bin:${PATH}
export PKG_COINFIG_PATH=${BUILD_LIBS}/lib/pkgconfig

./autogen.sh

./configure \
    --prefix=${BUILD_LIBS} \
    CFLAGS="-I${BUILD_LIBS}/include" \
    LDFLAGS="-L${BUILD_LIBS}/lib"

make

make install

报错:

https://blog.csdn.net/quantum7/article/details/104683284