Skip to content

Building windows old solution

Jack Gerrits edited this page Jun 5, 2021 · 1 revision

Windows

Using Visual Studio

  1. Open vowpalwabbit\vw.sln in Visual Studio 2017
  2. Do not retarget projects if prompted
  3. Set startup project as vw (or the test project)
  4. Select x64 platform (Configuration Manager>Active solution platform)
  5. Select x64 as test platform (Test>Test settings>Default Processor Architecture)
  6. Build solution by clicking Build>Rebuild Solution

Using command line

Available configurations are "Release" and "Debug". Available platforms are "x64" and "Win32":

msbuild /p:Configuration="Release" /p:Platform="x64" vw.sln

Experimental: Using CMake on Windows

CMake GUI

  1. Open CMake GUI
  2. Specify the following entries:
    1. CMAKE_TOOLCHAIN_FILE=<vcpkg_root>/scripts/buildsystems/vcpkg.cmake
    2. VCPKG_TARGET_TRIPLET=x64-windows
  3. Configure
  4. Choose generator (for example, Visual Studio 15 2017 Win64)
  5. Generate
  6. Open Project

Command line

mkdir build
cd build
cmake .. -DCMAKE_TOOLCHAIN_FILE=<vcpkg_root>\scripts\buildsystems\vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows
.\vowpal_wabbit.sln
Clone this wiki locally