Build FFmpeg development environment under ubuntu

The whole construction process reference: https://www.cnblogs.com/leisure_chn/p/10035365.html

environmentubuntu18.04

Problems encountered:

1. Compile x264 and report error that nasm cannot be found

touch libpath

vim libpath

PATH=$PATH:/home/zhout/playlib/bin (my nasm is installed in the /home/zhout/playlib/bin directory)

source libpath

2. When rtmpdump is installed, it reports that many structure types such as DH do not exist

Since Ubuntu is 18.04, the version of openssl that comes with it is too high and incompatible. I re-downloaded the OpenSSL 1.0.1q version, address: https://omake.com/download/openssl

Installation method reference: https://blog.csdn.net/Timsley/article/details/50776615

3. An error was reported during rtmpdump installation: /usr/bin/ld: cannot find -lssl

Reason: Because the default openssl library path of ld does not match the installation path of openssl

solve:

  1.ld -lssl -verbose | grep libssl.so View the library linked by ld and the status after linking: fail or success

  2. You can see the path of ld default link libssl.so

  3. The soft link remaps the default library path to the library path of the openssl we installed

      ln -s /usr/local/ssh/lib/libssl.so /usr/lib/libssl.so

      ln -s /usr/local/ssl/lib/libcrypto.so /usr/lib/libcrypto.so

Guess you like

Origin blog.csdn.net/u011598479/article/details/90814641