libxcb 交叉编译

点点圈 提交于 2019-12-03 19:25:07

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"

 

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!