libxcb 交叉编译

xcb-proto编译

交叉编译xcb-proto,下载地址https://xcb.freedesktop.org/dist/

使用的是1.6版本

CC=arm-none-linux-gnueabi-gcc CXX=arm-none-linux-gnueabi-g++ ./configure --prefix=/home/huey/Dev/Arm/xcb-proto --host=arm-linux

make
make install
export PKG_CONFIG_PATH=/home/huey/Dev/Arm/xcb-proto/lib/pkgconfig

 

libxcb 编译

下载地址 https://xcb.freedesktop.org/dist/

使用的是 1.5版本,该版本要求xcb-proto 版本大于1.5 ,并且要求x11支持

CC=arm-none-linux-gnueabi-gcc CXX=arm-none-linux-gnueabi-g++ ./configure --prefix=/home/huey/Dev/Arm/xcb --host=arm-linux
make
make install

 

可能遇到的问题

1、需要xslproc

sudo apt-get install xsltproc 

2、缺少x11

需要交叉编译x11

也可以从网上找一个现成的 http://download.csdn.net/detail/cloudjx/9884034

然后在configure时加上

CPPFLAGS="-I/home/huey/Dev/Arm/x11/include" LDFLAGS="-L/home/huey/Dev/Arm/x11/lib"

猜你喜欢

转载自my.oschina.net/u/1250206/blog/1068725