为 amazon-kinesis-video-streams-producer-sdk-cpp 构建依赖项时出错 [重复]

Posted

技术标签:

【中文标题】为 amazon-kinesis-video-streams-producer-sdk-cpp 构建依赖项时出错 [重复]【英文标题】:Error while building dependencies for amazon-kinesis-video-streams-producer-sdk-cpp [duplicate] 【发布时间】:2021-01-13 17:14:02 【问题描述】:

在尝试编译 amazon-kinesis-video-stream-producer-sdk-cpp Repo 时,我遇到依赖项说文件路径太长。

  Checking Build System
  Creating directories for 'project_libopenssl'
  Building Custom Rule C:/SDK/C++/amazon-kinesis-video-streams-producer-sdk-cpp/open-source/local/libopenssl/CMakeLists.txt
  Performing download step (git clone) for 'project_libopenssl'
  Cloning into 'project_libopenssl'...
  Note: switching to 'OpenSSL_1_1_1g'.

  You are in 'detached HEAD' state. You can look around, make experimental
  changes and commit them, and you can discard any commits you make in this
  state without impacting any branches by switching back to a branch.

  If you want to create a new branch to retain commits you create, you may
  do so (now or later) by using -c with the switch command. Example:

    git switch -c <new-branch-name>

  Or undo this operation with:

    git switch -

  Turn off this advice by setting config variable advice.detachedHead to false

  HEAD is now at e2e09d9fba Prepare for 1.1.1g release
  Submodule 'boringssl' (https://boringssl.googlesource.com/boringssl) registered for path 'boringssl'
  Submodule 'krb5' (https://github.com/krb5/krb5) registered for path 'krb5'
  Submodule 'pyca.cryptography' (https://github.com/pyca/cryptography.git) registered for path 'pyca-cryptography'
  Cloning into 'C:/SDK/C++/amazon-kinesis-video-streams-producer-sdk-cpp/open-source/local/libopenssl/build/src/project_libopenssl/boringssl'...
  Cloning into 'C:/SDK/C++/amazon-kinesis-video-streams-producer-sdk-cpp/open-source/local/libopenssl/build/src/project_libopenssl/krb5'...
  Cloning into 'C:/SDK/C++/amazon-kinesis-video-streams-producer-sdk-cpp/open-source/local/libopenssl/build/src/project_libopenssl/pyca-cryptography'...
  Submodule path 'boringssl': checked out '2070f8ad9151dc8f3a73bffaa146b5e6937a583f'
  Submodule path 'krb5': checked out '890ca2f401924cdcb88f493950b04700bbe52db3'
CUSTOMBUILD : error : unable to create file vectors/cryptography_vectors/x509/PKITS_data/certpairs/RolloverfromPrintableStringtoUTF8StringCACertforwardcrossCertificatePair.cp: Filename too long [C:\SDK\C++\amazon-kinesis-video-streams-producer-sdk-cpp\open-source\local\libopenssl\project_libopenssl.vcxproj]
CUSTOMBUILD : error : unable to create file vectors/cryptography_vectors/x509/PKITS_data/certpairs/RolloverfromPrintableStringtoUTF8StringCACertreversecrossCertificatePair.cp: Filename too long [C:\SDK\C++\amazon-kinesis-video-streams-producer-sdk-cpp\open-source\local\libopenssl\project_libopenssl.vcxproj]
CUSTOMBUILD : error : unable to create file vectors/cryptography_vectors/x509/PKITS_data/certpairs/SeparateCertificateandCRLKeysCA2CertificateSigningCACertforwardcrossCerificatePair.cp: Filename too long [C:\SDK\C++\amazon-kinesis-video-streams-producer-sdk-cpp\open-source\local\libopenssl\project_libopenssl.vcxproj]
CUSTOMBUILD : error : unable to create file vectors/cryptography_vectors/x509/PKITS_data/certpairs/SeparateCertificateandCRLKeysCA2CertificateSigningCACertreversecrossCerificatePair.cp: Filename too long [C:\SDK\C++\amazon-kinesis-video-streams-producer-sdk-cpp\open-source\local\libopenssl\project_libopenssl.vcxproj]
CUSTOMBUILD : error : unable to create file vectors/cryptography_vectors/x509/PKITS_data/certpairs/SeparateCertificateandCRLKeysCertificateSigningCACertforwardcrossCertificatePair.cp: Filename too long [C:\SDK\C++\amazon-kinesis-video-streams-producer-sdk-cpp\open-source\local\libopenssl\project_libopenssl.vcxproj]
CUSTOMBUILD : error : unable to create file vectors/cryptography_vectors/x509/PKITS_data/certpairs/SeparateCertificateandCRLKeysCertificateSigningCACertreversecrossCertificatePair.cp: Filename too long [C:\SDK\C++\amazon-kinesis-video-streams-producer-sdk-cpp\open-source\local\libopenssl\project_libopenssl.vcxproj]
CUSTOMBUILD : error : unable to create file vectors/cryptography_vectors/x509/PKITS_data/certpairs/requireExplicitPolicy7subsubsubCARE2RE4CertforwardcrossCertificatePair.cp: Filename too long [C:\SDK\C++\amazon-kinesis-video-streams-producer-sdk-cpp\open-source\local\libopenssl\project_libopenssl.vcxproj]
CUSTOMBUILD : error : unable to create file vectors/cryptography_vectors/x509/PKITS_data/certpairs/requireExplicitPolicy7subsubsubCARE2RE4CertreversecrossCertificatePair.cp: Filename too long [C:\SDK\C++\amazon-kinesis-video-streams-producer-sdk-cpp\open-source\local\libopenssl\project_libopenssl.vcxproj]
  Unable to checkout '09403100de2f6f1cdd0d484dcb8e620f1c335c8f' in submodule path 'pyca-cryptography'
  CMake Error at C:/SDK/C++/amazon-kinesis-video-streams-producer-sdk-cpp/open-source/local/libopenssl/build/tmp/project_libopenssl-gitclone.cmake:52 (message):
    Failed to update submodules in:
    'C:/SDK/C++/amazon-kinesis-video-streams-producer-sdk-cpp/open-source/local/libopenssl/build/src/project_libopenssl'


CMake Error at dependency/libkvscproducer/kvscproducer-src/CMake/Utilities.cmake:93 (message):
  CMake step for libopenssl failed: 1
Call Stack (most recent call first):
  dependency/libkvscproducer/kvscproducer-src/CMakeLists.txt:64 (build_dependency)


-- Configuring incomplete, errors occurred!
See also "C:/SDK/C++/amazon-kinesis-video-streams-producer-sdk-cpp/build/CMakeFiles/CMakeOutput.log".

我可能做错了什么。让我知道这是否可能是回购的问题,我会在那里将其作为问题提出。 提前致谢。

【问题讨论】:

特定问题已解决,但您可以在此处issue 跟进提交的 OpenSSL 库问题。注意:这适用于为 GSstreamer 寻找安装 kvsink(Kinesis Video)插件的任何人。 请不要在标题中加上“已解决”。 【参考方案1】:

我认为这与您的 git 配置有关。尝试修改git支持长路径

git config --system core.longpaths true

这将允许 4096 个字符的文件路径。

【讨论】:

非常感谢,已解决。但是我在安装 OpenSSL 库时遇到了另一个问题。我已经向aws提出了一个问题,以某种方式解决它。也许替代品将是以前的 OpenSSL 工作版本。【参考方案2】:

git config --system core.longpaths true 应该可以解决您的问题

【讨论】:

以上是关于为 amazon-kinesis-video-streams-producer-sdk-cpp 构建依赖项时出错 [重复]的主要内容,如果未能解决你的问题,请参考以下文章

SQL判断字段是不是为空,为NULL

2021-11-26:() 分值为2, (()) 分值为3, ((())) 分值为4, 也就是说,每包裹一层,分数就是里面的分值+1。 ()() 分值为2 * 2, (())() 分值为3 * 2。(

java怎么判断对象为null

码农八荣八耻

pandas把dataframe的数据列转化为索引列实战:单列转化为索引多列转化为复合索引

指定为非空的参数为空:无法更新 Spring Boot jpa 中的单个实体字段。导致指定为非空的参数为空