Mac 安装oss c++ sdk报错,
"_EVP_MD_CTX_free", referenced from: AlibabaCloud::OSS::ComputeContentMD5
安装命令: cmake -DOPENSSL_ROOT_DIR=/usr/local/Cellar/openssl@1.1/1.1.1d -DOPENSSL_LIBRARIES=/usr/local/Cellar/openssl@1.1/1.1.1d/lib -DOPENSSL_INCLUDE_DIRS=/usr/local/Cellar/openssl@1.1/1.1.1d/include/ ..
错误信息:
Undefined symbols for architecture x86_64: "_EVP_MD_CTX_free", referenced from: AlibabaCloud::OSS::ComputeContentMD5(std::__1::basic_istream<char, std::__1::char_traits >&) in libalibabacloud-oss-cpp-sdk.a(Utils.cc.o) AlibabaCloud::OSS::ComputeContentETag(std::__1::basic_istream<char, std::__1::char_traits >&) in libalibabacloud-oss-cpp-sdk.a(Utils.cc.o) "_EVP_MD_CTX_new", referenced from: AlibabaCloud::OSS::ComputeContentMD5(std::__1::basic_istream<char, std::__1::char_traits >&) in libalibabacloud-oss-cpp-sdk.a(Utils.cc.o) AlibabaCloud::OSS::ComputeContentETag(std::__1::basic_istream<char, std::__1::char_traits >&) in libalibabacloud-oss-cpp-sdk.a(Utils.cc.o) "_EVP_MD_CTX_reset", referenced from: AlibabaCloud::OSS::ComputeContentMD5(std::__1::basic_istream<char, std::__1::char_traits >&) in libalibabacloud-oss-cpp-sdk.a(Utils.cc.o) AlibabaCloud::OSS::ComputeContentETag(std::__1::basic_istream<char, std::__1::char_traits >&) in libalibabacloud-oss-cpp-sdk.a(Utils.cc.o)
本人安装openssl目录 yehaomiaodeMBP:build yehaomiao$ ls /usr/local/Cellar/openssl@1.1/1.1.1d/include/openssl/ Display all 104 possibilities? (y or n) aes.h bioerr.h cmac.h crypto.h dsaerr.h engine.h kdferr.h objects.h pem2.h randerr.h seed.h stack.h ui.h asn1.h blowfish.h cms.h cryptoerr.h dtls1.h engineerr.h lhash.h objectserr.h pemerr.h rc2.h sha.h store.h uierr.h asn1_mac.h bn.h cmserr.h ct.h e_os2.h err.h md2.h ocsp.h pkcs12.h rc4.h srp.h storeerr.h whrlpool.h asn1err.h bnerr.h comp.h cterr.h ebcdic.h evp.h md4.h ocsperr.h pkcs12err.h rc5.h srtp.h symhacks.h x509.h asn1t.h buffer.h comperr.h des.h ec.h evperr.h md5.h opensslconf.h pkcs7.h ripemd.h ssl.h tls1.h x509_vfy.h async.h buffererr.h conf.h dh.h ecdh.h hmac.h mdc2.h opensslv.h pkcs7err.h rsa.h ssl2.h ts.h x509err.h asyncerr.h camellia.h conf_api.h dherr.h ecdsa.h idea.h modes.h ossl_typ.h rand.h rsaerr.h ssl3.h tserr.h x509v3.h bio.h cast.h conferr.h dsa.h ecerr.h kdf.h obj_mac.h pem.h rand_drbg.h safestack.h sslerr.h txt_db.h x509v3err.h
yehaomiaodeMBP:build yehaomiao$ ls /usr/local/Cellar/openssl@1.1/1.1.1d/lib/ engines-1.1 libcrypto.1.1.dylib libcrypto.a libcrypto.dylib libssl.1.1.dylib libssl.a libssl.dylib pkgconfig
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。