Version 1 (modified by 11 years ago) (diff) | ,
---|
Table of Contents
Introduction
You can use the generic buildsystem from openvpn-build subproject to cross-compile OpenVPN using any toolchain to any target environment. The build host must have a *NIX-like environment, e.g. Linux, *BSD or Cygwin (on Windows).
Generic instructions
You need to install a bunch of tools before attempting a build:
- mingw-w64, version 2.0.x, may need backported patches (if building Windows binaries)
- gcc-*-arm-linux-gnueabi (if building Arm binaries)
- Git
- man2html (for windows-nsis builds)
- dos2unix (for windows-nsis builds)
- NSIS: if you need support for riducuously long PATHs, you need to build NSIS yourself.
- osslsigncode (installation instructions)
Build environment -specific instructions
Setting up Ubuntu 12.04
On Ubuntu 12.04 (64-bit) you the following commands should take care of everything except osslsigncode:
$ apt-get update $ apt-get install git-core mingw-w64 gcc-4.6-arm-linux-gnueabi man2html dos2unix nsis unzip
Ubuntu 12.10
Windows
If you're building using Cygwin on Windows, it's best to configure Git not to translate LF to CR/LF. For this reason it's probably best to use Cygwin's Git. Also take a look at Cygwin's README to see which packages are required.
Attachments (7)
-
setup-generic-buildsystem.sh (2.4 KB) - added by 11 years ago.
Shell script for setting up the prequisites of openvpn-build/generic on Ubuntu 12.04/12.10
-
setup-generic-buildsystem.2.sh (2.7 KB) - added by 10 years ago.
Updated script to support Ubuntu 14.04
-
setup-generic-buildsystem.3.sh (3.2 KB) - added by 10 years ago.
Version 3: add comments and installation of patched nsis packages on Ubuntu 14.04
-
setup-generic-buildsystem.4.sh (3.2 KB) - added by 9 years ago.
Version 4 of the setup-generic-buildsystem.sh script
-
setup-generic-buildsystem.5.sh (2.3 KB) - added by 8 years ago.
Version 5 of the setup-generic-buildsystem.sh script. This version patches mingw-w64 and nsis automatically from an apt repositry. Only Ubuntu 14.04 is supported - use older versions of the script if you need support for older operating systems and patch MinGW manually.
-
setup-generic-buildsystem.6.sh (1.4 KB) - added by 7 years ago.
openvpn-build setup script for Ubuntu 16.04
-
setup-generic-buildsystem.7.sh (1.4 KB) - added by 6 years ago.
Setup openvpn-build on Ubuntu 16.04 - fix osslsigncode download URL and exit on any error
Download all attachments as: .zip