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"发布于 2020-07-19 23:31:48
标记为GitLFS,而管道不是这样的,所以文件是不正确的。
https://stackoverflow.com/questions/62981558
复制相似问题