我一直在尝试在 64 位 Windows 上构建 p4python,但出现以下链接错误:
Creating library build\temp.win-amd64-2.7\Release\P4API.lib and object build\temp.win-amd64-2.7\Release\P4API.exp
librpc.lib(netssltransport.obj) : error LNK2019: unresolved external symbol SSLeay referenced in function "private: void __cdecl NetSslTransport::ValidateRuntimeVsCompiletimeSSLVersion(class Error *)" (?ValidateRuntimeVsCompiletimeSSLVersion@NetSslTransport@@AEAAXP
EAVError@@@Z)
librpc.lib(netssltransport.obj) : error LNK2019: unresolved external symbol CRYPTO_num_locks referenced in function InitLockCallbacks
librpc.lib(netssltransport.obj) : error LNK2019: unresolved external symbol CRYPTO_set_locking_callback referenced in function InitLockCallbacks
librpc.lib(netssltransport.obj) : error LNK2019: unresolved external symbol CRYPTO_set_id_callback referenced in function InitLockCallbacks
librpc.lib(netssltransport.obj) : error LNK2019: unresolved external symbol CRYPTO_set_dynlock_create_callback referenced in function InitLockCallbacks
librpc.lib(netssltransport.obj) : error LNK2019: unresolved external symbol CRYPTO_set_dynlock_lock_callback referenced in function InitLockCallbacks
librpc.lib(netssltransport.obj) : error LNK2019: unresolved external symbol CRYPTO_set_dynlock_destroy_callback referenced in function InitLockCallbacks
librpc.lib(netssltransport.obj) : error LNK2019: unresolved external symbol SSL_load_error_strings referenced in function "private: void __cdecl NetSslTransport::SslClientInit(class Error *)" (?SslClientInit@NetSslTransport@@AEAAXPEAVError@@@Z)
librpc.lib(netssltransport.obj) : error LNK2019: unresolved external symbol SSLv23_method referenced in function "private: struct ssl_ctx_st * __cdecl NetSslTransport::CreateAndInitializeSslContext(char const *)" (?CreateAndInitializeSslContext@NetSslTransport@@AEA
APEAUssl_ctx_st@@PEBD@Z)
librpc.lib(netssltransport.obj) : error LNK2019: unresolved external symbol SSL_library_init referenced in function "private: void __cdecl NetSslTransport::SslClientInit(class Error *)" (?SslClientInit@NetSslTransport@@AEAAXPEAVError@@@Z)
build\lib.win-amd64-2.7\P4API.pyd : fatal error LNK1120: 10 unresolved externals
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\amd64\\link.exe' failed with exit status 1120
我正在使用为 vs 2015 构建的 64 位 openssl 动态库(包括 libcrypto.lib 和 libssl.lib)构建,并且我正在为 vs 2015 使用 p4api 动态库(从 p4 网站获取)。
我错过了什么?
谢谢