Vcpkg tutorial - Install C and C++ libraries for Visual Studio 2017 on Windows 10

preview_player
Показать описание
How to install and use the vcpkg library manager to install C, C++ libraries for Visual Studio 2017.

PowerShell vcpkg commands used in the video:
.\vcpkg integrate install

.\vcpkg search sqlite3
.\vcpkg install sqlite3
.\vcpkg install sqlite3:x64-windows

Source code for the C++ sqlite3 example used in the video:

If you need to install Visual Studio 2017 on your Windows computer check my previous video:
Рекомендации по теме
Комментарии
Автор

I spent about 15 hours trying to get libraries working.
And then I find you - and man am I happy that I did

jronesbbq
Автор

Thanks so much! This worked for VS 2019, too (only difference was the SubSystem was already set).

dorthy
Автор

Big respect to you! It became easy to work with thread libraries now.

lotreez
Автор

You literally made my day! Been trying to fix this for hours, thank you!

nienkegis
Автор

It only took 10 minutes. I forgot package manager solution and I was looking for prebuilt 32 bit libcurl until this video thank you so much.

aliihsansenel
Автор

thank you, I was struggling with this for hours !

chamsabressitoure
Автор

if you get error @2:26 (install sqlite3) with error message like "No suitable Visual Studio instances were found"" then you need to make sure you have installed below two features in visual studio.
1. MSVC C/C++ compiler and linker
2. English language pack

deva
Автор

Finally I understood how i can do it ! thank you so much!

erickgaticacandia
Автор

thanks so much dude was looking for such video for ages :)

oof
Автор

Thanks for posting this, very helpful :-)

samuelcampbell
Автор

this was super helpful, thank you very much !

JackieWelles
Автор

Thank you very much!
You really helped me)

vsplesk_
Автор

I am getting the following error while running the this command: .\vcpkg integrate install

.\vcpkg : The term '.\vcpkg' is not recognized as the name of a cmdlet, function, script file, or operable program. Che
ck the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ .\vcpkg integrate install
+
+ CategoryInfo : ObjectNotFound: (.\vcpkg:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

erenjeagerot
Автор

this was so helpful! thanks so much for sharing this tutorial !!!!

paxslayer
Автор

Thank you!


Video content helpful


regards
Giri

girish
Автор

when I use the .\bootstrap-vcpkg.bat command it says "vs2015 or vs2017 (with c++) needs to be installed" even though I already have vs with c++ installed. plz help

ilianvarela
Автор

show some error
{ Error: in triplet x64-windows: Unable to find a valid Visual Studio instance
Could not locate a complete Visual Studio instance }
so how to solve it

gautamchoudhary
Автор

i think that it will be usefull;
i had an error "Powershell.exe is not recognized as an internal or external command, operable program or batch file" when i wrote ".\bootstrap-vcpkg.bat"
the solving is to add to your path (System -> Advanced system settings -> Environment Variables -> Add)

АнгелінаШкола
Автор

great video, but just to add some informations. for me and for some reason it only work with .\vcpkg install sqlite3:x86-windows not x64

simochammoum
Автор

at 2:59, it says find_package(sqlite3 CONFIG REQUIRED). How does one set this up set find_package works? I'm trying to install armadillo package and have followed these steps but visual studio still cannot recognize the #include <armadillo>

vaisuliafu