Changes between Version 5 and Version 6 of BuildingOpenVPN-GUI


Ignore:
Timestamp:
11/20/15 15:45:41 (8 years ago)
Author:
Selva Nair
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BuildingOpenVPN-GUI

    v5 v6  
    1313----
    1414
    15 Cross 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. If you're building on Fedora, MinGW has a decent set of cross-compiled libraries available out of the box. Including the mingw32-openssl package (and mingw64-openssl). If change-password feature is not required, you don't need openssl at all to build the gui (see below).
     15Cross compiling on linux is possible. If the change-password feature is enabled (this is the default), openssl library built for the target (windows) is required. This may be cross-compiled from source or if you are building on Fedora, MinGW has a decent set of cross-compiled libraries available out of the box. The following assumes that the openssl library and include files are installed in $HOME/windows/.
    1616
    17 I work on Debian Jessie, have autoconf, automake etc and mingw-w64-x86-64-dev and mingw-w64-i686-dev installed.
     17These instructions have been tested on Debian Jessie with automake, mingw-w64 and dependencies installed.
    1818
    1919'''Steps -- building for 64 bit windows'''
    2020
    21 Starting from a clone of this gui repo from github, do
     21Starting from a clone of the gui repo from github, do
    2222
    2323{{{$ autoreconf -i -v}}}
     
    2525Run configure as
    2626
    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}}}
     27{{{$ ./configure --prefix=/ --host=x86_64-w64-mingw32 --build=x86_64-pc-linux-gnu --program-prefix='' OPENSSL_CRYPTO_CFLAGS="-I $HOME/windows/include/" OPENSSL_CRYPTO_LIBS="-L $HOME/windows/lib/ -lcrypto"}}}
    2828
    29 Replace, /home/selva/windows by the location of openssl include and libs. If disable-change-password is ok, run configure as
     29Replace, $HOME/windows by the location of openssl include and libs. If disabling change-password is ok, run configure as
    3030
    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./"}}}
     31{{{$ ./configure --prefix=/ --host=x86_64-w64-mingw32 --build=x86_64-pc-linux-gnu --program-prefix='' CFLAGS=-DDISABLE_CHANGE_PASSWORD OPENSSL_CRYPTO_LIBS="-L./"}}}
    3232
    3333Then run make:
     
    3737Optionally use -j n with make.
    3838
    39 That will build openvpn-gui.exe. The exec can be easily installed manually but you can also make the installer as
     39That will build openvpn-gui.exe. The exec can be easily installed manually or using the installer built as
    4040
    4141{{{$ make installer}}}