Ubuntu 编译ffmpeg 踩坑(一)

  • Post author:
  • Post category:其他


编译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'



版权声明:本文为ZHOU452840622原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。