make[4]: 进入目录“/usr/local/freeswitch-1.10.2.-release/src/mod/applications/mod_av” Makefile:1396: *** You must install libavformat-dev to build mod_av。 停止。
时间: 2023-08-07 17:06:33 浏览: 145
这个错误是因为缺少 libavformat-dev 库,你可以通过以下命令安装它:
```
sudo apt-get install libavformat-dev
```
安装完成后再重新编译 mod_av 即可。
相关问题
creating fsxs make[2]: 离开目录“/usr/local/freeswitch-1.10.2.-release” Making all in src make[2]: 进入目录“/usr/local/freeswitch-1.10.2.-release/src” Making all in mod make[3]: 进入目录“/usr/local/freeswitch-1.10.2.-release/src/mod” making all mod_amr make[4]: 进入目录“/usr/local/freeswitch-1.10.2.-release/src/mod/codecs/mod_amr” CC mod_amr_la-mod_amr.lo CCLD mod_amr.la make[4]: 离开目录“/usr/local/freeswitch-1.10.2.-release/src/mod/codecs/mod_amr” making all mod_av make[4]: 进入目录“/usr/local/freeswitch-1.10.2.-release/src/mod/applications/mod_av” Makefile:1396: *** You must install libavformat-dev to build mod_av。 停止。 make[4]: 离开目录“/usr/local/freeswitch-1.10.2.-release/src/mod/applications/mod_av” make[3]: *** [Makefile:701:mod_av-all] 错误 1 make[3]: 离开目录“/usr/local/freeswitch-1.10.2.-release/src/mod” make[2]: *** [Makefile:607:all-recursive] 错误 1 make[2]: 离开目录“/usr/local/freeswitch-1.10.2.-release/src” make[1]: *** [Makefile:3575:all-recursive] 错误 1 make[1]: 离开目录“/usr/local/freeswitch-1.10.2.-release” make: *** [Makefile:1290:all] 错误 2
这个错误提示是因为在编译mod_av时缺少libavformat-dev库。你需要安装libavformat-dev库,可以使用以下命令来安装:
```
sudo apt-get install libavformat-dev
```
安装完成后再重新编译freeswitch即可。
[root@localhost freeswitch-1.10.2.-release]# make && make install make all-recursive make[1]: 进入目录“/usr/local/freeswitch-1.10.2.-release” Making all in . make[2]: 进入目录“/usr/local/freeswitch-1.10.2.-release” make[2]: 离开目录“/usr/local/freeswitch-1.10.2.-release” Making all in src make[2]: 进入目录“/usr/local/freeswitch-1.10.2.-release/src” Making all in mod make[3]: 进入目录“/usr/local/freeswitch-1.10.2.-release/src/mod” making all mod_amr make[4]: 进入目录“/usr/local/freeswitch-1.10.2.-release/src/mod/codecs/mod_amr” make[4]: 对“all”无需做任何事。 make[4]: 离开目录“/usr/local/freeswitch-1.10.2.-release/src/mod/codecs/mod_amr” making all mod_av make[4]: 进入目录“/usr/local/freeswitch-1.10.2.-release/src/mod/applications/mod_av” Makefile:1396: *** You must install libavformat-dev to build mod_av。 停止。 make[4]: 离开目录“/usr/local/freeswitch-1.10.2.-release/src/mod/applications/mod_av” make[3]: *** [Makefile:701:mod_av-all] 错误 1 make[3]: 离开目录“/usr/local/freeswitch-1.10.2.-release/src/mod” make[2]: *** [Makefile:607:all-recursive] 错误 1 make[2]: 离开目录“/usr/local/freeswitch-1.10.2.-release/src” make[1]: *** [Makefile:3575:all-recursive] 错误 1 make[1]: 离开目录“/usr/local/freeswitch-1.10.2.-release” make: *** [Makefile:1290:all] 错误 2
根据提示,你需要安装 libavformat-dev 才能构建 mod_av。你可以尝试使用以下命令安装它:
```bash
sudo apt-get install libavformat-dev
```
然后再次运行 `make && make install` 命令。如果还有其他的依赖项缺失,同样需要先安装它们才能构建成功。
阅读全文