Windows
Here's how you can install Crow on your Windows machine.
Getting and Compiling Crow¶
Using A package manager¶
VCPKG¶
Crow can be simply installed through VCPKG using the command vcpkg install crow
Manually (source or release)¶
Microsoft Visual Studio and VCPKG¶
The following guide will use example_with_all.cpp as the Crow application for demonstration purposes. VCPKG will be used only to install Crow's dependencies.
- Generate
crow_all.hby navigating to thescriptsfolder and runningpython3 merge_all.py ..\include crow_all.h. git clone https://github.com/microsoft/vcpkg.git.\vcpkg\bootstrap-vcpkg.bat.\vcpkg\vcpkg integrate install- Create empty Visual Studio project.
- In solution explorer, right click the name of your project then click
Open Folder in File Explorer. - Copy
crow_all.h,example_with_all.cpp,vcpkg.jsonto opened folder. - Add
crow_all.htoHeader Filesandexample_with_all.cpptoSource Files. - In solution explorer, right click the name of your project then click
Properties. - Under
vcpkg, setUse Vcpkg ManifesttoYesandAdditional Optionsto--feature-flags="versions". - Set
Debug/Releaseandx64/x86. - Run.