tl;dr: 1) Create Visual Studio C++ project. 2) From VS terminal run `vcpkg integrate install` 3) Open project properties and enable "Use Vcpkg Manifest" 4) Initialize project from the VS terminal `vcpkg new --application` 5) Add dependencies from terminal. Ex: `vcpkg add port fmt` 6) Build and run project 7) Restart Visual Studio to remove squiggly red underlines 8) If you are using git, remember to add the vcpkg_installed folder to your .gitignore file.
@ozu77793 ай бұрын
if you dont see Vcpkg section on your settings, make sure restart after the vckg integrate install command. ur welcome!
@kaboomjones2 ай бұрын
excellent video! thank you very much, as someone who has always seen libraries and dependencies in C++ as a massive pain. found vcpkg, then I found this tutorial, I hope to try it out soon.
@Mustlight3 ай бұрын
Great tutorial. Thanks a lot.
@徐聖旂2 ай бұрын
Great tutorial! If I want to share the project using github, is installing vcpkg the only step that needs to be run before openning the cloned solution file and build on another machine? Do you need to run vcpkg integrate install or vcpkg new again ?
@stungeye2 ай бұрын
You won't need to run "vcpkg new" again on the other machine, but you may have to run "vcpkg integrate install" if it hasn't been run once before on that machine.
@lucdina51185 ай бұрын
Now I have a question, can we get a tut with cmake please 🙏? I have a hard time with finding packages inside cmake configuration.
@stungeye5 ай бұрын
@@lucdina5118 Like an intro to cmake with 3rd party libraries.
@lucdina51185 ай бұрын
@@stungeye yes it will be great
@user-rc5xf3bk4y3 ай бұрын
I was able to remove the squiggly red underlines without restarting VS by pressing a right-click in a file --> Rescan --> Rescan Solution.
@stungeye3 ай бұрын
@@user-rc5xf3bk4y Cool! Thanks for sharing this trick.