Note: As of 2018, only Ubuntu 16.04 LTS is known to work with the Openvpn Build-System.

In general, MinGW-w64 2.0.x found in Ubuntu 12.04 (=2.0.1) or Ubuntu 12.10 (=2.0.3) and other fairly up-to-date distros is recent enough to build openvpn and it's dependencies using openvpn-build/generic. However, the latest version of openvpn-gui (as of July 2012) requires backporting some patches from mingw SVN trunk to mingw 2.0.x codebase. These patches are attached to this Wiki page for your convenience.

Building patched mingw-w64-2.0.1 Ubuntu packages

First copy all the patches on this page to your home directory. Then install mingw-w64 build dependencies:

$ apt-get build-dep mingw-w64
$ apt-get install apt-src

Fetch the mingw source debs:

$ mkdir ~/mingw-deb-build
$ cd ~/mingw-deb-build
$ apt-src install --location . mingw-w64-dev

Patch the mingw sources:

$ cd ~/mingw-deb-build/mingw-w64-2.0.1
$ patch -p1 < ~/headers.patch
$ patch -p1 < ~/lib32.patch
$ patch -p1 < ~/lib64.patch
$ patch -p1 < ~/makefiles.patch

Now you can build the modified mingw-w64 version:

$ cd ~/mingw-deb-build
$ apt-src build --installdebs mingw-w64-dev

Installing patched mingw-w64-2.0.1 Ubuntu packages

Instead of patching and building mingw-w64 yourself, you can try installing standard mingw-w64 from Ubuntu repositories and then installing these mingw-w64 packages on top of those. Use MinGW 2.0.1 on Ubuntu 12.04 and MinGW 2.0.3 on Ubuntu 12.10. The build number of the modified packages is set high to prevent standard packages from overwriting them during system upgrades.

Last modified 3 years ago Last modified on 07/21/18 13:23:18

Attachments (1)

Download all attachments as: .zip