使用OpenSSL 1.1.0h构建错误Poco 1.9.0

时间:2018-07-03 04:33:48

标签: openssl poco-libraries

我尝试使用OpenSSL 1.1.0h构建POCO库v1.9.0。 但这失败,并出现链接错误。

我使用https://slproweb.com/products/Win32OpenSSL.html中的OpenSSL

以下日志是构建日志的一部分。

++++ Building [Crypto_vs100.vcxproj]
    :
         obj\Crypto\debug_shared\ECKeyImpl.obj
            Creating library ..\lib\PocoCryptod.lib and object ..\lib\PocoCryptod.exp
     1>ECKey.obj : error LNK2019: unresolved external symbol _EVP_PKEY_cmp referenced in function "public: __thiscall Poco::Crypto::ECKey::ECKey(class Poco::Crypto::ECKey const &)" (??0ECKey@Crypto@Poco@@QAE@ABV012@@Z) [E:\DevWork\Poco\poco-1.9.0-all_mysql_5720_openssl_102o\Crypto\Crypto_vs100.vcxproj]
     1>ECKeyImpl.obj : error LNK2001: unresolved external symbol _EVP_PKEY_cmp [E:\DevWork\Poco\poco-1.9.0-all_mysql_5720_openssl_102o\Crypto\Crypto_vs100.vcxproj]
     1>RSAKeyImpl.obj : error LNK2001: unresolved external symbol _EVP_PKEY_cmp [E:\DevWork\Poco\poco-1.9.0-all_mysql_5720_openssl_102o\Crypto\Crypto_vs100.vcxproj]
     1>PKCS12Container.obj : error LNK2001: unresolved external symbol _EVP_PKEY_cmp [E:\DevWork\Poco\poco-1.9.0-all_mysql_5720_openssl_102o\Crypto\Crypto_vs100.vcxproj]
     1>EVPPKey.obj : error LNK2001: unresolved external symbol _EVP_PKEY_cmp [E:\DevWork\Poco\poco-1.9.0-all_mysql_5720_openssl_102o\Crypto\Crypto_vs100.vcxproj]
     1>ECDSADigestEngine.obj : error LNK2001: unresolved external symbol _EVP_PKEY_cmp [E:\DevWork\Poco\poco-1.9.0-all_mysql_5720_openssl_102o\Crypto\Crypto_vs100.vcxproj]
     1>CipherFactory.obj : error LNK2001: unresolved external symbol _EVP_PKEY_cmp [E:\DevWork\Poco\poco-1.9.0-all_mysql_5720_openssl_102o\Crypto\Crypto_vs100.vcxproj]
     1>RSACipherImpl.obj : error LNK2001: unresolved external symbol _EVP_PKEY_cmp [E:\DevWork\Poco\poco-1.9.0-all_mysql_5720_openssl_102o\Crypto\Crypto_vs100.vcxproj]
     1>RSADigestEngine.obj : error LNK2001: unresolved external symbol _EVP_PKEY_cmp [E:\DevWork\Poco\poco-1.9.0-all_mysql_5720_openssl_102o\Crypto\Crypto_vs100.vcxproj]
     1>RSAKey.obj : error LNK2001: unresolved external symbol _EVP_PKEY_cmp [E:\DevWork\Poco\poco-1.9.0-all_mysql_5720_openssl_102o\Crypto\Crypto_vs100.vcxproj]
     1>ECKey.obj : error LNK2001: unresolved external symbol _EVP_PKEY_type [E:\DevWork\Poco\poco-1.9.0-all_mysql_5720_openssl_102o\Crypto\Crypto_vs100.vcxproj]
     1>ECKeyImpl.obj : error LNK2001: unresolved external symbol _EVP_PKEY_type [E:\DevWork\Poco\poco-1.9.0-all_mysql_5720_openssl_102o\Crypto\Crypto_vs100.vcxproj]
     :
     1>Done Building Project "E:\DevWork\Poco\poco-1.9.0-all_mysql_5720_openssl_102o\Crypto\Crypto_vs100.vcxproj" (build target(s)) -- FAILED.

Build FAILED.

       "E:\DevWork\Poco\poco-1.9.0-all_mysql_5720_openssl_102o\Crypto\Crypto_vs100.vcxproj" (build target) (1) ->
       (Link target) -> 
         ECKey.obj : error LNK2019: unresolved external symbol _EVP_PKEY_cmp referenced in function "public: __thiscall Poco::Crypto::ECKey::ECKey(class Poco::Crypto::ECKey const &)" (??0ECKey@Crypto@Poco@@QAE@ABV012@@Z) [E:\DevWork\Poco\poco-1.9.0-all_mysql_5720_openssl_102o\Crypto\Crypto_vs100.vcxproj]
         ECKeyImpl.obj : error LNK2001: unresolved external symbol _EVP_PKEY_cmp [E:\DevWork\Poco\poco-1.9.0-all_mysql_5720_openssl_102o\Crypto\Crypto_vs100.vcxproj]
         RSAKeyImpl.obj : error LNK2001: unresolved external symbol _EVP_PKEY_cmp [E:\DevWork\Poco\poco-1.9.0-all_mysql_5720_openssl_102o\Crypto\Crypto_vs100.vcxproj]
         PKCS12Container.obj : error LNK2001: unresolved external symbol _EVP_PKEY_cmp [E:\DevWork\Poco\poco-1.9.0-all_mysql_5720_openssl_102o\Crypto\Crypto_vs100.vcxproj]
         EVPPKey.obj : error LNK2001: unresolved external symbol _EVP_PKEY_cmp [E:\DevWork\Poco\poco-1.9.0-all_mysql_5720_openssl_102o\Crypto\Crypto_vs100.vcxproj]
         ECDSADigestEngine.obj : error LNK2001: unresolved external symbol _EVP_PKEY_cmp [E:\DevWork\Poco\poco-1.9.0-all_mysql_5720_openssl_102o\Crypto\Crypto_vs100.vcxproj]
         CipherFactory.obj : error LNK2001: unresolved external symbol _EVP_PKEY_cmp [E:\DevWork\Poco\poco-1.9.0-all_mysql_5720_openssl_102o\Crypto\Crypto_vs100.vcxproj]
         RSACipherImpl.obj : error LNK2001: unresolved external symbol _EVP_PKEY_cmp [E:\DevWork\Poco\poco-1.9.0-all_mysql_5720_openssl_102o\Crypto\Crypto_vs100.vcxproj]
         RSADigestEngine.obj : error LNK2001: unresolved external symbol _EVP_PKEY_cmp [E:\DevWork\Poco\poco-1.9.0-all_mysql_5720_openssl_102o\Crypto\Crypto_vs100.vcxproj]
         RSAKey.obj : error LNK2001: unresolved external symbol _EVP_PKEY_cmp [E:\DevWork\Poco\poco-1.9.0-all_mysql_5720_openssl_102o\Crypto\Crypto_vs100.vcxproj]
         ECKey.obj : error LNK2001: unresolved external symbol _EVP_PKEY_type [E:\DevWork\Poco\poco-1.9.0-all_mysql_5720_openssl_102o\Crypto\Crypto_vs100.vcxproj]
         ECKeyImpl.obj : error LNK2001: unresolved external symbol _EVP_PKEY_type [E:\DevWork\Poco\poco-1.9.0-all_mysql_5720_openssl_102o\Crypto\Crypto_vs100.vcxproj]
         RSAKeyImpl.obj : error LNK2001: unresolved external symbol _EVP_PKEY_type [E:\DevWork\Poco\poco-1.9.0-all_mysql_5720_openssl_102o\Crypto\Crypto_vs100.vcxproj]
         :
        ..\bin\PocoCryptod.dll : fatal error LNK1120: 129 unresolved externals [E:\DevWork\Poco\poco-1.9.0-all_mysql_5720_openssl_102o\Crypto\Crypto_vs100.vcxproj]

    0 Warning(s)
    227 Error(s)

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXX  BUILD FAILED. EXITING. XXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

0 个答案:

没有答案