gpt4 book ai didi

c++ - 在MSVC上打开vulkan-1.lib时,Azure Devops测试管道LNK1107,但在GCC上工作正常

转载 作者:行者123 更新时间:2023-12-02 10:29:10 26 4
gpt4 key购买 nike

当前在Azure Devops测试管道中存在链接器错误:

##[error]lib\static\x64\vulkan-1.lib(0,0): Error LNK1107: invalid or corrupt file: cannot read at 0x82
lib\static\x64\vulkan-1.lib : fatal error LNK1107: invalid or corrupt file: cannot read at 0x82 [d:\a\1\s\Rhea\Rhea.vcxproj]
Done Building Project "d:\a\1\s\Rhea\Rhea.vcxproj" (default targets) -- FAILED.
这仅在尝试在构建计算机上的MSVC上构建时发生。构建计算机上的GCC可以正常工作,使用MSVC的本地计算机也可以正常编译。
这是testpipeline.yml:
trigger:
- master

strategy:
matrix:
x64-Debug:
configuration: 'debug'
architecture: 'x64'
x64-Release:
configuration: 'release'
architecture: 'x64'

pool:
vmImage: 'windows-2019'

steps:
- checkout: self
submodules: true

- bash: chmod -R 755 ./
displayName: "Elevate Bash"

#Windows
- bash: ./vendor/premake/win/premake5.exe vs2019 --standalone
displayName: "Premake Windows"
condition: eq( variables['Agent.OS'], 'Windows_NT' )

#Compile with visual studio
- task: VSBuild@1
inputs:
solution: 'RheaDev.sln'
configuration: $(configuration)
msbuildArchitecture: $(architecture)
displayName: "Build Project"

最佳答案

用GitLFS标记,并且管道没有标记,因此文件不正确。

关于c++ - 在MSVC上打开vulkan-1.lib时,Azure Devops测试管道LNK1107,但在GCC上工作正常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62981558/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com