交叉编译DirectFB,以及报错解决方法
一、安装依赖库
sudo apt-get install build-essential g++ git autogen autoconf automake libtool bison flex
二、下载DirectFB源码
git clone -b directfb-1.7 https://github.com/deniskropp/DirectFB.git
三、配置编译参数
cd DirectFB
./autogen.sh
设置交叉编译工具链
export CC=arm-linux-gnueabihf-gcc
export CXX=arm-linux-gnueabihf-g++
export AR=arm-linux-gnueabihf-ar
export RANLIB=arm-linux-gnueabihf-ranlib
export STRIP=arm-linux-gnueabihf-strip
DirectFB编译配置
./configure --prefix=/home/qq/licheepi/kit/directfb --host=arm-linux --enable-freetype=no --enable-png=no --enable-zlib=no --enable-x11=no
四、报错处理
这个是说缺少fluxcomp命令,这个命令包含在flux库里的,这个库也是DirectFB作者开发的,但是下报错中给的链接可能已经失效了,无法克隆这个仓库,这个仓库我找到了,放在下面。
configure: error:
*** DirectFB compilation requires fluxcomp ***
Unless you are compiling from a distributed tarball you need fluxcomp
available from git://git.directfb.org/git/directfb/core/flux installed
in your PATH.
需要先编译安装flux
git clone https://github.com/deniskropp/flux.git