make all-recursive make[1]: 进入目录“/root/leptonica-1.78.0” Making all in src make[2]: 进入目录“/root/leptonica-1.78.0/src” CC jpegio.lo In file included from alltypes.h:37:0, from allheaders.h:35, from jpegio.c:135: environ.h:264:23: error: expected identifier before numeric constant #define FALSE 0 ^ make[2]: *** [jpegio.lo] 错误 1 make[2]: 离开目录“/root/leptonica-1.78.0/src” make[1]: *** [all-recursive] 错误 1 make[1]: 离开目录“/root/leptonica-1.78.0” make: *** [all] 错误 2
时间: 2024-02-24 07:54:39 浏览: 209
这个错误可能是因为您正在使用的Leptonica版本与您的系统不兼容。您可以尝试使用较旧或较新版本的Leptonica,或者检查您的系统环境是否正确设置。
此外,您还可以尝试使用以下命令清除Leptonica的编译缓存并重新编译:
```
make clean
make
```
这将清除以前的编译文件并重新编译Leptonica。如果问题仍然存在,请提供更多上下文信息,以便我们更好地了解您的情况。
相关问题
[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` 命令。如果还有其他的依赖项缺失,同样需要先安装它们才能构建成功。
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即可。
阅读全文