真正解决办法:编译freeswitch错误,You must install libavformat-dev to build mod_av

简介: 真正解决办法:编译freeswitch错误,You must install libavformat-dev to build mod_av

错误:

akefile:1442: *** You must install libavformat-dev to build mod_av。 停止。

解决办法一(无效):

./configure \
    --prefix=/usr/local \
    --enable-shared --enable-libx264 --enable-gpl \
    --extra-cflags=-I/usr/include --extra-ldflags=-L/usr/lib64

解决办法二(无效):

./bootstrap.sh -j

解决办法三(成功):

# 编译libav成功
sudo ldconfig
# 修改freeswitch 编译脚本:
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:${PKG_CONFIG_PATH}
./configure ...

此处的pkgconfig,有libavformat.pc。

目录
相关文章
在某龙芯平台上编译FFMPEG报错:ERROR: xxx not found using pkg-config
在某龙芯平台上编译FFMPEG报错:ERROR: xxx not found using pkg-config
188 0
|
6月前
npm run dev启动报错:Error: Cannot find module 'semver'
npm run dev启动报错:Error: Cannot find module 'semver'
116 0
|
Ubuntu Python
pip3 执行错误 No module named 'distutils.cmd'
pip3 执行错误 No module named 'distutils.cmd'
1499 0
|
编译器 Go 开发工具
常见问题之Golang——cgo: C compiler "gcc" not found: exec: "gcc": executable file not found in %PATH%错误
本文主要是对我日常在使用golang时遇到的一些问题与解决方式进行的汇总,在此提供给大家便于排查一些遇到的问题,其中有更好的解决方案可在评论区留言。
961 0
常见问题之Golang——cgo: C compiler "gcc" not found: exec: "gcc": executable file not found in %PATH%错误
|
8月前
|
开发工具 git
编译Gstreamer遇到的问题 autopoint: not found
编译Gstreamer遇到的问题 autopoint: not found
73 0
|
9月前
|
Linux
linux 手动编译安装 pkg-config 步骤
linux 手动编译安装 pkg-config 步骤
|
11月前
|
自然语言处理
openEuler 打开图形菜单报错:make [1]:‘ [ scripts/i Makefile. host:9: scripts/ kconfig/ lexer. lex.c]错误 127
openEuler 打开图形菜单报错:make [1]:‘ [ scripts/i Makefile. host:9: scripts/ kconfig/ lexer. lex.c]错误 127
212 0
构建freeswitch, make cd-moh-install提示文件错误
构建freeswitch, make cd-moh-install提示文件错误
92 0
You must install libopus-dev to build mod_opus
You must install libopus-dev to build mod_opus
208 0
msys2编译ffmpeg:ERROR: libx264 not found
msys2编译ffmpeg:ERROR: libx264 not found
97 0