Changes between Version 14 and Version 15 of BuildingUsingGenericBuildsystem
- Timestamp:
- 04/13/12 12:16:53 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BuildingUsingGenericBuildsystem
v14 v15 1 1 = Introduction = 2 2 3 The original contents of this article were adapted from Alon Bar-Lev's (the buildsystemauthor).3 The original contents of this article were adapted from Alon Bar-Lev's emails (the buildsystem's original author). 4 4 5 5 = Generic build method = 6 6 7 This is the most generic method: it can cross compile OpenVPN using any toolchain to any environment. Make sure you have installed correct tool chain, for example [http://mingw-w64.sourceforge.net/ mingw-w64] before you start. Below a few usage examples.7 This is the most generic method: it can cross compile OpenVPN using any toolchain to any environment. Make sure you have installed the correct tool chain, which is [http://mingw-w64.sourceforge.net/ mingw-w64] before you start. A few notes before you start: 8 8 9 windows user: Must configure git not to translate LF to CR/LF, best to use cygwin's git. 9 * Windows users: configure Git not to translate LF to CR/LF; it's probably best to use Cygwin's Git due to this. 10 * Cygwin users: Refer README for required packages. 11 * You probably want to customize the build, look at ''build.vars'' file. 10 12 11 cygwin user: Refer README for required packages. 12 13 Customization can be done, refer to build.vars. 13 First checkout the buildsystem code: 14 14 15 15 {{{ 16 16 $ git clone https://github.com/alonbl/openvpn-build.git 17 17 $ cd openvpn-build/generic 18 # native 18 }}} 19 20 To build a native binary: 21 22 {{{ 19 23 $ IMAGEROOT=`pwd`/image-native ./build 20 # Windows 32bit on Linux 64bit 24 }}} 25 26 To build for Windows 32bit on Linux 64bit: 27 28 {{{ 21 29 $ IMAGEROOT=`pwd`/image-win32 CHOST=i686-w64-mingw32 \ 22 30 CBUILD=x86_64-pc-linux-gnu ./build 23 # Windows 64bit on Linux 64bit 31 }}} 32 33 To build for Windows 64bit on Linux 64bit: 34 35 {{{ 24 36 $ IMAGEROOT=`pwd`/image-win64 CHOST=x86_64-w64-mingw32 \ 25 37 CBUILD=x86_64-pc-linux-gnu ./build 26 # arm 38 }}} 39 40 To build for Arm on Linux 64bit: 41 42 {{{ 27 43 $ IMAGEROOT=`pwd`/image-arm CHOST=arm-unknown-linux-gnueabi \ 28 44 CBUILD=x86_64-pc-linux-gnu ./build