为 Raspberry Pi 2 (YOCTO) 交叉编译 FSWEBCAM

Cross-compile FSWEBCAM for Raspberry Pi 2 (YOCTO)

我将 Yocto 用作 OS 我的 Raspberry Pi。

我想交叉编译 fswebcam 但显示错误。


cd ~
git clone https://github.com/fsphil/fswebcam.git
cd fswebcam
. /opt/poky/2.3/environment-setup-cortexa7hf-neon-vfpv4-poky-linux-gnueabi 
mkdir -R build/usr
cd build
../configure --prefix=/home/pablo/test_toolchain/fswebcam/build/usr --host=arm-poky-linux-gnueabi-gcc

错误->配置:错误:找不到GD图形库

注意:我无法安装apt或任何包管理器,必须交叉编译

Yocto 不是 OS... 但如果您使用 Yocto 作为构建系统并为 fswebcam 编写实际的配方,这应该不会太难:根据 layers.openembedded.org libgd(你需要的依赖项)在 meta-oe 中:https://layers.openembedded.org/layerindex/recipe/1037/

meta-atmel 中已经有一个 fswebcam 配方,它可能会按原样工作,或者至少可以作为一个起点:https://github.com/linux4sam/meta-atmel/blob/master/recipes-multimedia/fswebcam/fswebcam_git.bb