Changes between Version 3 and Version 4 of BuildingOpenVPN-GUI
- Timestamp:
- 11/20/15 08:27:08 (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BuildingOpenVPN-GUI
v3 v4 9 9 = Building OpenVPN-GUI = 10 10 11 '''NOTE:''' These instructions are probably outdated. Please fix them or use the process described above.11 This information is adapted from [http://thread.gmane.org/gmane.network.openvpn.devel/10516/focus=10531 Selva's email] to openvpn-devel mailing list. 12 12 13 == Installing prequisites == 13 ---- 14 14 15 === MinGW === 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. Alternatively if change-password feature is not required, you don't need openssl at all to build the gui (see below). 16 16 17 I f 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.17 I work on Debian Jessie, have autoconf, automake etc and mingw-w64-x86-64-dev and mingw-w64-i686-dev installed. 18 18 19 === OpenSSL === 19 '''Steps -- building for 64 bit windows''' 20 20 21 Build and install OpenSSL using the MinGW instruction given [BuildingOnWindows#BuildingOpenSSL here]. 21 Starting from a clone of this gui repo from github, do 22 22 23 == Building OpenVPN-GUI == 23 {{{$ autoreconf -i -v}}} 24 24 25 Launch a MinGW command prompt and descend to the OpenVPN-GUI source directory. From there, issue the following commands: 25 run configure as 26 26 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}}} 32 28 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. 29 Replace, /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 33 Then run make: 34 35 {{{$ make}}} 36 37 Optionally use -j n with make. 38 39 That 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 43 This needs makensis in PATH.