栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

Ubuntu 编译ffmpeg 踩坑(一)

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

Ubuntu 编译ffmpeg 踩坑(一)

编译ffmpeg的时候报错 ERROR: libfdk_aac not found
参考 http://www.mirrorservice.org/sites/www.linuxfromscratch.org/blfs/view/systemd/multimedia/fdk-aac.html

 进行编译居然报错:

  CXX      libAACdec/src/FDK_delay.lo
./libtool: line 1762: g++: command not found
make: *** [Makefile:1752: libAACdec/src/FDK_delay.lo] Error 1

这个错找了很久

./libtool: line 1762: g++: command not found
每篇文章都没说在点子上,最后试了这条命令

sudo apt-get install build-essential

ubuntu下g++报错 g++:command not found解决办法_qq_32039433的博客-CSDN博客

 终于解决了我的问题。在执行编译命令

./configure --prefix=/usr --disable-static && make

make install

 看样子是libfdk_aac 编译是成功了,再次编译ffmpeg ,又报了其他错误,继续踩坑中....

fly@ubuntu:~/Downloads/fdk-aac-2.0.2$ sudo make install
make[1]: Entering directory '/home/fly/Downloads/fdk-aac-2.0.2'
 /usr/bin/mkdir -p '/usr/lib'
 /bin/bash ./libtool   --mode=install /usr/bin/install -c   libfdk-aac.la '/usr/lib'
libtool: install: /usr/bin/install -c .libs/libfdk-aac.so.2.0.2 /usr/lib/libfdk-aac.so.2.0.2
libtool: install: (cd /usr/lib && { ln -s -f libfdk-aac.so.2.0.2 libfdk-aac.so.2 || { rm -f libfdk-aac.so.2 && ln -s libfdk-aac.so.2.0.2 libfdk-aac.so.2; }; })
libtool: install: (cd /usr/lib && { ln -s -f libfdk-aac.so.2.0.2 libfdk-aac.so || { rm -f libfdk-aac.so && ln -s libfdk-aac.so.2.0.2 libfdk-aac.so; }; })
libtool: install: /usr/bin/install -c .libs/libfdk-aac.lai /usr/lib/libfdk-aac.la
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/sbin" ldconfig -n /usr/lib
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the 'LD_RUN_PATH' environment variable
     during linking
   - use the '-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to '/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
 /usr/bin/mkdir -p '/usr/include/fdk-aac'
 /usr/bin/install -c -m 644 ./libSYS/include/machine_type.h ./libSYS/include/genericStds.h ./libSYS/include/FDK_audio.h ./libSYS/include/syslib_channelMapDescr.h ./libAACenc/include/aacenc_lib.h ./libAACdec/include/aacdecoder_lib.h '/usr/include/fdk-aac'
 /usr/bin/mkdir -p '/usr/lib/pkgconfig'
 /usr/bin/install -c -m 644 fdk-aac.pc '/usr/lib/pkgconfig'
make[1]: Leaving directory '/home/fly/Downloads/fdk-aac-2.0.2'

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/312861.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号