http://johnvansickle.com/ffmpeg/
1. Git download sources method didn't work well. Files didn't same as .tar.gz.
2. Yasm is required for libx264, libx265 and FFmpeg.
3. CMake 2.8.8+ is required to complie libx265.
4. Make sure that you have all tools.
Code: Select all
yum install cmake gcc gcc-c++ libtool make nasm pkgconfig zlib-devel
So we need to add an options --disable-shared and/or --enable-static.
Sometime if FFmpeg see the .so in the system, it will complie as dynamically linked as default.
There are two Linux C/C++ library types which can be created:
1. Static libraries (.a): Library of object code which is linked with, and becomes part of the application.
2. Dynamically linked shared object libraries (.so): It can be used in two ways.
2.1 Dynamically linked at run time but statically aware. The libraries must be available during compile/link phase.
The shared objects are not included into the executable component but are tied to the execution.
2.2 Dynamically loaded/unloaded and linked during execution by using the dynamic linking loader system functions.