wiki:InstallingMingwW64

Version 4 (modified by Samuli Seppänen, 11 years ago) (diff)

--

Introduction

In general, MinGW-w64 2.0.x found in Ubuntu 12.04 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 12.04 repositories and then installing these mingw-w64 packages on top of those. Their build number is set high to prevent standard packages from overwriting them during system upgrades.

Attachments (1)

Download all attachments as: .zip