libxcb 编译
下载地址 https://xcb.freedesktop.org/dist/
使用的是 1.14版本,该版本要求xcb-proto 版本大于1.5 ,并且要求x11支持
CC=arm-linux-gnueabihf-gcc CXX=arm-linux-gnueabihf-g++
./configure --prefix=/home/wyj/third_lib/xcb-proto --host=arm-linux
make
make install
可能遇到的问题
1、需要xslproc
sudo apt-get install xsltproc
2、缺少x11
需要交叉编译x11
根据连接文档进行编译 交叉编译X11
然后在configure时加上
CPPFLAGS="-I/home/wyj/third_lib/X11/include" LDFLAGS="-L/home/wyj/third_lib/X11/lib"
xcb-proto编译
交叉编译xcb-proto,下载地址https://xcb.freedesktop.org/dist/
使用的是1.14版本
CC=arm-linux-gnueabihf-gcc CXX=arm-linux-gnueabihf-g++
./configure --prefix=/home/wyj/third_lib/xcb-proto --host=arm-linux
make
make install
export PKG_CONFIG_PATH=/home/wyj/third_lib/xcb-proto/lib/pkgconfig