[c++]包管理工具vcpkg安装使用

/ 11,672评论 / 57914阅读 / 8点赞

包管理工具

当我们需要使用别人开发的库时,可能会需要去下载其源码然后编译再引入我们的项目,这样做的话一来引用的库多了比较麻烦,而且需要自己管理这些包,二来一旦迁移到其他机子上就得复制过去或是再下载编译一次,尤其对跨平台项目来说简直苦不堪言,因此会有包管理工具的出现。

vcpkg

它是由微软开发的,可以像安装普通软件一样地安装库,而且和visual studio/cmake很契合,在win和linux都可用。

安装

$ git clone https://github.com/microsoft/vcpkg

常用命令

搜索库

安装库

卸载库

列出已安装库

集成到开发环境


问题

如果使用vcpkg安装库,更新等过程中报错,请一定一定要耐心看它的错误信息,往往它会告诉你解决办法,比如因缺少依赖软件需要安装;因网络问题文件下载失败,需要重试等等。

安装库之后导入使用依然报错

如何重装/卸载vcpkg

ubuntu下安装ICU一直在最后出错

  1. stickers说道:

    Good post! We are linking to this great post on our site. Keep up the great writing.

  2. sex说道:

    I could not refrain from commenting. Exceptionally well written!

  3. memek说道:

    Greetings! Very helpful advice within this article! It is the little changes that produce the most significant changes. Thanks for sharing!

  4. This page truly has all the information and facts I wanted about this subject and didn’t know who to ask.

  5. Galileo FX说道:

    Aw, this was a very good post. Finding the time and actual effort to produce a superb article… but what can I say… I hesitate a whole lot and don’t manage to get anything done.

  6. Michael说道:

    I couldn’t resist commenting. Exceptionally well written.

  7. IWIN说道:

    Aw, this was an extremely nice post. Finding the time and actual effort to produce a good article… but what can I say… I put things off a whole lot and never manage to get nearly anything done.

  8. game bài iwin说道:

    The very next time I read a blog, Hopefully it won’t fail me just as much as this particular one. After all, Yes, it was my choice to read through, but I genuinely thought you’d have something interesting to talk about. All I hear is a bunch of moaning about something you could possibly fix if you were not too busy searching for attention.

  9. This is a topic that’s close to my heart… Thank you! Where are your contact details though?

  10. Jamesjer说道:

    buy doxycycline for dogs: best price for prescription doxycycline – doxycycline 20 mg india

  11. Spot on with this write-up, I seriously think this web site needs a lot more attention. I’ll probably be back again to read more, thanks for the advice.

  12. Hello there! I just want to offer you a huge thumbs up for the excellent info you have got right here on this post. I will be returning to your website for more soon.

  13. 博彩社区说道:

    Excellent post! We are linking to this great post on our website. Keep up the good writing.

  14. Jamesjer说道:

    can i get generic clomid without rx: cheap clomid pill – can i get cheap clomid pills

  15. Jamesjer说道:

    cipro 500mg best prices: buy cipro no rx – cipro for sale

  16. write my essay说道:

    I’m amazed, I must say. Rarely do I encounter a blog that’s both educative and entertaining, and without a doubt, you have hit the nail on the head. The problem is something which too few people are speaking intelligently about. I’m very happy I came across this in my hunt for something regarding this.

  17. Jamesjer说道:

    cost cheap clomid pills: can i order generic clomid without a prescription – get generic clomid tablets

  18. ThomasInace说道:

    https://clomiddelivery.pro/# clomid without insurance

  19. ThomasInace说道:

    http://clomiddelivery.pro/# where to buy generic clomid

  20. lehenga choli说道:

    I was very happy to find this web site. I need to to thank you for ones time for this fantastic read!! I definitely liked every bit of it and i also have you bookmarked to check out new things in your web site.

  21. This is a good tip especially to those new to the blogosphere. Simple but very accurate info… Appreciate your sharing this one. A must read article!

  22. Jamesjer说道:

    paxlovid pill: Paxlovid over the counter – paxlovid cost without insurance

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注