VCPKG修改Hash安装eigen3
用VCPKG安装eigen3时,出现以下错误:
Error: Failed to download from mirror set:
File does not have the expected hash:
url : [ https://gitlab.com/libeigen/eigen/-/archive/3.4.0/eigen-3.4.0.tar.gz ]
File path : [ E:\vcpkg\downloads\libeigen-eigen-3.4.0.tar.gz.6808.part ]
Expected hash : [ ba75ecb760e32acf4ceaf27115468e65d4f77c44f8d519b5a13e7940af2c03a304ad433368cb6d55431f307c5c39e2666ab41d34442db3cf441638e51f5c3b6a ]
Actual hash : [ c16161558323c340bf48d18bb28e78f45a505ea0d9579ef746c78c5513b84af92db6435dd839573cc27c8558de83ad7c25b5d57e1b74677f3022c0dc4f6d3765 ]
手动去gitlab下载,去engen官网下载代码,用Hasher Lite计算SHA512就是c16161558323c340bf48d18bb28e78f45a505ea0d9579ef746c78c5513b84af92db6435dd839573cc27c8558de83ad7c25b5d57e1b74677f3022c0dc4f6d3765。
无奈,只好修改E:\vcpkg\ports\eigen3\portfile.cmake,匹配实际的SHA512。
参考
posted on 2023-03-29 10:41 OctoberKey 阅读(366) 评论(0) 收藏 举报
浙公网安备 33010602011771号