ffmpeg can use libssl.so libcrypto.so dynamic library, or libssl.a libcrypto.a static library, the next is to say that obviously the inventory is there, but the compiler still can not find openssl.
Search the ffmpeg source code, and you can find that the prompt is printed in the configure file. The source code is as follows:
enabled openssl && { use_pkg_config openssl openssl/ssl.h OPENSSL_init_ssl ||
check_lib openssl/ssl.h OPENSSL_init_ssl -lssl -lcrypto ||
use_pkg_config openssl openssl/ssl.h SSL_library_init ||
check_lib openssl/ssl.h SSL_library_init -lssl -lcrypto ||
check_lib openssl/ssl.h SSL_library_init -lssl32 -leay32 ||
check_lib openssl/ssl.h SSL_library_init -lssl -lcrypto -lws2_32 -lgdi32 ||
die "ERROR: openssl not found"; }
You can find that ffmpeg is trying OpenSSL one by one. My config The log shows that the last one has been checked, but OpenSSL is still not found.
The reason is that I am using a newer openssl library, the old openssl library uses ‘SSL_library_init’ to initialize, the newer openssl version uses ‘OPENSSL_init_ssl’ to initialize. The new version of openssl uses ‘OPENSSL_init_ssl’ to initialize, and because it does not pass the check, this error is reported here.
Solution:
Add a line to check ‘check_lib openssl/ssl.h OPENSSL_init_ssl -lssl -lcrypto ‘ and it will pass, above is what I have added.
Read More:
- [Solved] error: Failed dependencies libcrypto.so.10()(64bit) is needed, libssl.so.10()(64bit) is needed
- [Solved] Qt Error: qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed
- ERROR: dependencies ‘curl’, ‘openssl’ are not available for package ‘httr’
- [Solved] MacOS Compile ffmpeg Error: ERROR: openssl not found
- [Solved] curl error while loading shared libraries libcrypto.so.1.0.0
- Git Error: failed: The TLS connection was non-properly terminated
- [Solved] OpenSSL ssL_read: Connection was aborted,errno 10053
- [Solved] pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available
- [Solved] The Ruby zlib extension was not compiled
- OpenSSL: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failur
- [Samtools] Run error: error while loading shared libraries: libcrypto.so.1.0.0 or libncurses.so.5 or libtinfow.so.5
- Git push error: RPC failed; curl 7 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054
- [Solved] Ubuntu uses gym to save the video error: “unknown encoder ‘libx264′”
- [Solved] error LNK2005: _bn_sub_part_words Already defined in bn_mul.obj
- [Solved] ffmpeg error reporting: subprocess. Calledprocesserror: Command ‘ffmpeg, unknown encoder: “libx264″“
- Git Error: error RPC failed; curl 56 OpenSSL SSL_read SSL_ERROR_SYSCALL, errno 10054
- Connection was reset, errno 10054 Error [How to Solve]
- [Solved] github Access Error: OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054
- [Solved] Git OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054
- Solution of adding H264 error in ffmpeg compilation