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 5 years ago Last modified on 02/28/13 14:35:46

Attachments (1)

Download all attachments as: .zip