admin 管理员组

文章数量: 1184232

vcpkg 下载慢非常令人头痛,下面是一位 github 用户的抱怨,非常真实!

The download and compilation time of vcpkg is relatively long. So during this waiting period, I would rather go play a game, have a cup of coffee or do some other work. But, but, but! ! !
When the network is not good, vcpkg will always interrupt because it has not downloaded the complete package, which is very annoying! ! ! This makes me have to stare at the screen all the time, watching vcpkg from downloading to compiling and installing, in case any package download fails and the compilation is interrupted.
(引自 )

对于vcpkg 下载慢而导致编译中断,网上大多数方法都是说把没下载完的依赖包的链接复制出来,自己在浏览器下载,然后放到 download 目录下。但是有些包的依赖包很多,这样做非常麻烦。下面讲两种方便可行的方法:

  • 方法1:先下载,后编译
    针对上面那个 github 用户的问题,一个好方法就是先把所有依赖包都下载到 download 目录下,所有依赖包都下载完后,再开始编译安装,然后就可以放心地让电脑自己编译了。
    这要怎么实现呢?开发者就是开发者,对他们来说太简单了:在 install 后面加个

本文标签: 目录下 优化 编程