libxcb 交叉编译

xcb-proto编译

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

使用的是1.6版本spa

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/.net

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

 

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

 

可能遇到的问题

一、须要xslproc

sudo apt-get install xsltproc

二、缺乏x11

须要交叉编译x11get

也能够从网上找一个现成的 http://download.csdn.net/detail/cloudjx/9884034编译

而后在configure时加上gcc

CPPFLAGS="-I/home/huey/Dev/Arm/x11/include" LDFLAGS="-L/home/huey/Dev/Arm/x11/lib"
相关文章
相关标签/搜索