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

/ 12,470评论 / 65399阅读 / 8点赞

包管理工具

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

vcpkg

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

安装

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

常用命令

搜索库

安装库

卸载库

列出已安装库

集成到开发环境


问题

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

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

如何重装/卸载vcpkg

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

  1. Matthewnouts说道:

    tamoxifen menopause: raloxifene vs tamoxifen – buy nolvadex online

  2. Robertperma说道:

    buy zithromax 500mg online zithromax 250 mg australia zithromax generic cost

  3. The company was founded as Dexia Asset Management, a branch of Dexia S.A, in 1996.

  4. PatrickHindy说道:

    http://nolvadexbestprice.pro/# tamoxifen effectiveness

  5. Matthewnouts说道:

    buy propecia pill: get generic propecia without a prescription – cost of cheap propecia

  6. Robertperma说道:

    п»їcytotec pills online buy cytotec buy cytotec online fast delivery

  7. LewisToite说道:

    https://cytotecbestprice.pro/# buy cytotec over the counter

  8. PatrickHindy说道:

    http://prednisonebestprice.pro/# prednisone 10mg prices

  9. PatrickHindy说道:

    http://zithromaxbestprice.pro/# can you buy zithromax online

  10. Matthewnouts说道:

    buy generic propecia: buying generic propecia for sale – buy propecia without prescription

  11. Robertperma说道:

    cytotec pills buy online order cytotec online Cytotec 200mcg price

  12. Matthewnouts说道:

    prednisone 10 mg over the counter: 20 mg of prednisone – buying prednisone from canada

  13. LewisToite说道:

    http://propeciabestprice.pro/# order cheap propecia prices

  14. Matthewnouts说道:

    Misoprostol 200 mg buy online: Cytotec 200mcg price – buy cytotec online

  15. Robertperma说道:

    cost generic propecia for sale propecia without rx buying generic propecia price

  16. NelsonSaIlk说道:

    pharmacies in mexico that ship to usa: purple pharmacy mexico price list – mexico drug stores pharmacies

  17. DominicHOr说道:

    buying from online mexican pharmacy: mexico pharmacies prescription drugs – medication from mexico pharmacy

  18. Casino说道:

    Good information. Lucky me I recently found your blog by chance (stumbleupon). I’ve saved as a favorite for later!

  19. Arnoldscava说道:

    reputable mexican pharmacies online mexico pharmacy mexican mail order pharmacies

  20. Waynetar说道:

    buying prescription drugs in mexico online: mexican pharmaceuticals online – mexican online pharmacies prescription drugs

  21. NelsonSaIlk说道:

    mexico drug stores pharmacies: mexico pharmacies prescription drugs – medicine in mexico pharmacies

  22. DominicHOr说道:

    mexican online pharmacies prescription drugs: mexico pharmacies prescription drugs – mexico pharmacies prescription drugs

  23. Arnoldscava说道:

    mexico pharmacy purple pharmacy mexico price list mexican online pharmacies prescription drugs

  24. Arnoldscava说道:

    medication from mexico pharmacy mexico pharmacies prescription drugs mexico drug stores pharmacies

  25. Waynetar说道:

    mexican online pharmacies prescription drugs: mexican online pharmacies prescription drugs – mexican drugstore online

  26. NelsonSaIlk说道:

    mexican drugstore online: mexican mail order pharmacies – reputable mexican pharmacies online

  27. DominicHOr说道:

    mexican rx online: buying prescription drugs in mexico – mexican pharmaceuticals online

  28. Arnoldscava说道:

    mexican rx online best online pharmacies in mexico medication from mexico pharmacy

  29. Arnoldscava说道:

    mexican mail order pharmacies pharmacies in mexico that ship to usa mexican pharmaceuticals online

  30. Waynetar说道:

    buying prescription drugs in mexico online: п»їbest mexican online pharmacies – purple pharmacy mexico price list

  31. NelsonSaIlk说道:

    buying prescription drugs in mexico online: best online pharmacies in mexico – mexico drug stores pharmacies

  32. DominicHOr说道:

    buying prescription drugs in mexico: buying from online mexican pharmacy – mexican rx online

  33. Arnoldscava说道:

    medication from mexico pharmacy reputable mexican pharmacies online mexican rx online

  34. Arnoldscava说道:

    п»їbest mexican online pharmacies reputable mexican pharmacies online mexican mail order pharmacies

  35. Waynetar说道:

    mexican drugstore online: mexican pharmaceuticals online – best online pharmacies in mexico

  36. Waynetar说道:

    buying prescription drugs in mexico online: п»їbest mexican online pharmacies – medication from mexico pharmacy

  37. DominicHOr说道:

    mexico drug stores pharmacies: purple pharmacy mexico price list – mexico pharmacies prescription drugs

  38. NelsonSaIlk说道:

    purple pharmacy mexico price list: reputable mexican pharmacies online – reputable mexican pharmacies online

  39. ちな 例文说道:

    Pans of thin metal don’t hold much heat, resulting in longer cooking times and uneven browning.

  40. Arnoldscava说道:

    mexican online pharmacies prescription drugs medication from mexico pharmacy medicine in mexico pharmacies

  41. Arnoldscava说道:

    mexican mail order pharmacies buying prescription drugs in mexico buying prescription drugs in mexico

  42. Waynetar说道:

    mexican border pharmacies shipping to usa: buying prescription drugs in mexico – mexican rx online

  43. DominicHOr说道:

    buying from online mexican pharmacy: buying prescription drugs in mexico – mexico drug stores pharmacies

  44. DominicHOr说道:

    buying from online mexican pharmacy: buying prescription drugs in mexico – mexico drug stores pharmacies

  45. NelsonSaIlk说道:

    п»їbest mexican online pharmacies: mexico pharmacies prescription drugs – mexico drug stores pharmacies

  46. NelsonSaIlk说道:

    buying from online mexican pharmacy: mexico pharmacies prescription drugs – medication from mexico pharmacy

  47. Arnoldscava说道:

    mexican pharmaceuticals online mexico pharmacies prescription drugs buying from online mexican pharmacy

  48. Arnoldscava说道:

    reputable mexican pharmacies online п»їbest mexican online pharmacies mexican drugstore online

发表回复

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