开门见山,在安装Freeswitch时提示了以下信息,编译终止了:
错误内容:Makefile:797: * You must install libyuv-dev to build mod_fsv。停止。
提示以上的信息,说明编译时依赖的文件包出现了问题,经过我漫长的整理,我们需要先安装以下包:
(一)下载libyuv源码并编译
cd freeswitch/libs
git clone https://freeswitch.org/stash/scm/sd/libyuv.git
cd libyuv
make -f linux.mk CXXFLAGS="-fPIC -O2 -fomit-frame-pointer -Iinclude/"
make install
cp /usr/lib/pkgconfig/libyuv.pc /usr/lib64/pkgconfig/
(二)yasm汇编编译器安装
yasm下载:http://www.tortall.net/projects/yasm/releases/
yasm编译安装:
1 ./configure,
2 make
3 make install
(三)下载libvpx源码并编译
cd ..
git clone https://freeswitch.org/stash/scm/sd/libvpx.git
cd libvpx
./configure --enable-pic --disable-static --enable-shared
make
make install
cp /usr/local/lib/pkgconfig/vpx.pc /usr/lib64/pkgconfig/
(四)下载opus并编译
cd ..
git clone https://freeswitch.org/stash/scm/sd/opus.git
cd opus
./autogen.sh
./configure
make
make install
cp /usr/local/lib/pkgconfig/opus.pc /usr/lib64/pkgconfig
(五)下载libpng并编译
cd ..
git clone https://freeswitch.org/stash/scm/sd/libpng.git
cd libpng
./configure
make
make install
cp /usr/local/lib/pkgconfig/libpng* /usr/lib64/pkgconfig/
在安装了以上的所有环境中后,我们再次编译发现可以顺利的通过了。

正文到此结束

本文标题:You must install libyuv-dev to build mod_fsv的解决方法

本文链接:https://www.hantaosec.com/133.html

除非另有说明,本作品采用知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议

声明:转载请注明文章来源及链接,不带链接禁止任何转载!访问任何网络安全相关文章,则视为默认接受网络安全文章免责声明 ,请认真阅读。

喜欢我的文章吗?
别忘了点赞或赞赏,让我知道创作的路上有你陪伴。