Vcpkg安装指定版本包或自定义安装包

news2024/11/22 17:28:27

文章目录

    • 前言
    • 寻找版本
    • 安装
    • 后话

前言

windows一直用着vcpkg作为C++跨平台开发的包管理,有些依赖要指定版本库,vcpkg目前最新的openssl版本是3.1.0,我想安装其他版本为例,开始本教程


寻找版本

openssl举例,在vcpkg目录中有versions文件夹存在每个包的历史版本, openssl是o为开头,找到o-文件夹即可。E:\vcpkg\versions\o-\openssl.json

{
  "versions": [
    {
      "git-tree": "b123beef6759b490ff8679b5cd4db0f721a2808a",
      "version": "3.1.0",
      "port-version": 1
    },
    {
      "git-tree": "179a1ad3f5a5bbcb77f2e00688e4c467f03d4311",
      "version": "3.1.0",
      "port-version": 0
    },
    {
      "git-tree": "3fbd85566107cc3a76ed800844569f1a7503f9d6",
      "version": "3.0.8",
      "port-version": 2
    },
    {
      "git-tree": "17ce011827417025d6a29924ace0a474f1689c65",
      "version": "3.0.8",
      "port-version": 1
    },
    {
      "git-tree": "9cd36489fc65db87c4cd94ac606abd05c1db8f2d",
      "version": "3.0.8",
      "port-version": 0
    },
    {
      "git-tree": "71beae5ba81d9198d1ca12024325630b6ad81446",
      "version": "3.0.7",
      "port-version": 2
    },
    {
      "git-tree": "a2607b45f60f01df2d549c97a51f5aa558ce97e9",
      "version": "3.0.7",
      "port-version": 1
    },
    {
      "git-tree": "09701bf7506bd0d161bf671eff1c7f5b3d73e3a9",
      "version": "3.0.7",
      "port-version": 0
    },
    {
      "git-tree": "067a790dfd1559e77d5a199ccbe982322882d667",
      "version": "3.0.5",
      "port-version": 5
    },
    {
      "git-tree": "557ff31f9a64f01cd0d98dd44793ce3c7fd32893",
      "version": "3.0.5",
      "port-version": 4
    },
    {
      "git-tree": "d4fd408544a2a6635ce994badc226aa945c8f78a",
      "version": "3.0.5",
      "port-version": 3
    },
    {
      "git-tree": "1172be56343ba751b0fe10a0fbb6acedc7871e65",
      "version": "3.0.5",
      "port-version": 2
    },
    {
      "git-tree": "3b7cc4dec346a7593959636aa8cc266240d92b7f",
      "version": "3.0.5",
      "port-version": 1
    },
    {
      "git-tree": "6f3d4db3ea7bcbac9c79e8beb24c0a33c4da3e96",
      "version": "3.0.5",
      "port-version": 0
    },
    {
      "git-tree": "b300461cf187df328c5d2269448840306f64a4e1",
      "version": "3.0.4",
      "port-version": 0
    },
    {
      "git-tree": "cdd8b7c5c9ebba05598bc90a58f224f13cf0b611",
      "version": "3.0.3",
      "port-version": 2
    },
    {
      "git-tree": "1ac5c972c2c6c9af050334b2f7a41de1253c6a5e",
      "version": "3.0.3",
      "port-version": 1
    },
    {
      "git-tree": "973408910bc03c5a350f502080548a0d1ac68352",
      "version": "3.0.3",
      "port-version": 0
    },
    {
      "git-tree": "f521f59b704e7bebbddd28929f61f3911b8c7cb4",
      "version": "3.0.2",
      "port-version": 3
    },
    {
      "git-tree": "66e7ff434d21a4fc00cab9bbe6167db295ffefd3",
      "version": "3.0.2",
      "port-version": 2
    },
    {
      "git-tree": "3505d3717ae864160fdb273eb2ec9d614eb6711e",
      "version": "3.0.2",
      "port-version": 1
    },
    {
      "git-tree": "2ba2e59ee4f32c11e30aeccc0ecabc09b69c5d22",
      "version": "3.0.2",
      "port-version": 0
    },
    {
      "git-tree": "06b9e0464af9c7c73227ba9f0fa93c77ef62496e",
      "version-string": "1.1.1n",
      "port-version": 1
    },
    {
      "git-tree": "7e4d802e3bde4154c227c0dd1da75c719be9f07a",
      "version-string": "1.1.1n",
      "port-version": 0
    },
    {
      "git-tree": "29c9d32a703896143a51c55f0b7ae4298684afd6",
      "version-string": "1.1.1m",
      "port-version": 2
    },
    {
      "git-tree": "9b8e2ac096b1cd8782137a853c5fc76e07c2af9a",
      "version-string": "1.1.1m",
      "port-version": 1
    },
    {
      "git-tree": "1dbcaacad14ed0761323aa12c13e917270153594",
      "version-string": "1.1.1m",
      "port-version": 0
    },
    {
      "git-tree": "d25384246619019a1e44f018546cdfcaf1800174",
      "version-string": "1.1.1l",
      "port-version": 4
    },
    {
      "git-tree": "83369bdefab234d8570ac2c0f3b616b0c4ab6cdf",
      "version-string": "1.1.1l",
      "port-version": 3
    },
    {
      "git-tree": "d5310e60291032390ab8c893794f6044a7b9ae04",
      "version-string": "1.1.1l",
      "port-version": 2
    },
    {
      "git-tree": "6d19a647704efae9398b178a0012140c1f1ee8b8",
      "version-string": "1.1.1l",
      "port-version": 1
    },
    {
      "git-tree": "1916410d0a836cb70be2341fa3ec3cce74d25267",
      "version-string": "1.1.1l",
      "port-version": 0
    },
    {
      "git-tree": "80b86b6b857d1b7bbb2c24cfcded13c28a4c3e81",
      "version-string": "1.1.1k",
      "port-version": 8
    },
    {
      "git-tree": "affa6f8de25994a485d4310cb56ddbc0df9ac705",
      "version-string": "1.1.1k",
      "port-version": 7
    },
    {
      "git-tree": "b96689b1d7a8ec6f50f40f4e2a6e36d199dc69a3",
      "version-string": "1.1.1k",
      "port-version": 6
    },
    {
      "git-tree": "9cbfcf1a35e62330f5ebddca9d0f1ea493172ef7",
      "version-string": "1.1.1k",
      "port-version": 5
    },
    {
      "git-tree": "029caa3289fc2b99107efaf987c23fd65f5eac97",
      "version-string": "1.1.1k",
      "port-version": 4
    },
    {
      "git-tree": "9f4e7983d2a78b8e865d0444d90ef19ce3a9636c",
      "version-string": "1.1.1k",
      "port-version": 3
    },
    {
      "git-tree": "dcaa59e72471884bf333486e49be386dd4a3da4f",
      "version-string": "1.1.1k",
      "port-version": 2
    },
    {
      "git-tree": "24a9f866c10144f3dcce1b8972d43170cfad3201",
      "version-string": "1.1.1k",
      "port-version": 1
    },
    {
      "git-tree": "dc279487c79f2b009333d7888799f3f9f83d8765",
      "version-string": "1.1.1k",
      "port-version": 0
    },
    {
      "git-tree": "47f6dd2398634984759b609529bf35482957da54",
      "version-string": "1.1.1j",
      "port-version": 2
    },
    {
      "git-tree": "2695b5d292f012836d962b22293d4dc081f75bff",
      "version-string": "1.1.1j",
      "port-version": 1
    },
    {
      "git-tree": "009a7ee95741b939859c77b8e1ddd6c146ffe54e",
      "version-string": "1.1.1j",
      "port-version": 0
    },
    {
      "git-tree": "30228fb5d272c8554937ac94b77fb971249c7c8a",
      "version-string": "1.1.1i",
      "port-version": 0
    },
    {
      "git-tree": "a40ca65d6233b78873ab046be9312cc119f2a3b5",
      "version-string": "1.1.1h",
      "port-version": 5
    },
    {
      "git-tree": "bd308eddff03351b29f403399e053e130581076a",
      "version-string": "1.1.1h",
      "port-version": 4
    },
    {
      "git-tree": "22aba6aaaafcea524467c9b42780cbc271c1946c",
      "version-string": "1.1.1h",
      "port-version": 3
    },
    {
      "git-tree": "db43863b6d477af0975455eea302f2f3981b7579",
      "version-string": "1.1.1h",
      "port-version": 2
    },
    {
      "git-tree": "3d5b8bfd0984b72b432b3d2fb4447dd306e41d0a",
      "version-string": "1.1.1h",
      "port-version": 1
    },
    {
      "git-tree": "10b21b67d6f259baa92845ba0ba06ebb480fe0f7",
      "version-string": "1.1.1g",
      "port-version": 1
    },
    {
      "git-tree": "e96ecf6eebbc0c8356771548127c077e3e7bc676",
      "version-string": "1.1.1g",
      "port-version": 0
    },
    {
      "git-tree": "a54c371df1a58c492721227b808bef69d4c0b6bd",
      "version-string": "1.1.1d",
      "port-version": 0
    },
    {
      "git-tree": "0848995115a67c1818f5f9f2b667083d74dda046",
      "version-string": "1",
      "port-version": 0
    },
    {
      "git-tree": "0a8165857ba19bdc061ef32acd6b7bad442480ed",
      "version-string": "0",
      "port-version": 0
    },
    {
      "git-tree": "39d1773390a9817dd776d1d90e809d873437daa7",
      "version-string": "1.0.2o-3",
      "port-version": 0
    },
    {
      "git-tree": "86a392547f55fe99da0105cfdb2ce012e0fa5f94",
      "version-string": "1.0.2o-2",
      "port-version": 0
    },
    {
      "git-tree": "0ae9343f2814cfcfdef9445990d7b0c90495db52",
      "version-string": "1.0.2o-1",
      "port-version": 0
    },
    {
      "git-tree": "74c8e8bdb3ecafc4d95aabbd076dfbb41db0a366",
      "version-string": "1.0.2o",
      "port-version": 0
    },
    {
      "git-tree": "b0c5618831af164aab62f9b446b225fbf2b33b5e",
      "version-string": "1.0.2n-3",
      "port-version": 0
    },
    {
      "git-tree": "f1cb0e39d975d255b9dfa2e55802cab0b9fc8355",
      "version-string": "1.0.2n-2",
      "port-version": 0
    },
    {
      "git-tree": "cd538938214a1f0865641dfbcc9700182e1e5bd9",
      "version-string": "1.0.2n-1",
      "port-version": 0
    },
    {
      "git-tree": "096e9e1bda009fd51e1b62a6c4b0f0808f22ca02",
      "version-string": "1.0.2n",
      "port-version": 0
    },
    {
      "git-tree": "ae1fc122ee308f89f77bf72f6156ea48ad903e79",
      "version-string": "1.0.2m",
      "port-version": 0
    },
    {
      "git-tree": "799259eabc46bde9958f9d285e4e3695836dec4d",
      "version-string": "1.0.2l-3",
      "port-version": 0
    },
    {
      "git-tree": "06e68e4988301123770548bbe51a3f2a61993d0f",
      "version-string": "1.0.2l-2",
      "port-version": 0
    },
    {
      "git-tree": "71c0ea9b022834e916b553b9239cf9e8df4af53b",
      "version-string": "1.0.2l-1",
      "port-version": 0
    },
    {
      "git-tree": "4bbe7d4ddd39dbaa01b0d1920fa1cbf40e6eea4f",
      "version-string": "1.0.21-1",
      "port-version": 0
    },
    {
      "git-tree": "c09f7eeae92108f42f6a7b8f887ee48152478697",
      "version-string": "1.0.2k-5",
      "port-version": 0
    },
    {
      "git-tree": "91a923bc001d2dd39c52ed8ad976da371d47856a",
      "version-string": "1.0.2k-4",
      "port-version": 0
    },
    {
      "git-tree": "fad4170dd59ac0c0690fee44ccae3b8f6a8e67c5",
      "version-string": "1.0.2k-3",
      "port-version": 0
    },
    {
      "git-tree": "d78f2dceb034c24a9f19f48dda80181fc6500a3a",
      "version-string": "1.0.2k-2",
      "port-version": 0
    },
    {
      "git-tree": "f8f125d46bd3e1a3680f33d0d7c7fcf59870efaa",
      "version-string": "1.0.2k-1",
      "port-version": 0
    },
    {
      "git-tree": "53caaba6ea0df814d3c90589ca9d93a327adaac5",
      "version-string": "1.0.2j-2",
      "port-version": 0
    },
    {
      "git-tree": "799207c0101ea8fb8e97b59c1855b1cae3148bd4",
      "version-string": "1.0.2j-1",
      "port-version": 0
    },
    {
      "git-tree": "f18f7a91cacba1703f571e5c0a06c0f6b0d2a13f",
      "version-string": "1.0.2j",
      "port-version": 0
    },
    {
      "git-tree": "c6ad91dbdec35b4d6cb404f39a5a2af454d2ea4d",
      "version-string": "1.0.2h-1",
      "port-version": 0
    },
    {
      "git-tree": "818861b2d2b76893b113cdfef7c2bd54fae75272",
      "version-string": "1.0.2j",
      "port-version": 0
    },
    {
      "git-tree": "12fd1375cd5c644b9eccc11415eff7e056f58d58",
      "version-string": "1.0.2h-1",
      "port-version": 0
    },
    {
      "git-tree": "3e5163bcf41573dd2bc14130db52e77599f4131b",
      "version-string": "1.0.2h",
      "port-version": 0
    }
  ]
}

这里记录着每个版本的git-tree, 找到自己想要的版本即可

安装

根据openssl.json,安装openssl_1.1.1n版本举例


在vcpkg根目录下,新建一个vcpkg.json文件, 内容:

{
  "dependencies": [
    {
      "name": "openssl"
    }
  ],
  "overrides": [
    {
      "name": "openssl",
      "version-string": "1.1.1n#1"
    }
  ]
}

注意区分"version" "version-string"

保存之后,用cmd/ps 执行命令

  1. vcpkg x-update-baseline --add-initial-baseline
  2. vcpkg install
PS E:\vcpkg> vcpkg x-update-baseline --add-initial-baseline
updated registry 'https://github.com/microsoft/vcpkg': baseline '' -> '657bfe23f401f234d2bea75c36f79777ad944d21'
PS E:\vcpkg> vcpkg install
Detecting compiler hash for triplet x64-windows...
-- Automatically setting HTTP(S)_PROXY environment variables to "127.0.0.1:7890".
A suitable version of powershell-core was not found (required v7.2.8) Downloading portable powershell-core 7.2.8...
Downloading powershell-core...
https://github.com/PowerShell/PowerShell/releases/download/v7.2.8/PowerShell-7.2.8-win-x86.zip->E:\vcpkg\downloads\PowerShell-7.2.8-win-x86.zip
Downloading https://github.com/PowerShell/PowerShell/releases/download/v7.2.8/PowerShell-7.2.8-win-x86.zip
Extracting powershell-core...
The following packages will be removed:
    vcpkg-cmake-get-vars:x64-windows
The following packages will be rebuilt:
  * vcpkg-cmake[core]:x64-windows -> 2022-12-22 -- E:\vcpkg\buildtrees\versioning_\versions\vcpkg-cmake\1913f86defd2140d0a6751be2d51952e4090efa4
  * vcpkg-cmake-config[core]:x64-windows -> 2022-02-06#1 -- E:\vcpkg\buildtrees\versioning_\versions\vcpkg-cmake-config\8d54cc4f487d51b655abec5f9c9c3f86ca83311f
The following packages will be built and installed:
    openssl[core]:x64-windows -> 1.1.1n#1 -- E:\vcpkg\buildtrees\versioning_\versions\openssl\06b9e0464af9c7c73227ba9f0fa93c77ef62496e
Additional packages (*) will be modified to complete this operation.
Removing 1/6 vcpkg-cmake-get-vars:x64-windows
Elapsed time to handle vcpkg-cmake-get-vars:x64-windows: 1.54 ms
Removing 2/6 vcpkg-cmake-config:x64-windows
Elapsed time to handle vcpkg-cmake-config:x64-windows: 1.33 ms
Removing 3/6 vcpkg-cmake:x64-windows
Elapsed time to handle vcpkg-cmake:x64-windows: 1.56 ms
Restored 0 package(s) from C:\Users\NueXini\AppData\Local\vcpkg\archives in 197 us. Use --debug to see more details.
Installing 4/6 vcpkg-cmake-config:x64-windows...
Building vcpkg-cmake-config[core]:x64-windows...
-- Installing port from location: E:\vcpkg\buildtrees\versioning_\versions\vcpkg-cmake-config\8d54cc4f487d51b655abec5f9c9c3f86ca83311f
-- Installing: E:/vcpkg/packages/vcpkg-cmake-config_x64-windows/share/vcpkg-cmake-config/vcpkg_cmake_config_fixup.cmake
-- Installing: E:/vcpkg/packages/vcpkg-cmake-config_x64-windows/share/vcpkg-cmake-config/vcpkg-port-config.cmake
-- Installing: E:/vcpkg/packages/vcpkg-cmake-config_x64-windows/share/vcpkg-cmake-config/copyright
-- Performing post-build validation
A suitable version of 7zip was not found (required v21.7.0) Downloading portable 7zip 21.7.0...
Downloading 7zip...
https://www.7-zip.org/a/7z2107-extra.7z->E:\vcpkg\downloads\7z2107-extra.7z
Downloading https://www.7-zip.org/a/7z2107-extra.7z
Extracting 7zip...
Stored binary cache: "C:\Users\NueXini\AppData\Local\vcpkg\archives\3b\3b0e3878ddaad3fab84e48119c72c051272a3a80472873837df6f49158146fb8.zip"
Elapsed time to handle vcpkg-cmake-config:x64-windows: 3 s
Installing 5/6 vcpkg-cmake:x64-windows...
Building vcpkg-cmake[core]:x64-windows...
-- Installing port from location: E:\vcpkg\buildtrees\versioning_\versions\vcpkg-cmake\1913f86defd2140d0a6751be2d51952e4090efa4
-- Installing: E:/vcpkg/packages/vcpkg-cmake_x64-windows/share/vcpkg-cmake/vcpkg_cmake_configure.cmake
-- Installing: E:/vcpkg/packages/vcpkg-cmake_x64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake
-- Installing: E:/vcpkg/packages/vcpkg-cmake_x64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake
-- Installing: E:/vcpkg/packages/vcpkg-cmake_x64-windows/share/vcpkg-cmake/vcpkg-port-config.cmake
-- Installing: E:/vcpkg/packages/vcpkg-cmake_x64-windows/share/vcpkg-cmake/copyright
-- Performing post-build validation
Stored binary cache: "C:\Users\NueXini\AppData\Local\vcpkg\archives\79\799c0cb17da3b0549e9798b252a0788c93bcb758cdaaa8a81c0d09e94c12365b.zip"
Elapsed time to handle vcpkg-cmake:x64-windows: 64 ms
Installing 6/6 openssl:x64-windows...
Building openssl[core]:x64-windows...
-- Installing port from location: E:\vcpkg\buildtrees\versioning_\versions\openssl\06b9e0464af9c7c73227ba9f0fa93c77ef62496e
-- Downloading https://www.openssl.org/source/openssl-1.1.1n.tar.gz;https://www.openssl.org/source/old/1.1.1/openssl-1.1.1n.tar.gz -> openssl-1.1.1n.tar.gz...
-- Downloading https://strawberryperl.com/download/5.32.1.1/strawberry-perl-5.32.1.1-32bit.zip -> strawberry-perl-5.32.1.1-32bit.zip...
-- Extracting source E:/vcpkg/downloads/openssl-1.1.1n.tar.gz
-- Using source at E:/vcpkg/buildtrees/openssl/src/openssl-1-8a70f997ec.clean
-- Downloading https://www.nasm.us/pub/nasm/releasebuilds/2.16.01/win64/nasm-2.16.01-win64.zip -> nasm-2.16.01-win64.zip...
-- Downloading https://download.qt.io/official_releases/jom/jom_1_1_3.zip;https://mirrors.ocf.berkeley.edu/qt/official_releases/jom/jom_1_1_3.zip -> jom_1_1_3.zip...
-- Copying openssl release source files...
-- Copying openssl release source files... done
-- Configure x64-windows-rel
-- Configure x64-windows-rel done
-- Build x64-windows-rel
-- Build x64-windows-rel done
-- Copying openssl debug source files...
-- Copying openssl debug source files... done
-- Configure x64-windows-dbg
-- Configure x64-windows-dbg done
-- Build x64-windows-dbg
-- Build x64-windows-dbg done
CMake Warning at scripts/cmake/vcpkg_copy_pdbs.cmake:44 (message):
  Could not find a matching pdb file for:

      E:/vcpkg/packages/openssl_x64-windows/bin/libcrypto-1_1-x64.dll
      E:/vcpkg/packages/openssl_x64-windows/bin/libssl-1_1-x64.dll
      E:/vcpkg/packages/openssl_x64-windows/debug/bin/libcrypto-1_1-x64.dll
      E:/vcpkg/packages/openssl_x64-windows/debug/bin/libssl-1_1-x64.dll

Call Stack (most recent call first):
  buildtrees/versioning_/versions/openssl/06b9e0464af9c7c73227ba9f0fa93c77ef62496e/windows/portfile.cmake:170 (vcpkg_copy_pdbs)
  buildtrees/versioning_/versions/openssl/06b9e0464af9c7c73227ba9f0fa93c77ef62496e/portfile.cmake:21 (include)
  scripts/ports.cmake:147 (include)


-- Installing: E:/vcpkg/packages/openssl_x64-windows/share/openssl/copyright
-- Fixing pkgconfig file: E:/vcpkg/packages/openssl_x64-windows/lib/pkgconfig/libcrypto.pc
-- Fixing pkgconfig file: E:/vcpkg/packages/openssl_x64-windows/lib/pkgconfig/libssl.pc
-- Fixing pkgconfig file: E:/vcpkg/packages/openssl_x64-windows/lib/pkgconfig/openssl.pc
-- Downloading https://repo.msys2.org/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst;https://www2.futureware.at/~nickoe/msys2-mirror/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst;https://mirror.yandex.ru/mirrors/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst;https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst;https://mirrors.ustc.edu.cn/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst;https://mirror.bit.edu.cn/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst;https://mirror.selfnet.de/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst;https://mirrors.sjtug.sjtu.edu.cn/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst -> msys-mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst...
-- Downloading https://repo.msys2.org/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst;https://www2.futureware.at/~nickoe/msys2-mirror/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst;https://mirror.yandex.ru/mirrors/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst;https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst;https://mirrors.ustc.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst;https://mirror.bit.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst;https://mirror.selfnet.de/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst;https://mirrors.sjtug.sjtu.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst -> msys-mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst...
-- Using msys root at E:/vcpkg/downloads/tools/msys2/9a1ec3f33446b195
-- Fixing pkgconfig file: E:/vcpkg/packages/openssl_x64-windows/debug/lib/pkgconfig/libcrypto.pc
-- Fixing pkgconfig file: E:/vcpkg/packages/openssl_x64-windows/debug/lib/pkgconfig/libssl.pc
-- Fixing pkgconfig file: E:/vcpkg/packages/openssl_x64-windows/debug/lib/pkgconfig/openssl.pc
-- Installing: E:/vcpkg/packages/openssl_x64-windows/share/openssl/usage
-- Performing post-build validation
Stored binary cache: "C:\Users\NueXini\AppData\Local\vcpkg\archives\1e\1ef87eac894fe4faf40193e5d6a7efa99d69f33786ff60f961c4ac86b77387b3.zip"
Elapsed time to handle openssl:x64-windows: 3.2 min
Total install time: 3.2 min
The package openssl is compatible with built-in CMake targets:

    find_package(OpenSSL REQUIRED)
    target_link_libraries(main PRIVATE OpenSSL::SSL OpenSSL::Crypto)

以上,就完成了 openssl的1.1.1n版本的安装, 安装在根目录下的vcpkg_installed, 安装完成后如果想正常使用的话可以把根目录下新建的vcpkg.json删掉


后话

更多玩法可以去参考文档

  1. https://learn.microsoft.com/zh-cn/vcpkg/examples/packaging-zipfiles
  2. https://learn.microsoft.com/zh-cn/vcpkg/users/manifests
  3. https://blog.csdn.net/lhkjm/article/details/127596110
  4. https://blog.csdn.net/mmxida/article/details/114043319

enjoy ~

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/417517.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

react3:受控组件(表单默认变成受控)-组件通信 - typescript项目

受控组件:表单 非受控组件表单元素值不受所在组件状态的控制, 我们将这样的表单元素称作: 非受控组件. 受控组件受控组件 : 值受到 React 组件状态控制的表单元素一般是通过 defaultValue 属性, onChange 事件配合将非受控组件变为受控组件. 多表单元素操作 &#…

如果当前node.js版本和项目需要版本不一样,卸载重装其他版本node.js的方法

其实这种node.js版本不一样的问题,可以选择用nvm来管理node.js的不同版本。 此处仅总结卸载当前版本node.js重新安装所需版本node.js的方法 另:现在 用Vite官网里面的 yarn/npm等 的方法,创建Vue3项目——需要12版本的node.js 以下以本人 …

Vue3中readonly 与 shallowReadonly的使用区别?

文章目录前言readonly强行修改readonly:shallowReadonlyshallowReadonly强行修改结果:前言 readonly: 让一个响应式数据变为只读的(深只读)。 shallowReadonly: 让一个响应式数据变为只读的(浅只读&#x…

真正好用的工业品ERP系统应该是什么样的?

一个好用的进销存ERP系统应该有以下特点: 1. 全面覆盖企业经营流程,包括采购、销售、库存、财务等模块,能够实现全方位的管理和控制。 2. 自定义配置,灵活地适应大多数用户的需求。 3. 数据精准、实时化,支持统计分…

基于CALMET诊断模型的高时空分辨率精细化风场模拟技术应用

【查看原文】气象数据相关分析及使用系列:基于CALMET诊断模型的高时空分辨率精细化风场模拟技术应用 在研究流场时,常用观测、模型风洞测试和数值模拟方法进行研究。但时常遇到研究区气象站点分布稀疏,不能代表周边复杂地形的风场。风洞模拟…

day7 线程的取消和清理

线程的取消 意义:随时杀掉一个线程 int pthread_cancel(pthread_t thread); 注意:线程的取消要有取消点才可以,不是说取消就取消,线程的取消点主要是阻塞的系统调用 如果没有取消点,手动设置一个; voi…

【网络应用开发】实验4——会话管理

目录 会话管理预习报告 一、实验目的 二、实验原理 三、实验预习内容 1. 什么是会话,一个会话的生产周期从什么时候,到什么时候结束? 2. 服务器是如何识别管理属于某一个特定客户的会话的? 3. 什么是Cookie,它的…

全网最详细,Python接口自动化测试接口加密实战,框架撸码.......

目录:导读前言一、Python编程入门到精通二、接口自动化项目实战三、Web自动化项目实战四、App自动化项目实战五、一线大厂简历六、测试开发DevOps体系七、常用自动化测试工具八、JMeter性能测试九、总结(尾部小惊喜)前言 如果接口测试仅仅只…

【驱动开发】Windows过滤平台(WFP,Windows Filtering Platform)

文章目录Windows的发展历程TDI简介WFP简介用户态基础过滤引擎(BFE)内核态过滤引擎(KMFE)垫片(Shim)分层(Layer)子层(Sub Layer)过滤器(Filter&…

【微信小程序-原生开发】实用教程20 - 生成海报(实战范例为生成活动海报,内含生成指定页面的小程序二维码,保存图片到手机,canvas 系列教程)

可在系列教程的基础上继续开发,也可以单独使用 【微信小程序-原生开发】系列教程 效果预览 代码实现 点击触发生成海报 在活动详情页,指定点击某图标/按钮,触发跳转到生成海报的页面 pages\components\party\detail\index.js getPoster() …

OpenTex 企业内容管理平台

OpenText 企业内容管理平台 将内容服务与领先应用程序集成,弥合内容孤岛、加快信息流并扩大治理 什么是内容服务集成? 内容服务集成通过将内容管理平台与处于流程核心的独立应用程序和系统连接起来,支持并扩展了 ECM 的传统优势。 最好的内…

【通过Cpython3.9源码看看python字符串对象的创建】

CPython源码解析之PyUnicode_New函数实现 简介 PyUnicode_New是Python源码中用于创建Unicode字符串对象的函数,定义在UnicodeObject.c文件中。该函数接受一个长度参数size和最大字符值参数maxchar(根据传入的最大字符值 maxchar 确定新创建的字符串对象所需的存储…

百度工程师的软件质量与测试随笔

作者 | 百度移动生态质效工程师们 导读 在降本增效、以chatGPT为代表的大模型技术横空出世的背景下,对软件质量和软件测试的领域也带来了巨大冲击,也使得软件质量工作者开始变得焦虑,主要体现在:公司对软件质量从业者的不重视加剧…

SQL Server的执行计划(Execution Plans)

执行计划一、背景二、显示和保存执行计划三、显示估计的执行计划四、显示实际执行计划五、以 XML 格式保存执行计划六、比较和分析执行计划6.1、比较执行计划6.2、分析实际执行计划总结一、背景 为了能够执行查询,SQL Server 数据库引擎必须分析该语句,…

21100颗星的Locust性能测试工具到底有多牛!

一句话:用普通的Python编写可扩展的负载测试,就够了,懂得自然懂! Locust是一个易于使用、可编写脚本和可扩展的性能测试工具。你在常规的Python代码中定义你的用户的行为,而不是受制于一个UI或领域特定的语言&#xff…

HTB-Obscurity

HTB-Obscurity信息收集8080端口立足www-data -> robertrobert -> rootsudo 注入hash捕获信息收集 8080端口 ”如果攻击者不知道你在使用什么软件,你就不会被黑客攻击!“,目标对web的指纹做了某些处理。 “‘SuperSecureServer.py’ in the secre…

【从零开始学Skynet】基础篇(六):MySql数据库安装操作

游戏服务端的另一项重要功能是保存玩家数据,Skynet提供了操作MySQL数据库、MongoDB数据库的模块。1、数据库安装 首先安装Mysql服务器,打开终端输入如下指令: sudo apt-get install mysql-server 按下回车,输入密码后开始安装&a…

秒杀架构(二) -- nginx实现限流

限流(Rate Limitting)是服务降级的一种方式,通过限制系统的输入和输出流量以达到保护系统的目的。比如我们的网站暴露在公网环境中,除了用户的正常访问,网络爬虫、恶意攻击或者大促等突发流量都可能都会对系统造成压力…

OpenCV按指定大小分割图像并保存详细讲解

这几天在忙着整理自己的数据集,使用工业级相机拍了好多高清照片,但是模型训练的时候需要使用512*512像素点大小的图像,而且我的模型设计的时候就已经规定好了训练样本大小。 那就分割呗,把拍的照片按512*512分割一小块一小块的&am…

easyx

普通的画线图什么的 首先我们需要安装一个easyx的图形库&#xff0c;然后把头文件搞出来 #include <stdio.h> #include <easyx.h>//easyx画线啥啥的图形库 #include <graphics.h> #include <math.h> #include <conio.h>//键盘操作的头文件 设…