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

/ 13,252评论 / 69851阅读 / 9点赞

包管理工具

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

vcpkg

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

安装

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

常用命令

搜索库

安装库

卸载库

列出已安装库

集成到开发环境


问题

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

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

如何重装/卸载vcpkg

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

  1. https://sl2.top说道:

    Hey! 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.
    Cheers! You can read similar text here

  2. Charlescoofs说道:

    https://clomidca.shop/# prednisone for sale online

  3. There’s certainly a great deal to learn about this topic. I love all of the points you made.

  4. Charlescoofs说道:

    https://clomidca.shop/# prednisone 500 mg tablet

  5. Carlosnatry说道:

    where can i buy clomid without rx: Clomiphene – how to get clomid price

  6. Charlescoofs说道:

    https://amoxicillinca.shop/# zithromax z-pak price without insurance

  7. Carlosnatry说道:

    buy amoxicillin 500mg canada: amoxil online – where can i get amoxicillin

  8. Billyziz说道:

    how to get generic clomid tablets best price can you get clomid for sale

  9. Clydewal说道:

    prednisone 20 mg tablets coupon: clomidca.com – prednisone in uk

  10. Pretty! This has been a really wonderful post. Many thanks for providing these details.

  11. Charlescoofs说道:

    https://amoxicillinca.com/# zithromax capsules price

  12. Clydewal说道:

    doxycycline 200: azithromycinca.com – doxycycline 225 mg

  13. HVAC说道:

    very good post, i certainly adore this site, persist with it

  14. Charlescoofs说道:

    https://azithromycinca.com/# doxycycline monohydrate

  15. Carlosnatry说道:

    zithromax 500 tablet: zithromax – cost of generic zithromax

  16. tubidy music说道:

    This is the perfect blog for anyone who hopes to find out about this topic. You know so much its almost tough to argue with you (not that I really will need to…HaHa). You definitely put a brand new spin on a subject which has been written about for ages. Excellent stuff, just wonderful.

  17. Charlescoofs说道:

    http://azithromycinca.com/# doxycycline buy online india

  18. Charlescoofs说道:

    https://clomidca.shop/# prednisone pills for sale

  19. Carlosnatry说道:

    price of doxycycline 100mg in india: doxycycline – doxycycline 100 mg forsale outside the us

  20. youtube 2 mp3说道:

    It’s hard to come by knowledgeable people for this subject, however, you sound like you know what you’re talking about! Thanks

  21. DriermKew说道:

    Think of that as protein, right cheapest cialis 20mg For us, you sit there and rack your brain about, Man, we need to get that one first down

  22. Serena Slaybaugh说道:

    Splendid! But, seriously, why the abundance of English comments and emojis? 😅

  23. 슬롯说道:

    geinoutime.com
    Hongzhi 황제는 얼굴에 표정을 유지하고 커밋하지 않고 손가락으로 황실 케이스를 가볍게 두드렸다.

  24. JamesDAP说道:

    pharmacie en ligne livraison europe: pharmacie en ligne avec ordonnance – pharmacie en ligne france fiable

  25. DouglasTag说道:

    pharmacies en ligne certifiГ©es https://kamagraenligne.shop/# pharmacie en ligne

  26. Mae Morsberger说道:

    A cada acesso a este site, sinto-me imediatamente envolvido por uma atmosfera de confiança. Parabéns pela dedicação à segurança dos usuários!

  27. Arlen Wasmuth说道:

    Este site é um verdadeiro modelo de como estabelecer e manter a confiança dos usuários. A segurança e a integridade são evidentes em cada detalhe. Recomendo sem reservas!

  28. 슬롯说道:

    geinoutime.com
    전장에서 일어나는 일은 언제든지 우연히 일어날 수 있습니다.

  29. Layne说道:

    I will immediately grasp your rss feed as I can’t to find your email subscription link or newsletter service. Do you’ve any? Kindly permit me understand so that I may just subscribe. Thanks!

  30. scam说道:

    1SS3D249742

  31. Hi! Do you know if they make any plugins to help with Search Engine Optimization? I’m
    trying to get my website to rank for some targeted keywords but
    I’m not seeing very good results. If you know of any please share.
    Many thanks! You can read similar text here: Choose your escape room

  32. geinoutime.com说道:

    geinoutime.com
    그는 어쩔 수 없이 이렇게 말했습니다. “이 선장의 강력한 Thunderbolt…”

  33. This post just made my day, thank you!

  34. Cruz Vulich说道:

    I’m adding this to my list of favorites, exceptional!

  35. I’m in love with every detail of this post, incredible!

  36. geinoutime.com说道:

    geinoutime.com
    Liu Jian, Li Dongyang, Xie Qian의 표정이 갑자기 바뀌었다.

  37. Robertrib说道:

    acheter mГ©dicament en ligne sans ordonnance: Acheter Cialis – pharmacies en ligne certifiГ©es

  38. AllenTal说道:

    pharmacies en ligne certifiГ©es: levitra generique prix en pharmacie – pharmacie en ligne livraison europe

  39. IgnacioGinia说道:

    Pharmacie en ligne livraison Europe: kamagra pas cher – trouver un mГ©dicament en pharmacie

  40. Juliusfum说道:

    Pharmacie sans ordonnance: kamagra 100mg prix – pharmacie en ligne france fiable

  41. Robertrib说道:

    acheter mГ©dicament en ligne sans ordonnance: pharmacie en ligne sans ordonnance – pharmacie en ligne sans ordonnance

  42. AllenTal说道:

    pharmacie en ligne livraison europe: pharmacie en ligne – Pharmacie sans ordonnance

  43. AllenTal说道:

    pharmacie en ligne avec ordonnance: kamagra oral jelly – pharmacie en ligne avec ordonnance

  44. Oren Grife说道:

    Superb! But, seriously, what’s with the barrage of English comments and emojis? 😁

  45. IgnacioGinia说道:

    acheter mГ©dicament en ligne sans ordonnance: Acheter Cialis – pharmacie en ligne

  46. RobertDer说道:

    http://levitraenligne.com/# pharmacie en ligne france livraison belgique

  47. AllenTal说道:

    Pharmacie sans ordonnance: kamagra livraison 24h – pharmacie en ligne pas cher

  48. AllenTal说道:

    Viagra sans ordonnance livraison 48h: Meilleur Viagra sans ordonnance 24h – Viagra vente libre pays

发表回复

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