{"id":3353,"date":"2022-02-27T01:34:04","date_gmt":"2022-02-26T17:34:04","guid":{"rendered":"https:\/\/blog.iyatt.com\/?p=3353"},"modified":"2024-05-05T14:19:26","modified_gmt":"2024-05-05T06:19:26","slug":"%e6%90%ad%e5%bb%bavscodecmakemsvcvcpkg%e5%bc%80%e5%8f%91%e7%8e%af%e5%a2%83","status":"publish","type":"post","link":"https:\/\/blog.iyatt.com\/?p=3353","title":{"rendered":"\u642d\u5efavscode+cmake+msvc+vcpkg\u5f00\u53d1\u73af\u5883"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 ez-toc-wrap-center counter-hierarchy ez-toc-counter ez-toc-light-blue ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title ez-toc-toggle\" style=\"cursor:pointer\">\u76ee\u5f55<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/blog.iyatt.com\/?p=3353\/#%E8%9E%8D%E5%90%88%E6%90%AD%E9%85%8D\" >\u878d\u5408\u642d\u914d<\/a><\/li><\/ul><\/nav><\/div>\n\n<p>\u6ce8\uff1amsvc \u6bd4\u8f83\u5e9e\u5927\uff0cvcpkg \u91c7\u7528\u6e90\u7801\u7f16\u8bd1\u5b89\u88c5\u4e5f\u4f1a\u5360\u7528\u5f88\u5927\u7a7a\u95f4\u3002\u5982\u679c\u8981\u9009\u62e9\u76f8\u5bf9\u8f7b\u91cf\u7684\u73af\u5883\uff0c\u524d\u5f80\u201c\u642d\u5efa vscode + msys2 \u5f00\u53d1\u73af\u5883\u201d\uff1a<a href=\"https:\/\/blog.iyatt.com\/?p=3541\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/blog.iyatt.com\/?p=3541<\/a><\/p>\n\n\n\n<p>\u2460 vscode \u662f\u4e00\u6b3e\u5341\u5206\u5f3a\u5927\u7684\u4ee3\u7801\u7f16\u8f91\u5668\uff0c\u4e5f\u662f\u6211\u4e00\u76f4\u5728\u7528\u7684\u7f16\u8f91\u5668\uff0c\u4e0d\u7ba1 Windows \u8fd8\u662f Linux \u4e0b\u90fd\u80fd\u5b89\u88c5\u4f7f\u7528\u3002\u53ef\u4ee5\u7528\u8fc7\u5b89\u88c5\u63d2\u4ef6\uff0c\u914d\u5408\u5404\u79cd\u5de5\u5177\u5efa\u7acb\u8d77\u4e00\u4e2a\u4fbf\u6377\u597d\u7528\u7684 \u201cIDE\u201d\u3002<\/p>\n\n\n\n<p>\u4e0b\u8f7d\u5730\u5740\uff1a<a href=\"https:\/\/code.visualstudio.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/code.visualstudio.com\/<\/a><\/p>\n\n\n\n<p>\u2461 CMake\u662f\u4e00\u4e2a\u8de8\u5e73\u53f0\u7684\u5b89\u88c5\uff08\u7f16\u8bd1\uff09\u5de5\u5177\uff0c\u53ef\u4ee5\u7528\u7b80\u5355\u7684\u8bed\u53e5\u6765\u63cf\u8ff0\u6240\u6709\u5e73\u53f0\u7684\u5b89\u88c5(\u7f16\u8bd1\u8fc7\u7a0b)\u3002\u4ed6\u80fd\u591f\u8f93\u51fa\u5404\u79cd\u5404\u6837\u7684makefile\u6216\u8005project\u6587\u4ef6\uff0c\u80fd\u6d4b\u8bd5\u7f16\u8bd1\u5668\u6240\u652f\u6301\u7684C++\u7279\u6027,\u7c7b\u4f3cUNIX\u4e0b\u7684automake\u3002\u53ea\u662f CMake \u7684\u7ec4\u6001\u6863\u53d6\u540d\u4e3a CMakeLists.txt\u3002Cmake \u5e76\u4e0d\u76f4\u63a5\u5efa\u6784\u51fa\u6700\u7ec8\u7684\u8f6f\u4ef6\uff0c\u800c\u662f\u4ea7\u751f\u6807\u51c6\u7684\u5efa\u6784\u6863\uff08\u5982 Unix \u7684 Makefile \u6216 Windows Visual C++ \u7684 projects\/workspaces\uff09\uff0c\u7136\u540e\u518d\u4f9d\u4e00\u822c\u7684\u5efa\u6784\u65b9\u5f0f\u4f7f\u7528\u3002\u8fd9\u4f7f\u5f97\u719f\u6089\u67d0\u4e2a\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u7684\u5f00\u53d1\u8005\u53ef\u4ee5\u7528\u6807\u51c6\u7684\u65b9\u5f0f\u5efa\u6784\u4ed6\u7684\u8f6f\u4ef6\uff0c\u8fd9\u79cd\u53ef\u4ee5\u4f7f\u7528\u5404\u5e73\u53f0\u7684\u539f\u751f\u5efa\u6784\u7cfb\u7edf\u7684\u80fd\u529b\u662f CMake \u548c SCons \u7b49\u5176\u4ed6\u7c7b\u4f3c\u7cfb\u7edf\u7684\u533a\u522b\u4e4b\u5904\u3002  &#8212;&#8212;\u6765\u81ea\u767e\u5ea6\u767e\u79d1<\/p>\n\n\n\n<p>\u4e0b\u8f7d\u5730\u5740\uff1a<a href=\"https:\/\/cmake.org\/download\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/cmake.org\/download\/<\/a><\/p>\n\n\n\n<p>\u2462 msvc \u662f\u5fae\u8f6f\u63d0\u4f9b\u7684 C\/C++ \u7f16\u8bd1\u5668\uff0c\u53ef\u80fd\u5f88\u591a\u4eba\u90fd\u4e0d\u77e5\u9053\u5b83\uff0c\u4f46\u662f\u5176\u5b9e\u53c8\u7528\u8fc7\uff08\u5982\u679c\u4f7f\u7528 Visual Studio \u7f16\u8bd1\u8fc7 C\/C++ \u4ee3\u7801\uff09\u3002\u5766\u767d\u6765\u8bf4 vs \u5355\u7eaf\u4e5f\u53ea\u662f\u4e00\u4e2a\u7f16\u8f91\u5668\uff0c\u53ea\u662f\u76f8\u6bd4\u4e8e vscode\uff0c\u5b83\u5c31\u662f\u201c\u91cd\u578b\u6b66\u5668\u201d\uff0c\u5341\u5206\u5e9e\u5927\uff08\u4e5f\u662f\u6211\u4e0d\u4f7f\u7528\u7684\u4e00\u4e2a\u539f\u56e0\uff09\u3002\u5982\u679c\u8981\u4f7f\u7528 vs \u7f16\u8bd1 C\/C++ \u4ee3\u7801\uff0c\u90a3\u5c31\u9700\u8981\u5b89\u88c5\u7f16\u8bd1\u5668\uff0c\u4e5f\u5c31\u9700\u8981\u6dfb\u52a0 \u201c\u4f7f\u7528 C++ \u7684\u684c\u9762\u5f00\u53d1\u201d \uff0c\u5b83\u5c31\u5305\u542b\u4e86 msvc \u4e5f\u5c31\u662f\u5fae\u8f6f\u7684 C\/C++ \u7f16\u8bd1\u5668\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"617\" height=\"392\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-81.png\" alt=\"\" class=\"wp-image-3354 lazyload\" data-srcset=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-81.png 617w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-81-300x191.png 300w\" data-sizes=\"(max-width: 617px) 100vw, 617px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 617px; --smush-placeholder-aspect-ratio: 617\/392;\" \/><\/figure>\n\n\n\n<p>\u9664\u4e86\u901a\u8fc7 vs \u5b89\u88c5\uff0c\u5fae\u8f6f\u4e5f\u63d0\u4f9b\u5355\u72ec\u5b89\u88c5\u8fd9\u5957\u7f16\u8bd1\u5de5\u5177\u7684\u6e20\u9053\u3002<\/p>\n\n\n\n<p>\u76ee\u524d\u6700\u65b0\u7248\u4e3a 2022\uff0c\u4f46\u662f\u5e76\u4e0d\u5efa\u8bae\uff0c\u53ef\u80fd\u6709\u4e9b\u5f00\u53d1\u5e93\u5e76\u4e0d\u652f\u6301\uff0c\u5efa\u8bae\u7528\u76f8\u5bf9\u6700\u65b0\u7248\u7684\u4e0a\u4e00\u4e2a\u7248\u672c\u3002<\/p>\n\n\n\n<p>MSBuild 2022\uff1a<a href=\"https:\/\/aka.ms\/vs\/17\/release\/vs_BuildTools.exe\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/aka.ms\/vs\/17\/release\/vs_BuildTools.exe<\/a><\/p>\n\n\n\n<p>MSBuild 2019\uff1a<a href=\"https:\/\/aka.ms\/vs\/16\/release\/vs_BuildTools.exe\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/aka.ms\/vs\/16\/release\/vs_BuildTools.exe<\/a><\/p>\n\n\n\n<p>MSBuild 2016\uff1a<a href=\"https:\/\/aka.ms\/vs\/15\/release\/vs_BuildTools.exe\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/aka.ms\/vs\/15\/release\/vs_BuildTools.exe<\/a><\/p>\n\n\n\n<p>\u7ffb\u5230\u5e95\u90e8\uff0c\u5c55\u5f00\u201c\u9002\u7528\u4e8e Visual Studio xxxx \u7684\u5de5\u5177\u201d\uff0c\u6709\u4e00\u4e2a \u201cVisual Studio xxxx \u751f\u6210\u5de5\u5177\u201d\uff0c\u4e0b\u8f7d\u8fd0\u884c\u540e\u52fe\u9009 \u201c\u4f7f\u7528 C++ \u7684\u684c\u9762\u5f00\u53d1\u201d \u4e0b\u8f7d\u5b89\u88c5\u5c31\u884c\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"658\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-82-1024x658.png\" alt=\"\" class=\"wp-image-3355 lazyload\" data-srcset=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-82-1024x658.png 1024w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-82-300x193.png 300w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-82-768x493.png 768w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-82.png 1390w\" data-sizes=\"(max-width: 1024px) 100vw, 1024px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/658;\" \/><\/figure>\n\n\n\n<p>\u2463 vcpkg \u7c7b\u4f3c\u4e00\u4e2a\u5305\u7ba1\u7406\u5de5\u5177\uff0c\u5982 Python \u7684 pip\u3001Debian\uff08Ubuntu\u3001Kali Linux\uff09 \u7684 apt\u3001CentOS \u7684 yum\u3002\u800c vcpkg \u53ef\u4ee5\u8ba9 Windows \u4e5f\u80fd\u4e00\u4e2a\u547d\u4ee4\u5b89\u88c5\u4e1c\u897f\uff0c\u5f53\u7136\u5b83\u4e3b\u8981\u9762\u5411\u5f00\u53d1\uff0c\u50cf OpenCV\u3001FFmpeg\u3001Dlib\u3001TensorFlow \u3001Qt\u3001Gtkmm\u7b49\u7b49\u5f00\u53d1\u5de5\u5177\u5e93\uff0c\u641e\u5f00\u53d1\u5e94\u8be5\u5c31\u77e5\u5230\u914d\u7f6e\u73af\u5883\u6709\u591a\u4e48\u6298\u78e8\uff0c\u901a\u8fc7 vcpkg \u5c31\u7b80\u5355\u5f88\u591a\u4e86\u3002vcpkg \u4e5f\u4e0d\u9650\u4e8e Windows \u4f7f\u7528\uff0c\u5bf9\u4e8e Linux \u4e5f\u662f\u652f\u6301\u7684\uff0c\u4e0d\u8fc7\u5bf9\u4e8e\u6211\u800c\u8a00\uff0c\u4e3b\u8981\u4e5f\u5c31\u662f\u53ef\u4ee5\u65b9\u4fbf Windows \u914d\u7f6e\u73af\u5883\uff0cvcpkg \u5b89\u88c5\u662f\u57fa\u4e8e\u6e90\u7801\u7f16\u8bd1\u7684\uff0c\u8fd9\u4e5f\u662f\u5b83\u80fd\u652f\u6301\u8de8\u5e73\u53f0\u7684\u539f\u56e0\uff0c\u540c\u65f6\u4e5f\u907f\u514d\u4e86\u4e8c\u8fdb\u5236\u6587\u4ef6\u66f4\u9ad8\u6982\u7387\u7684\u4e0d\u517c\u5bb9\u95ee\u9898\u3002<\/p>\n\n\n\n<p>\u600e\u4e48\u5b89\u88c5 vcpkg \uff0c\u600e\u4e48\u4f7f\u7528\u5728\u6587\u6863\u4e2d\u90fd\u6709\uff0c\u89c1\u4e0b\u9762\u94fe\u63a5\u3002<\/p>\n\n\n\n<p>\u5b89\u88c5 vcpkg \u4ee5\u53ca\u4f7f\u7528 vcpkg \u5b89\u88c5\u4e1c\u897f\u90fd\u662f\u4ece github \u83b7\u53d6\u6e90\u7801\uff0c\u5982\u679c\u6ca1\u6709\u68af\u5b50\u901f\u5ea6\u4f1a\u60e8\u4e0d\u5fcd\u7779\uff0c\u6b64\u5904\u5148\u63d0\u9192\u3002<\/p>\n\n\n\n<p>\u5728\u5b89\u88c5 vcpkg \u4e4b\u524d\u8fd8\u9700\u8981\u5b89\u88c5 git\uff0c\u4e0b\u8f7d\u5730\u5740\uff1a<a href=\"https:\/\/git-scm.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/git-scm.com\/<\/a><\/p>\n\n\n\n<p>vcpkg \u4e2d\u6587\u6587\u6863\uff1a<a href=\"https:\/\/github.com\/microsoft\/vcpkg\/blob\/master\/README_zh_CN.md\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/github.com\/microsoft\/vcpkg\/blob\/master\/README_zh_CN.md<\/a><\/p>\n\n\n\n<p>\u6ce8\uff1a<\/p>\n\n\n\n<p>vcpkg \u6709\u70b9\u7279\u6b8a\uff0c\u5b89\u88c5\u5b83\u4e5f\u5e76\u4e0d\u662f\u666e\u904d\u610f\u4e49\u4e0a\u7684\u5b89\u88c5\uff0c\u53ea\u662f git \u628a vcpkg \u7684\u6e90\u7801\u62c9\u4e0b\u6765\uff0c\u7136\u540e\u6267\u884c\u811a\u672c\u4f1a\u628a vcpkg \u7f16\u8bd1\u51fa\u6765\uff08vcpkg \u4e0d\u662f\u56fe\u5f62\u7a0b\u5e8f\uff0c\u7c7b\u4f3c\u547d\u4ee4\u7684\u65b9\u5f0f\u6267\u884c\uff09\u3002\u8fd9\u6837\u4f7f\u7528\u8fd8\u4e0d\u662f\u5f88\u65b9\u4fbf\uff0c\u5efa\u8bae\u6dfb\u52a0\u73af\u5883\u53d8\u91cf\u3002\u4e0b\u9762\u662f\u6211\u7684\u5b89\u88c5\u5904\u7406\u65b9\u5f0f\uff1a<\/p>\n\n\n\n<p>\u6253\u5f00\u6587\u4ef6\u8d44\u6e90\u7ba1\u7406\u5668\uff0c\u6211\u9009\u62e9 D:\\Program Files \u4f5c\u4e3a\u5b89\u88c5\u8def\u5f84<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"832\" height=\"613\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-83.png\" alt=\"\" class=\"wp-image-3356 lazyload\" data-srcset=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-83.png 832w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-83-300x221.png 300w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-83-768x566.png 768w\" data-sizes=\"(max-width: 832px) 100vw, 832px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 832px; --smush-placeholder-aspect-ratio: 832\/613;\" \/><\/figure>\n\n\n\n<p>\u6309\u4f4f shift \u5728\u7a7a\u767d\u5904\u70b9\u51fb\u53f3\u952e\uff0c\u5982\u679c\u662f win10 \u5e94\u8be5\u53ef\u4ee5\u770b\u5230\u6253\u5f00 PowerShell\uff0c\u6211\u8fd9\u91cc win 11 \u8fd8\u8981\u5c55\u5f00\u663e\u793a\u66f4\u591a\u9009\u9879<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"475\" height=\"428\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-84.png\" alt=\"\" class=\"wp-image-3357 lazyload\" data-srcset=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-84.png 475w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-84-300x270.png 300w\" data-sizes=\"(max-width: 475px) 100vw, 475px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 475px; --smush-placeholder-aspect-ratio: 475\/428;\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"504\" height=\"507\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-85.png\" alt=\"\" class=\"wp-image-3358 lazyload\" data-srcset=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-85.png 504w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-85-298x300.png 298w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-85-150x150.png 150w\" data-sizes=\"(max-width: 504px) 100vw, 504px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 504px; --smush-placeholder-aspect-ratio: 504\/507;\" \/><\/figure>\n\n\n\n<p>\u7136\u540e\u6309\u7167\u6587\u6863\u6240\u8bf4\u83b7\u53d6\u6e90\u7801<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">git clone https:\/\/github.com\/microsoft\/vcpkg --depth=1<\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"828\" height=\"169\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-86.png\" alt=\"\" class=\"wp-image-3359 lazyload\" data-srcset=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-86.png 828w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-86-300x61.png 300w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-86-768x157.png 768w\" data-sizes=\"(max-width: 828px) 100vw, 828px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 828px; --smush-placeholder-aspect-ratio: 828\/169;\" \/><\/figure>\n\n\n\n<p>\u6267\u884c\u811a\u672c\u7f16\u8bd1\u751f\u6210 vcpkg<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">.\\vcpkg\\bootstrap-vcpkg.bat<\/pre>\n\n\n\n<p>\u7136\u540e\u53ef\u4ee5\u770b\u5230 vcpkg \u76ee\u5f55\u4e0b\u6709\u4e86\u4e00\u4e2a vcpkg.exe \u7684\u6587\u4ef6\uff0c\u8fd9\u4e2a\u5c31\u662f\u672c\u4f53\u4e86\uff0c\u7136\u540e\u73b0\u5728\u9700\u8981\u5c06\u5b83\u6240\u5728\u7684\u8def\u5f84\u6dfb\u52a0\u5230\u73af\u5883\u53d8\u91cf\u4e2d\u53bb\uff0c\u590d\u5236\u8def\u5f84<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"733\" height=\"733\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-87.png\" alt=\"\" class=\"wp-image-3360 lazyload\" data-srcset=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-87.png 733w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-87-300x300.png 300w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-87-150x150.png 150w\" data-sizes=\"(max-width: 733px) 100vw, 733px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 733px; --smush-placeholder-aspect-ratio: 733\/733;\" \/><\/figure>\n\n\n\n<p>\u6253\u5f00\u63a7\u5236\u9762\u677f-\u7cfb\u7edf\u548c\u5b89\u5168-\u7cfb\u7edf-\u9ad8\u7ea7\u7cfb\u7edf\u8bbe\u7f6e-\u73af\u5883\u53d8\u91cf-\u53cc\u51fb\u4e0b\u9762\u7684Path<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"641\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-88-1024x641.png\" alt=\"\" class=\"wp-image-3361 lazyload\" data-srcset=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-88-1024x641.png 1024w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-88-300x188.png 300w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-88-768x481.png 768w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-88.png 1032w\" data-sizes=\"(max-width: 1024px) 100vw, 1024px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/641;\" \/><\/figure>\n\n\n\n<p>\u70b9\u51fb\u65b0\u5efa\uff0c\u7136\u540e\u7c98\u7c98<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"522\" height=\"577\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-89.png\" alt=\"\" class=\"wp-image-3362 lazyload\" data-srcset=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-89.png 522w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-89-271x300.png 271w\" data-sizes=\"(max-width: 522px) 100vw, 522px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 522px; --smush-placeholder-aspect-ratio: 522\/577;\" \/><\/figure>\n\n\n\n<p>\u540e\u9762\u4f9d\u6b21\u70b9\u51fb\u786e\u5b9a\u5c31\u884c\u3002<\/p>\n\n\n\n<p>\u6d4b\u8bd5\u4e00\u4e0b\uff0c\u6253\u5f00\u4e00\u4e2a PowerShell \u754c\u9762\uff0c\u6267\u884c vcpkg \u67e5\u627e\u5305<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"958\" height=\"433\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-90.png\" alt=\"\" class=\"wp-image-3363 lazyload\" data-srcset=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-90.png 958w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-90-300x136.png 300w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-90-768x347.png 768w\" data-sizes=\"(max-width: 958px) 100vw, 958px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 958px; --smush-placeholder-aspect-ratio: 958\/433;\" \/><\/figure>\n\n\n\n<p>\u6ce8\u610f\u4f7f\u7528 vcpkg install \u5b89\u88c5\uff0c\u53ef\u80fd\u9700\u8981\u4ee5\u7ba1\u7406\u5458\u6743\u9650\u8fd0\u884c PowerShell\uff08\u4e0e vcpkg \u6240\u5728\u76ee\u5f55\u7684\u6743\u9650\u6709\u5173\uff09<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E8%9E%8D%E5%90%88%E6%90%AD%E9%85%8D\"><\/span>\u878d\u5408\u642d\u914d<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u4e0a\u9762\u5b8c\u6210\u4e86\u5404\u81ea\u7684\u5b89\u88c5\uff0c\u90a3\u4e48\u73b0\u5728\u5c31\u8981\u5408\u5728\u4e00\u8d77\u4f7f\u7528\uff0c\u8fd9\u4e00\u6b65\u5f88\u5173\u952e\u3002vcpkg \u5b89\u88c5\u4f9d\u8d56\u5e93\u3001vscode \u7f16\u5199\u4ee3\u7801\u3001cmake \u7ec4\u7ec7\u9879\u76ee\u7f16\u8bd1\u7ec6\u5219\u3001msvc \u6267\u884c\u7f16\u8bd1\uff0c\u5408\u5728\u4e00\u8d77\u5c31\u662f\u4e00\u4e2a IDE\u3002<\/p>\n\n\n\n<p>\u6253\u5f00 vscode\uff0c\u6309 Ctrl+Shift+P \uff0c\u641c\u7d22 settings.json\uff0c\u70b9\u5f00\u8bbe\u7f6e\u6587\u4ef6<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"633\" height=\"223\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-91.png\" alt=\"\" class=\"wp-image-3364 lazyload\" data-srcset=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-91.png 633w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-91-300x106.png 300w\" data-sizes=\"(max-width: 633px) 100vw, 633px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 633px; --smush-placeholder-aspect-ratio: 633\/223;\" \/><\/figure>\n\n\n\n<p>\u5728\u5c3e\u90e8\uff0c\u540c\u65f6\u53c8\u5728\u6700\u5916\u5c42\u82b1\u62ec\u53f7\u5185\u6dfb\u52a0\uff0c\u5e76\u4e14\u6ce8\u610f\u5728\u524d\u4e00\u4e2a\u8bbe\u7f6e\u9879\u7ed3\u675f\u4f4d\u7f6e\u6dfb\u52a0\u4e00\u4e2a\u82f1\u6587\u9017\u53f7\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">    \"cmake.configureSettings\": {\n        \"CMAKE_TOOLCHAIN_FILE\": \"\u3010vcpkg \u6240\u5728\u8def\u5f84\u3011\\\\vcpkg\\\\scripts\\\\buildsystems\\\\vcpkg.cmake\"\n    }<\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"815\" height=\"207\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-119.png\" alt=\"\" class=\"wp-image-3418 lazyload\" data-srcset=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-119.png 815w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-119-300x76.png 300w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-119-768x195.png 768w\" data-sizes=\"(max-width: 815px) 100vw, 815px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 815px; --smush-placeholder-aspect-ratio: 815\/207;\" \/><\/figure>\n\n\n\n<p>\u8fd9\u4e2a\u8bbe\u7f6e\u7684\u4e3b\u8981\u76ee\u7684\u5c31\u662f\u8ba9 cmake \u80fd\u591f\u627e\u5230 vcpkg \u5b89\u88c5\u7684\u5e93\uff0cvcpkg \u5b89\u88c5\u7684\u4e1c\u897f\u5e76\u4e0d\u5728\u7cfb\u7edf\u9ed8\u8ba4\u5e93\u641c\u7d22\u8303\u56f4\u5185\uff0c\u800c\u662f\u5728 vcpkg \u76ee\u5f55\u4e0b\uff0c\u56e0\u6b64\u76f4\u63a5\u4f7f\u7528\u65f6\uff0cvscode \u7684 cmake \u63d2\u4ef6\u5c31\u627e\u4e0d\u5230\u5e93\u3002<\/p>\n\n\n\n<p>\u5bf9\u4e8e\u63d2\u4ef6\uff0c\u5efa\u8bae\u5b89\u88c5\u7684\u6709 C\/C++\u3001CMake \u548c CMake Tools\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"292\" height=\"72\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-100.png\" alt=\"\" class=\"wp-image-3386 lazyload\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 292px; --smush-placeholder-aspect-ratio: 292\/72;\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"299\" height=\"140\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-101.png\" alt=\"\" class=\"wp-image-3387 lazyload\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 299px; --smush-placeholder-aspect-ratio: 299\/140;\" \/><\/figure>\n\n\n\n<p>\u4e0b\u9762\u5c31\u7ed9\u4e00\u4e2a\u9884\u89c8\u6444\u50cf\u5934\u7684\u6848\u4f8b\uff1a<\/p>\n\n\n\n<p>\u9996\u5148\u5b89\u88c5 opencv\uff0864 \u4f4d\u7248\uff09\uff0c\u4f1a\u82b1\u4e00\u4e9b\u65f6\u95f4\u7f16\u8bd1\u5b89\u88c5\uff08\u6211\u7535\u8111\u82b1\u4e86\u4e8c\u5341\u591a\u5206\u949f\uff09<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># \u4ee5\u7ba1\u7406\u5458\u6743\u9650\u6253\u5f00 PowerShell\nvcpkg install opencv4:x64-windows<\/pre>\n\n\n\n<p>\u7136\u540e\u6253\u5f00 vscode \u521b\u5efa\u4e00\u4e2a\u6587\u4ef6\u5939\uff0c\u5206\u522b\u521b\u5efa\u4e24\u4e2a\u6587\u4ef6 main.cpp \u548c CMakeLists.txt<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"306\" height=\"221\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-93.png\" alt=\"\" class=\"wp-image-3366 lazyload\" data-srcset=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-93.png 306w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-93-300x217.png 300w\" data-sizes=\"(max-width: 306px) 100vw, 306px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 306px; --smush-placeholder-aspect-ratio: 306\/221;\" \/><\/figure>\n\n\n\n<p>main.cpp<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"cpp\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">#include \"opencv2\/opencv.hpp\"\n\n\nint main()\n{\n    cv::VideoCapture cap(0);\n    cv::Mat frame;\n    while (true)\n    {\n        cap.read(frame);\n        cv::imshow(\"cap\", frame);\n        if (cv::waitKey(1) == 27)\n        {\n            break;\n        }\n    }\n    cap.release();\n}<\/pre>\n\n\n\n<p>CMakeLists.txt<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">cmake_minimum_required(VERSION 3.18)\nproject(test)\n\naux_source_directory(. src)\nadd_executable(demo ${src})\n\nfind_package(OpenCV REQUIRED)\ntarget_link_libraries(demo ${OpenCV_LIBS})<\/pre>\n\n\n\n<p>\u7136\u540e\u518d CMakeLists.txt \u4e0a\u53f3\u952e\uff0c\u70b9\u51fb\u914d\u7f6e\u6240\u6709\u9879\u76ee<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"463\" height=\"626\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-94.png\" alt=\"\" class=\"wp-image-3367 lazyload\" data-srcset=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-94.png 463w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-94-222x300.png 222w\" data-sizes=\"(max-width: 463px) 100vw, 463px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 463px; --smush-placeholder-aspect-ratio: 463\/626;\" \/><\/figure>\n\n\n\n<p>\u9879\u76ee\u9996\u6b21\u914d\u7f6e\u4f1a\u8ba9\u9009\u62e9\u7f16\u8bd1\u5668\uff0c\u5c31\u9009 amd64 \u7684\u3002<\/p>\n\n\n\n<p>\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014<\/p>\n\n\n\n<p>amd64\uff1a\u5728 64 \u4f4d\u8bbe\u5907\u4e0a\u7f16\u8bd1 64 \u4f4d\u7684\u7a0b\u5e8f\u3002<\/p>\n\n\n\n<p>amd64_x86: \u5728 64 \u4f4d\u7684\u8bbe\u5907\u4e0a\u7f16\u8bd1 32 \u4f4d\u7a0b\u5e8f\u3002<\/p>\n\n\n\n<p>x86: \u5728 32\u4f4d\uff0864 \u4f4d\u8bbe\u5907\u4e5f\u517c\u5bb9\u8fd0\u884c\uff09\u7684\u8bbe\u5907\u4e0a\u7f16\u8bd1 32 \u4f4d\u7a0b\u5e8f\u3002<\/p>\n\n\n\n<p>x86_amd64: \u5728 32 \u4f4d\uff0864 \u4f4d\u8bbe\u5907\u4e5f\u517c\u5bb9\u8fd0\u884c\uff09\u7684\u8bbe\u5907\u4e0a\u7f16\u8bd1 64 \u4f4d\u7a0b\u5e8f\u3002<\/p>\n\n\n\n<p>\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"592\" height=\"328\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-96.png\" alt=\"\" class=\"wp-image-3369 lazyload\" data-srcset=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-96.png 592w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-96-300x166.png 300w\" data-sizes=\"(max-width: 592px) 100vw, 592px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 592px; --smush-placeholder-aspect-ratio: 592\/328;\" \/><\/figure>\n\n\n\n<p>\u7136\u540e\u8fd8\u662f\u5728 CMakeLists.txt \u4e0a\u53f3\u952e\uff0c\u70b9\u51fb\u751f\u6210\u6240\u6709\u9879\u76ee<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"440\" height=\"603\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-97.png\" alt=\"\" class=\"wp-image-3370 lazyload\" data-srcset=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-97.png 440w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-97-219x300.png 219w\" data-sizes=\"(max-width: 440px) 100vw, 440px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 440px; --smush-placeholder-aspect-ratio: 440\/603;\" \/><\/figure>\n\n\n\n<p>\u7f16\u8bd1\u6210\u529f\u7136\u540e\u70b9\u51fb\u4e0b\u9762\u7684\u8718\u86db\u8c03\u8bd5\u8fd0\u884c<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"515\" height=\"332\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-98.png\" alt=\"\" class=\"wp-image-3371 lazyload\" data-srcset=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-98.png 515w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-98-300x193.png 300w\" data-sizes=\"(max-width: 515px) 100vw, 515px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 515px; --smush-placeholder-aspect-ratio: 515\/332;\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"536\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-99-1024x536.png\" alt=\"\" class=\"wp-image-3372 lazyload\" data-srcset=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-99-1024x536.png 1024w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-99-300x157.png 300w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-99-768x402.png 768w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-99-1536x803.png 1536w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/02\/image-99.png 1652w\" data-sizes=\"(max-width: 1024px) 100vw, 1024px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/536;\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u6ce8\uff1amsvc \u6bd4\u8f83\u5e9e\u5927\uff0cvcpkg \u91c7\u7528\u6e90\u7801\u7f16\u8bd1\u5b89\u88c5\u4e5f\u4f1a\u5360\u7528\u5f88\u5927\u7a7a\u95f4\u3002\u5982\u679c\u8981\u9009\u62e9\u76f8\u5bf9\u8f7b\u91cf\u7684\u73af\u5883\uff0c\u524d\u5f80\u201c\u642d\u5efa v [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"zakra_page_container_layout":"customizer","zakra_page_sidebar_layout":"customizer","zakra_remove_content_margin":false,"zakra_sidebar":"customizer","zakra_transparent_header":"customizer","zakra_logo":0,"zakra_main_header_style":"default","zakra_menu_item_color":"","zakra_menu_item_hover_color":"","zakra_menu_item_active_color":"","zakra_menu_active_style":"","zakra_page_header":true,"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-3353","post","type-post","status-publish","format-standard","hentry","category-all"],"modified_by":"IYATT-yx","_links":{"self":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts\/3353","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3353"}],"version-history":[{"count":0,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts\/3353\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3353"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3353"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3353"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}