ubuntu16.04//usr/local/lib/librtmp.so.1: undefined reference to `SSLv23_server_method@OPENSSL_1.0.0'

问题描述
在编译程序时,显示

/usr/bin/ld: warning: libssl.so.1.0.0, needed by //usr/local/lib/librtmp.so.1, not found (try using -rpath or -rpath-link)
//usr/local/lib/librtmp.so.1: undefined reference to `SSL_CTX_free@OPENSSL_1.0.0'
//usr/local/lib/librtmp.so.1: undefined reference to `SSL_CTX_use_certificate_chain_file@OPENSSL_1.0.0'
//usr/local/lib/librtmp.so.1: undefined reference to `SSL_CTX_use_PrivateKey_file@OPENSSL_1.0.0'
//usr/local/lib/librtmp.so.1: undefined reference to `SSL_read@OPENSSL_1.0.0'
//usr/local/lib/librtmp.so.1: undefined reference to `SSLv23_method@OPENSSL_1.0.0'
//usr/local/lib/librtmp.so.1: undefined reference to `SSL_CTX_new@OPENSSL_1.0.0'
//usr/local/lib/librtmp.so.1: undefined reference to `SSL_load_error_strings@OPENSSL_1.0.0'
//usr/local/lib/librtmp.so.1: undefined reference to `SSL_new@OPENSSL_1.0.0'
//usr/local/lib/librtmp.so.1: undefined reference to `SSL_write@OPENSSL_1.0.0'
//usr/local/lib/librtmp.so.1: undefined reference to `SSL_free@OPENSSL_1.0.0'
//usr/local/lib/librtmp.so.1: undefined reference to `SSL_accept@OPENSSL_1.0.0'
//usr/local/lib/librtmp.so.1: undefined reference to `SSL_set_fd@OPENSSL_1.0.0'
//usr/local/lib/librtmp.so.1: undefined reference to `SSL_connect@OPENSSL_1.0.0'
//usr/local/lib/librtmp.so.1: undefined reference to `SSL_CTX_ctrl@OPENSSL_1.0.0'
//usr/local/lib/librtmp.so.1: undefined reference to `SSL_CTX_set_default_verify_paths@OPENSSL_1.0.0'
//usr/local/lib/librtmp.so.1: undefined reference to `SSL_library_init@OPENSSL_1.0.0'
//usr/local/lib/librtmp.so.1: undefined reference to `SSL_shutdown@OPENSSL_1.0.0'
//usr/local/lib/librtmp.so.1: undefined reference to `SSLv23_server_method@OPENSSL_1.0.0'

之前在编译时,由于加载不出boost::boost的原因,将cmake版本从3.5.2升级到3.11.2(需要升级openssl),所以将openssl升级到1.1.0,顺利安装完cmake后,又显示找不到openssl1.0.0,我好难,在网上找了一圈解决方法,都没能顺利解决问题,明明可以locate到,并且也在路径下,就是连接不上,折腾了好久都没找到解决方案,没办法,只能从源头librtmp.so.1上下手,上网搜索相关资料,一搜,眼睛就亮了。
ubuntu16.04//usr/local/lib/librtmp.so.1: undefined reference to `SSLv23_server_method@OPENSSL_1.0.0'_第1张图片嘿嘿嘿,这是ubuntu14里的库,我的电脑是16.04的,用不到这个库,所以删除它就完事了,再编译就可以顺利通过了。

政治正确的解决方案未行通,只能用这种邪门外道的小招数来让他顺利编译,如果有哪位大佬知晓解决方案,烦请告知,感谢!

你可能感兴趣的:(ubuntu16.04//usr/local/lib/librtmp.so.1: undefined reference to `SSLv23_server_method@OPENSSL_1.0.0')