【发布时间】:2021-06-09 08:53:01
【问题描述】:
我正在尝试使用自定义构建的 openssl 1.1.1i 来构建 poco 库 我按照https://pocoproject.org/docs/00200-GettingStarted.html中给出的说明进行操作
对于 Windows,有 3 个选项。
- 使用 POCO 预构建的 OpenSSL 二进制文件(最简单且推荐)
- 使用 POCO 分发包中的脚本构建 OpenSSL
- 使用第三方预构建的 OpenSSL
我的属于第三种选择
我在 %POCO_BASE% 文件夹中复制了 openssl 人工制品 将 INCLUDE 和 LIB 的环境变量设置为指向正确的路径。 但是当我运行 buildwin 脚本时出现以下错误
build 09-Jun-2021 01:44:18 d:\build-dir\clientsdk-poc-win\downloaded\windows\poco-1.10.1-all\crypto\include\poco\crypto\crypto.h(28): fatal error C1083: Cannot open include file: 'openssl/opensslv.h': No such file or directory (compiling source file src\CipherKey.cpp) [D:\build-dir\CLIENTSDK-POC-WIN\downloaded\windows\poco-1.10.1-all\Crypto\Crypto_vs150.vcxproj]
build 09-Jun-2021 01:44:18 d:\build-dir\clientsdk-poc-win\downloaded\windows\poco-1.10.1-all\crypto\include\poco\crypto\crypto.h(28): fatal error C1083: Cannot open include file: 'openssl/opensslv.h': No such file or directory (compiling source file src\Cipher.cpp) [D:\build-dir\CLIENTSDK-POC-WIN\downloaded\windows\poco-1.10.1-all\Crypto\Crypto_vs150.vcxproj]
build 09-Jun-2021 01:44:18 d:\build-dir\clientsdk-poc-win\downloaded\windows\poco-1.10.1-all\crypto\include\poco\crypto\crypto.h(28): fatal error C1083: Cannot open include file: 'openssl/opensslv.h': No such file or directory (compiling source file src\CipherFactory.cpp) [D:\build-dir\CLIENTSDK-POC-WIN\downloaded\windows\poco-1.10.1-all\Crypto\Crypto_vs150.vcxproj]
build 09-Jun-2021 01:44:18 DigestEngine.cpp
build 09-Jun-2021 01:44:18 ECDSADigestEngine.cpp
build 09-Jun-2021 01:44:18 d:\build-dir\clientsdk-poc-win\downloaded\windows\poco-1.10.1-all\crypto\include\poco\crypto\crypto.h(28): fatal error C1083: Cannot open include file: 'openssl/opensslv.h': No such file or directory (compiling source file src\CipherKeyImpl.cpp) [D:\build-dir\CLIENTSDK-POC-WIN\downloaded\windows\poco-1.10.1-all\Crypto\Crypto_vs150.vcxproj]
build 09-Jun-2021 01:44:18 d:\build-dir\clientsdk-poc-win\downloaded\windows\poco-1.10.1-all\crypto\include\poco\crypto\crypto.h(28): fatal error C1083: Cannot open include file: 'openssl/opensslv.h': No such file or directory (compiling source file src\CipherImpl.cpp) [D:\build-dir\CLIENTSDK-POC-WIN\downloaded\windows\poco-1.10.1-all\Crypto\Crypto_vs150.vcxproj]
build 09-Jun-2021 01:44:18 ECKey.cpp
build 09-Jun-2021 01:44:18 ECKeyImpl.cpp
build 09-Jun-2021 01:44:18 EVPPKey.cpp
build 09-Jun-2021 01:44:18 d:\build-dir\clientsdk-poc-win\downloaded\windows\poco-1.10.1-all\crypto\include\poco\crypto\crypto.h(28): fatal error C1083: Cannot open include file: 'openssl/opensslv.h': No such file or directory (compiling source file src\CryptoException.cpp) [D:\build-dir\CLIENTSDK-POC-WIN\downloaded\windows\poco-1.10.1-all\Crypto\Crypto_vs150.vcxproj]
build 09-Jun-2021 01:44:18 KeyPair.cpp
build 09-Jun-2021 01:44:18 d:\build-dir\clientsdk-poc-win\downloaded\windows\poco-1.10.1-all\crypto\include\poco\crypto\crypto.h(28): fatal error C1083: Cannot open include file: 'openssl/opensslv.h': No such file or directory (compiling source file src\CryptoStream.cpp) [D:\build-dir\CLIENTSDK-POC-WIN\downloaded\windows\poco-1.10.1-all\Crypto\Crypto_vs150.vcxproj]
build 09-Jun-2021 01:44:18 KeyPairImpl.cpp
build 09-Jun-2021 01:44:18 d:\build-dir\clientsdk-poc-win\downloaded\windows\poco-1.10.1-all\crypto\include\poco\crypto\crypto.h(28): fatal error C1083: Cannot open include file: 'openssl/opensslv.h': No such file or directory (compiling source file src\CryptoTransform.cpp) [D:\build-dir\CLIENTSDK-POC-WIN\downloaded\windows\poco-1.10.1-all\Crypto\Crypto_vs150.vcxproj]
build 09-Jun-2021 01:44:18 OpenSSLInitializer.cpp
build 09-Jun-2021 01:44:19 d:\build-dir\clientsdk-poc-win\downloaded\windows\poco-1.10.1-all\crypto\include\poco\crypto\crypto.h(28): fatal error C1083: Cannot open include file: 'openssl/opensslv.h': No such file or directory (compiling source file src\DigestEngine.cpp) [D:\build-dir\CLIENTSDK-POC-WIN\downloaded\windows\poco-1.10.1-all\Crypto\Crypto_vs150.vcxproj]
build 09-Jun-2021 01:44:19 d:\build-dir\clientsdk-poc-win\downloaded\windows\poco-1.10.1-all\crypto\include\poco\crypto\crypto.h(28): fatal error C1083: Cannot open include file: 'openssl/opensslv.h': No such file or directory (compiling source file src\ECDSADigestEngine.cpp) [D:\build-dir\CLIENTSDK-POC-WIN\downloaded\windows\poco-1.10.1-all\Crypto\Crypto_vs150.vcxproj]
build 09-Jun-2021 01:44:19 PKCS12Container.cpp
build 09-Jun-2021 01:44:19 RSACipherImpl.cpp
build 09-Jun-2021 01:44:19 d:\build-dir\clientsdk-poc-win\downloaded\windows\poco-1.10.1-all\crypto\include\poco\crypto\crypto.h(28): fatal error C1083: Cannot open include file: 'openssl/opensslv.h': No such file or directory (compiling source file src\ECKeyImpl.cpp) [D:\build-dir\CLIENTSDK-POC-WIN\downloaded\windows\poco-1.10.1-all\Crypto\Crypto_vs150.vcxproj]
build 09-Jun-2021 01:44:19 d:\build-dir\clientsdk-poc-win\downloaded\windows\poco-1.10.1-all\crypto\include\poco\crypto\crypto.h(28): fatal error C1083: Cannot open include file: 'openssl/opensslv.h': No such file or directory (compiling source file src\EVPPKey.cpp) [D:\build-dir\CLIENTSDK-POC-WIN\downloaded\windows\poco-1.10.1-all\Crypto\Crypto_vs150.vcxproj]
build 09-Jun-2021 01:44:19 RSADigestEngine.cpp
build 09-Jun-2021 01:44:19 d:\build-dir\clientsdk-poc-win\downloaded\windows\poco-1.10.1-all\crypto\include\poco\crypto\crypto.h(28): fatal error C1083: Cannot open include file: 'openssl/opensslv.h': No such file or directory (compiling source file src\ECKey.cpp) [D:\build-dir\CLIENTSDK-POC-WIN\downloaded\windows\poco-1.10.1-all\Crypto\Crypto_vs150.vcxproj]
build 09-Jun-2021 01:44:19 RSAKey.cpp
build 09-Jun-2021 01:44:19 RSAKeyImpl.cpp
build 09-Jun-2021 01:44:19 d:\build-dir\clientsdk-poc-win\downloaded\windows\poco-1.10.1-all\crypto\include\poco\crypto\crypto.h(28): fatal error C1083: Cannot open include file: 'openssl/opensslv.h': No such file or directory (compiling source file src\KeyPair.cpp) [D:\build-dir\CLIENTSDK-POC-WIN\downloaded\windows\poco-1.10.1-all\Crypto\Crypto_vs150.vcxproj]
build 09-Jun-2021 01:44:19 d:\build-dir\clientsdk-poc-win\downloaded\windows\poco-1.10.1-all\crypto\include\poco\crypto\crypto.h(28): fatal error C1083: Cannot open include file: 'openssl/opensslv.h': No such file or directory (compiling source file src\KeyPairImpl.cpp) [D:\build-dir\CLIENTSDK-POC-WIN\downloaded\windows\poco-1.10.1-all\Crypto\Crypto_vs150.vcxproj]
build 09-Jun-2021 01:44:19 X509Certificate.cpp
build 09-Jun-2021 01:44:19 d:\build-dir\clientsdk-poc-win\downloaded\windows\poco-1.10.1-all\crypto\include\poco\crypto\crypto.h(28): fatal error C1083: Cannot open include file: 'openssl/opensslv.h': No such file or directory (compiling source file src\OpenSSLInitializer.cpp) [D:\build-dir\CLIENTSDK-POC-WIN\downloaded\windows\poco-1.10.1-all\Crypto\Crypto_vs150.vcxproj]
build 09-Jun-2021 01:44:19 d:\build-dir\clientsdk-poc-win\downloaded\windows\poco-1.10.1-all\crypto\include\poco\crypto\crypto.h(28): fatal error C1083: Cannot open include file: 'openssl/opensslv.h': No such file or directory (compiling source file src\PKCS12Container.cpp) [D:\build-dir\CLIENTSDK-POC-WIN\downloaded\windows\poco-1.10.1-all\Crypto\Crypto_vs150.vcxproj]
build 09-Jun-2021 01:44:19 d:\build-dir\clientsdk-poc-win\downloaded\windows\poco-1.10.1-all\crypto\include\poco\crypto\crypto.h(28): fatal error C1083: Cannot open include file: 'openssl/opensslv.h': No such file or directory (compiling source file src\RSACipherImpl.cpp) [D:\build-dir\CLIENTSDK-POC-WIN\downloaded\windows\poco-1.10.1-all\Crypto\Crypto_vs150.vcxproj]
build 09-Jun-2021 01:44:19 d:\build-dir\clientsdk-poc-win\downloaded\windows\poco-1.10.1-all\crypto\include\poco\crypto\crypto.h(28): fatal error C1083: Cannot open include file: 'openssl/opensslv.h': No such file or directory (compiling source file src\RSAKey.cpp) [D:\build-dir\CLIENTSDK-POC-WIN\downloaded\windows\poco-1.10.1-all\Crypto\Crypto_vs150.vcxproj]
build 09-Jun-2021 01:44:19 d:\build-dir\clientsdk-poc-win\downloaded\windows\poco-1.10.1-all\crypto\include\poco\crypto\crypto.h(28): fatal error C1083: Cannot open include file: 'openssl/opensslv.h': No such file or directory (compiling source file src\RSAKeyImpl.cpp) [D:\build-dir\CLIENTSDK-POC-WIN\downloaded\windows\poco-1.10.1-all\Crypto\Crypto_vs150.vcxproj]
build 09-Jun-2021 01:44:19 d:\build-dir\clientsdk-poc-win\downloaded\windows\poco-1.10.1-all\crypto\include\poco\crypto\crypto.h(28): fatal error C1083: Cannot open include file: 'openssl/opensslv.h': No such file or directory (compiling source file src\RSADigestEngine.cpp) [D:\build-dir\CLIENTSDK-POC-WIN\downloaded\windows\poco-1.10.1-all\Crypto\Crypto_vs150.vcxproj]
build 09-Jun-2021 01:44:19 d:\build-dir\clientsdk-poc-win\downloaded\windows\poco-1.10.1-all\crypto\include\poco\crypto\crypto.h(28): fatal error C1083: Cannot open include file: 'openssl/opensslv.h': No such file or directory (compiling source file src\X509Certificate.cpp) [D:\build-dir\CLIENTSDK-POC-WIN\downloaded\windows\poco-1.10.1-all\Crypto\Crypto_vs150.vcxproj]
任何想法都会受到赞赏。
提前致谢。
【问题讨论】: