Saturday, June 5, 2010

Building openvpn 2.1.1 with enable-password-save on windows

Lately I’ve been having some requests on how to build openvpn 2.1.1 with enable-password-save. The truth is that a few things have changed since my last post. In order to fill these requests I decided to write down a few things about the process. If you are intrested in downloading an allready compiled version or openvpn 2.1.1 with enable-password-save, check out this post.

Before you start, you should download the following source files from
  • 2.1_rc22-prebuilt.tbz
For the MinGW you should download
  • binutils-2.20-1-mingw32-bin.tar.gz
  • gcc-ada-3.4.5-20060117-3.tar.gz
  • gcc-core-3.4.5-20060117-3.tar.gz
  • gcc-g++-3.4.5-20060117-3.tar.gz
  • gcc-g77-3.4.5-20060117-3.tar.gz
  • gcc-java-3.4.5-20060117-3.tar.gz
  • gcc-objc-3.4.5-20060117-3.tar.gz
  • make-3.81-20090914-mingw32-bin.tar.gz
  • MinGW-5.1.6.exe
  • mingw.ini
  • mingwrt-3.17-mingw32-dev.tar.gz
  • mingwrt-3.17-mingw32-dll.tar.gz
  • w32api-3.14-mingw32-dev.tar.gz

and the following add-ons
  • autoconf2.5-2.64-1-mingw32-bin.tar.tar
  • automake-4-1-mingw32-bin.tar.tar
  • automake1.11-1.11-1-mingw32-bin.tar.tar
  • gettext-0.17-1-mingw32-bin.tar.tar
  • libcrypt-1.1_1-2-msys-1.0.11-dll-0.tar.tar
  • libgettextpo-0.17-1-mingw32-dll-0.tar.tar
  • libintl-0.17-1-mingw32-dll-8.tar.tar
  • m4-1.4.13-1-msys-1.0.11-bin.tar.tar
  • perl-5.6.1_2-1-msys-1.0.11-bin.tar.tar
The software I used during the development is the following:
  • MSYS-1.0.11.exe
  • nsis-2.46-setup.exe (NSIS by nullsoft)
  • npp.5.6.8.Installer.exe (Notepad++ a very nice light editor)
  • 7z465.exe (7-zip for archive manipulation)

One final thing is that you should probably modify the install-win32\ file and set the parameters there to reflect your files' location. For example, in order to use the prebuild driver you should uncomment the line that reads
;!define GENOUT_PREBUILT "../gen-prebuilt"
and add the required prebuild driver in that directory.

Hope that this update will help you build your own openvpn!

1 comment:

Unknown said...

Hey Andreas, this is exactly what I was looking for.. After almost a weekend of trying to get this to work, your post solved the problem for me! All I had to do was uncomment the path to the prebuilt binaries in the file. Thank you so much!