vcpkg Crash Course | C++ libraries simplified! A Visual Studio must-have!
Why Stack Overflow recommends it
Stack Overflow users link it when answering or asking how to install C++ libraries like Boost, Crow or matplotlib-cpp through vcpkg on Windows and Visual Studio.
Recommended by 1 people across 1 different months, 2020 to 2022.
What it is
A 20-minute crash course on Microsoft's vcpkg C++ package manager, presented by TroubleChute. It covers cloning and bootstrapping vcpkg, integrating it with Visual Studio, installing and removing packages, choosing x64 or x86 triplets, and using packages in a project.
What people said
Recommends KulaGGin · 2020-06 · Stack Overflow · on “How compile a DLL which is using boost library?”
I fixed my error "Error LNK1104 cannot open file 'libboost_locale-vc142-mt-gd-x32-1_73.lib'" in a DLL project, which I described in this issue [LINK] on boost' github by installing the boost library using vcpkg. Install vcpkg. Then write .\vcpkg install boost . You can see how it's done in the video: [this video] . He's not installing the boost library but the process is exactly the same. This is all for Windows and Visual Studio's toolset, of course.
Cites Samson · 2021-04 · Stack Overflow · on “Running python matplotlibcpp in Visual Studio 2019”
I had the same problem, I installed vcpkg Manager and followed the instructions applied analogously for matplotlib-cpp (see [this video] ). Inlcude vcpkg lib and include and your correct Python installation in project attribution. Then uncommented the std::stod errors. Now it's working.
Cites OliP14 · 2022-06 · Stack Overflow · on “Cannot open source file error with vcpkg on vscode mac”
I'm trying to use external libraries (specifically opencv) with C++ but I'm having some trouble. It seems like using vcpkg is the easiest way to go about this. So far I've followed these tutorials: [this video] and [LINK] but I keep getting these errors when I try to include a file: cannot open source file "opencv2/core.hpp" 'opencv2/core.hpp' file not found The quick fix provided by vscode says to install opencv through vcpkg but I've already done that. I've linked vcpkg according to the tutorials and included the path to the cmake toolchain file in my settings.json file. Here is the change I made to my settings.json file: { "cmake.configureSettings": { "CMAKE_TOOLCHAIN_FILE": "/Users/oliverpasq
Cites entrepreneur · 2022-08 · Stack Overflow · on “C++ with Crow, CMake, and Docker”
Goal I would like to compile an Crow [LINK] Project with CMake and deploy it in a docker container. Code So far, I compiled in Visual Studio and installed Crow via VCPKG similar to this Tutorial [this video] . example main.cpp from Crow website [LINK] : #include "crow.h" //#include "crow_all.h" int main() { crow::SimpleApp app; //define your crow application //define your endpoint at the root directory CROW_ROUTE(app, "/")([](){ return "Hello world"; }); //set the port, set the app to run on multiple threads, and run the app app.port(18080).multithreaded().run(); } I want to build my docker image with docker build -t main_app:1 . and then run a container with docker run -d -it -p 443:18080 --name