wiki:BuildingOnWindows

Version 10 (modified by Samuli Seppänen, 13 years ago) (diff)

--

Introduction

The traditional way to build OpenVPN for Windows is to cross-compile it on *NIX. This works, but does not allow signing the TUN/TAP driver, which is required for Windows Vista/7 and later. Due to this a new, relatively simple Python-based build system was written. This new build system allows building OpenVPN on Windows more easily, but requires the use of a commercial version of Visual Studio development environment. However, the new build system is "external" from Visual Studio's viewpoint, so meddling with VS's graphical user interface is not necessary.

Installing prequisites

Visual Studio 2008 Professional

Visual Studio 2008 Professional is required to build OpenVPN on Windows. Note that the free Express edition

Python

The new Windows build system is written in [Python http://www.python.org].

LZO library

Sources for the LZO library are required to build OpenVPN.

OpenSSL

Sources for the OpenSSL library are required to build OpenVPN.

Installing optional Git support

Git support is needed if you want to conveniently build the latest development code. You don't need Git support if you fetch the sources from another computer and copy them over, or use source code from release tar.gz or zip files.

Git for Windows

Git for Windows or msysgit is required to work with Git repositories on Windows.

GitExtensions?

GitExtensions makes working with Git easier on Windows. It includes Visual Studio 2008 plugin, Windows explorer support and a GUI to configure and use Git repositories.

KDiff3

KDiff3 is used in handling merge conflicts. It's required by GitExtensions?.

Git Source Control Provider

Git Source Control Provider is a Visual Studio 2008/2010 plugin. It can also be used to launch Git for Windows and GitExtensions? from within Visual Studio.

Configuration

External links