Changes between Version 3 and Version 4 of BuildingOpenVPN-GUI


Ignore:
Timestamp:
11/20/15 08:27:08 (8 years ago)
Author:
Samuli Seppänen
Comment:

Add more up-to-date instructions

Legend:

Unmodified
Added
Removed
Modified
  • BuildingOpenVPN-GUI

    v3 v4  
    99= Building OpenVPN-GUI =
    1010
    11 '''NOTE:''' These instructions are probably outdated. Please fix them or use the process described above.
     11This information is adapted from [http://thread.gmane.org/gmane.network.openvpn.devel/10516/focus=10531 Selva's email] to openvpn-devel mailing list.
    1212
    13 == Installing prequisites ==
     13----
    1414
    15 === MinGW ===
     15Cross compiling on linux is possible. Actually its the only way I've build the gui. Its well documented when done as a part of the full distribution build using openvpn-build (as Samuli pointed out), but could be built alone as well. Here is a very basic description of what I do. The only complication is you need openssl built for the target (windows). I have this cross-compiled from source and installed in $HOME/windows/. There are some tutorials out there on how to cross-compile openssl. Alternatively if change-password feature is not required, you don't need openssl at all to build the gui (see below).
    1616
    17 If you're building the OpenVPN-GUI on Windows, you need to install [http://www.mingw.org/ MinGW] first, as both OpenSSL and OpenVPN-GUI are built with it.
     17I work on Debian Jessie, have autoconf, automake etc and mingw-w64-x86-64-dev and mingw-w64-i686-dev installed.
    1818
    19 === OpenSSL ===
     19'''Steps -- building for 64 bit windows'''
    2020
    21 Build and install OpenSSL using the MinGW instruction given [BuildingOnWindows#BuildingOpenSSL here].
     21Starting from a clone of this gui repo from github, do
    2222
    23 == Building OpenVPN-GUI ==
     23{{{$ autoreconf -i -v}}}
    2424
    25 Launch a MinGW command prompt and descend to the OpenVPN-GUI source directory. From there, issue the following commands:
     25run configure as
    2626
    27 {{{
    28 $ autoreconf -v
    29 $ ./configure --with-crypto-includes=/c/openssl/include --with-crypto-lib=/c/openssl/lib
    30 $ make
    31 }}}
     27{{{$  OPENSSL_CRYPTO_CFLAGS="-I /home/selva/windows/include/ OPENSSL_CRYPTO_LIBS="-L/home/selva/windows/lib/ -lcrypto" ./configure --prefix=/ --libdir=//lib --host=x86_64-w64-mingw32 --target= --build=x86_64-pc-linux-gnu --program-prefix='' --sbindir=/bin}}}
    3228
    33 This assumes you installed the OpenSSL files to that location. This will create a ''openvpn-gui.exe'' file into the build directory. You can simply launch this executable and it should work, provided that OpenVPN is installed.
     29Replace, /home/selva/windows by the location of openssl include and libs. If disable-change-password is ok, run configure as
     30
     31{{{$ ./configure --prefix=/ --libdir=//lib --host=x86_64-w64-mingw32 --target= --build=x86_64-pc-linux-gnu --program-prefix='' --sbindir=/bin  CFLAGS=-DDISABLE_CHANGE_PASSWORD OPENSSL_CRYPTO_LIBS="-L./"}}}
     32
     33Then run make:
     34
     35{{{$ make}}}
     36
     37Optionally use -j n with make.
     38
     39That will build openvpn-gui.exe. The exec can be easily installed manually but you can also make the installer as
     40
     41{{{$ make installer}}}
     42
     43This needs makensis in PATH.