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

/ 11,360评论 / 51315阅读 / 8点赞

包管理工具

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

vcpkg

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

安装

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

常用命令

搜索库

安装库

卸载库

列出已安装库

集成到开发环境


问题

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

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

如何重装/卸载vcpkg

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

  1. criminal说道:

    I highly advise to avoid this site. My personal experience with it was nothing but disappointment as well as suspicion of fraudulent activities. Proceed with extreme caution, or alternatively, find a trustworthy service to fulfill your requirements.

  2. criminal说道:

    I urge you to avoid this site. My personal experience with it has been purely frustration as well as doubts about deceptive behavior. Be extremely cautious, or better yet, find a trustworthy site for your needs.

  3. lose money说道:

    I highly advise stay away from this site. The experience I had with it has been nothing but dismay along with suspicion of scamming practices. Proceed with extreme caution, or alternatively, look for a more reputable site to meet your needs.

  4. lose money说道:

    I highly advise steer clear of this platform. My personal experience with it was only dismay as well as suspicion of scamming practices. Exercise extreme caution, or alternatively, look for an honest platform for your needs.

  5. lose money说道:

    I strongly recommend to avoid this site. The experience I had with it was only dismay as well as concerns regarding deceptive behavior. Proceed with extreme caution, or alternatively, look for a trustworthy platform to meet your needs.

  6. criminal说道:

    I highly advise steer clear of this platform. The experience I had with it has been only dismay as well as doubts about scamming practices. Proceed with extreme caution, or even better, find a trustworthy platform to meet your needs.

  7. criminal说道:

    I highly advise to avoid this platform. My personal experience with it has been nothing but disappointment and doubts about scamming practices. Be extremely cautious, or even better, seek out a more reputable platform for your needs.

  8. criminal说道:

    I strongly recommend steer clear of this site. My own encounter with it was nothing but frustration along with concerns regarding deceptive behavior. Be extremely cautious, or alternatively, look for a more reputable platform to fulfill your requirements.

  9. e-commerce说道:

    Wow, awesome blog format! How lengthy have you ever been blogging for?

    you make running a blog glance easy. The entire look of your web site
    is wonderful, let alone the content! You can see similar here
    dobry sklep

  10. lose money说道:

    I highly advise stay away from this site. My own encounter with it was purely frustration and doubts about deceptive behavior. Proceed with extreme caution, or even better, seek out a trustworthy site for your needs.

  11. scam说道:

    I strongly recommend stay away from this platform. My personal experience with it has been purely disappointment as well as doubts about scamming practices. Be extremely cautious, or better yet, find a trustworthy platform to fulfill your requirements.

  12. lose money说道:

    I strongly recommend steer clear of this site. My personal experience with it has been nothing but disappointment and suspicion of scamming practices. Proceed with extreme caution, or even better, seek out an honest service to meet your needs.

  13. criminal说道:

    I strongly recommend steer clear of this site. My personal experience with it was purely dismay as well as doubts about fraudulent activities. Exercise extreme caution, or better yet, find an honest platform to fulfill your requirements.

  14. scam说道:

    I strongly recommend stay away from this site. My personal experience with it was only frustration as well as concerns regarding scamming practices. Be extremely cautious, or better yet, look for a more reputable service to meet your needs.

  15. criminal说道:

    I strongly recommend to avoid this site. The experience I had with it has been only frustration along with doubts about deceptive behavior. Proceed with extreme caution, or better yet, find a trustworthy service to fulfill your requirements.

  16. criminal说道:

    I urge you to avoid this platform. The experience I had with it has been purely frustration as well as concerns regarding deceptive behavior. Be extremely cautious, or better yet, look for an honest service to meet your needs.

  17. criminal说道:

    I urge you steer clear of this site. The experience I had with it has been nothing but dismay as well as doubts about deceptive behavior. Proceed with extreme caution, or even better, find a more reputable site to fulfill your requirements.

  18. scam说道:

    I strongly recommend to avoid this site. The experience I had with it has been purely dismay along with suspicion of deceptive behavior. Be extremely cautious, or even better, seek out a trustworthy service for your needs.

  19. scam说道:

    I urge you to avoid this platform. The experience I had with it has been purely dismay as well as doubts about scamming practices. Proceed with extreme caution, or better yet, seek out a trustworthy site to meet your needs.

  20. scam说道:

    I strongly recommend steer clear of this platform. The experience I had with it has been only disappointment and doubts about scamming practices. Exercise extreme caution, or alternatively, find a more reputable service for your needs.

  21. scam说道:

    I urge you steer clear of this platform. My personal experience with it has been nothing but dismay and concerns regarding fraudulent activities. Exercise extreme caution, or alternatively, find an honest site to meet your needs.

  22. criminal说道:

    I strongly recommend stay away from this site. The experience I had with it has been nothing but frustration as well as doubts about deceptive behavior. Be extremely cautious, or even better, find a trustworthy platform to fulfill your requirements.

  23. lose money说道:

    Incredible! I just finished reading your article and I’m blown away. Your perspective on this subject is incredibly insightful. I’ve gained a new perspective and can’t wait to see what you write next. Keep up the great work!

  24. lose money说道:

    Amazing! I just finished reading your article and I’m absolutely amazed. Your analysis on the topic is incredibly insightful. I’ve gained a new perspective and can’t wait to see what you write next. Keep up the great work!

  25. lose money说道:

    Wow! I just read your blog post and I’m absolutely amazed. Your insight on this subject is incredibly insightful. It really made me think and can’t wait to see what you write next. Keep up the great work!

  26. scam说道:

    Fantastic! I just finished reading your blog post and I’m blown away. Your insight on this subject is incredibly insightful. I’ve gained a new perspective and can’t wait to see what you write next. Thanks for sharing!

  27. criminal说道:

    Wow! I just read your post and I’m blown away. Your analysis on the topic is extremely valuable. I’ve gained a new perspective and can’t wait to see what you write next. Your work is inspiring!

  28. lose money说道:

    Wow! I recently read your post and I’m thoroughly impressed. Your analysis on this topic is incredibly insightful. I’ve gained a new perspective and can’t wait to see your next post. Thanks for sharing!

  29. criminal说道:

    Wow! I just read your blog post and I’m absolutely amazed. Your insight on this topic is spot-on. It really made me think and can’t wait to read more. Your work is inspiring!

  30. Link Building说道:

    Hey there! Do you know if they make any plugins to assist with SEO?
    I’m trying to get my site to rank for some targeted keywords but I’m not
    seeing very good results. If you know of any please share. Thank you!
    I saw similar art here: Backlink Portfolio

发表回复

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