Skip to content

Latest commit

 

History

History
103 lines (63 loc) · 2.35 KB

BUILD_WINDOWS.md

File metadata and controls

103 lines (63 loc) · 2.35 KB

Build Icinga 2 on Windows

The Icinga Project is providing Windows MSI packages under https://packages.icinga.com/windows/

Note: This is a developer documentation on how to build Icinga 2 on Windows!

Also see INSTALL.md for Linux build instructions.

Requirements

  • 32 or 64-bit system
  • Visual Studio >= 14 2015
  • CMake >= 2.6
  • OpenSSL >= 1.0.1
  • Flex and Bison

Install Requirements

Visual Studio

Download from visualstudio.com

The Community Edition is available for free, and is what we use to build.

Workloads to install:

  • C++ Desktop
  • .NET Desktop

OpenSSL for Icinga

See our openssl-windows GitHub project.

You will need to install a binary dist version to 'C:\Program Files\OpenSSL'.

There is a Powershell script to help you downloading: .\tools\win32\download-openssl.ps1

Chocolatey

A simple package manager for Windows, please see install instructions.

Git

Best to use Chocolatey, see package details.

choco install git

Flex / Bison

Best to use Chocolatey, see package details.

choco install winflexbison3

CMake

Best to use Chocolatey, see package details or download from: cmake.org

choco install cmake

WIX

Best to use Chocolatey, see package details.

choco install wixtoolset

Boost

Download third party Windows binaries from: boost.org

For example: https://dl.bintray.com/boostorg/release/1.65.1/binaries/boost_1_65_1-msvc-14.1-64.exe

Warnings:

  • Must match your Visual Studio version!
  • CMake might not support the latest Boost version (we used CMake 3.10 and Boost 1_65_1)

Run the installer exe.

Build Icinga 2

Run with VC Native x64 Command Prompt:

powershell .\tools\win32\configure.ps1
powershell .\tools\win32\build.ps1
powershell .\tools\win32\test.ps1

See these scripts for details.

AppVeyor

We are building Icinga 2 with AppVeyor for testing and CI integration.

Please check appveyor.yml for our instructions.