繁体   English   中英

在 windows 上构建 poco c++ 库

[英]build poco c++ library on windows

我正在尝试在 windows 10(VS 2012)上使用 openssl 构建 poco 库(c++)。 使用以下 cmd 文件:

@echo off
set INCLUDE=c:\openssl\include
set LIB=c:\openssl\lib
set _IsNativeEnvironment=true
call "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat" amd64
call "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\amd64\vcvars64.bat"
buildwin 110 build all release x64 nosamples notests devenv

我收到链接错误:

1>------ Build started: Project: Crypto, Configuration: release_shared x64 ------
1>  Datei *.dll nicht gefunden
1>  Datei *.lib nicht gefunden
1>     Creating library ..\lib64\PocoCrypto.lib and object ..\lib64\PocoCrypto.exp
1>ECKey.obj : error LNK2001: unresolved external symbol EVP_PKEY_type
1>ECKeyImpl.obj : error LNK2001: unresolved external symbol EVP_PKEY_type
1>RSAKeyImpl.obj : error LNK2001: unresolved external symbol EVP_PKEY_type
1>PKCS12Container.obj : error LNK2001: unresolved external symbol EVP_PKEY_type
1>EVPPKey.obj : error LNK2019: unresolved external symbol EVP_PKEY_type referenced in function "private: void __cdecl Poco::Crypto::EVPPKey::newECKey(char const *)" (?newECKey@EVPPKey@Crypto@Poco@@AEAAXPEBD@Z)
...

(没有找到日期 *.dll nicht gefunden == 文件 *.dll 未找到)。

如果我删除文件“组件”中的加密(如果我想使用 https 可以吗?),我收到以下错误:

1>------ Build started: Project: NetSSL_OpenSSL, Configuration: release_shared x64 ------
1>     Creating library ..\lib64\PocoNetSSL.lib and object ..\lib64\PocoNetSSL.exp
1>Context.obj : error LNK2019: unresolved external symbol BIO_new_file referenced in function "private: void __cdecl Poco::Net::Context::initDH(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?initDH@Context@Net@Poco@@AEAAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
...

我从“Shining Light”(win64)安装了 openssl。 我还尝试使用从源代码( https://github.com/pocoproject/openssl )构建的 openssl 。 但我得到同样的错误。 有人能帮我吗?!

谢谢! 新宇

好的,如果我删除所有 object 文件:文件夹 obj64,包括 testsuite 中的 obj64,那么一切正常。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM