Changes between Version 5 and Version 6 of BuildingOpenVPN-GUI
- Timestamp:
- 11/20/15 15:45:41 (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BuildingOpenVPN-GUI
v5 v6 13 13 ---- 14 14 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).15 Cross 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/. 16 16 17 I work on Debian Jessie, have autoconf, automake etc and mingw-w64-x86-64-dev and mingw-w64-i686-devinstalled.17 These instructions have been tested on Debian Jessie with automake, mingw-w64 and dependencies installed. 18 18 19 19 '''Steps -- building for 64 bit windows''' 20 20 21 Starting from a clone of th isgui repo from github, do21 Starting from a clone of the gui repo from github, do 22 22 23 23 {{{$ autoreconf -i -v}}} … … 25 25 Run configure as 26 26 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"}}} 28 28 29 Replace, /home/selva/windows by the location of openssl include and libs. If disable-change-password is ok, run configure as29 Replace, $HOME/windows by the location of openssl include and libs. If disabling change-password is ok, run configure as 30 30 31 {{{$ ./configure --prefix=/ -- libdir=//lib --host=x86_64-w64-mingw32 --target= --build=x86_64-pc-linux-gnu --program-prefix='' --sbindir=/binCFLAGS=-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./"}}} 32 32 33 33 Then run make: … … 37 37 Optionally use -j n with make. 38 38 39 That will build openvpn-gui.exe. The exec can be easily installed manually but you can also make the installeras39 That will build openvpn-gui.exe. The exec can be easily installed manually or using the installer built as 40 40 41 41 {{{$ make installer}}}