Changes between Version 14 and Version 15 of BuildingUsingGenericBuildsystem


Ignore:
Timestamp:
04/13/12 12:16:53 (12 years ago)
Author:
Samuli Seppänen
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BuildingUsingGenericBuildsystem

    v14 v15  
    11= Introduction =
    22
    3 The original contents of this article were adapted from Alon Bar-Lev's (the buildsystem author).
     3The original contents of this article were adapted from Alon Bar-Lev's emails (the buildsystem's original author).
    44
    55= Generic build method =
    66
    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.
     7This 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:
    88
    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.
    1012
    11 cygwin user: Refer README for required packages.
    12 
    13 Customization can be done, refer to build.vars.
     13First checkout the buildsystem code:
    1414
    1515{{{
    1616$ git clone https://github.com/alonbl/openvpn-build.git
    1717$ cd openvpn-build/generic
    18 # native
     18}}}
     19
     20To build a native binary:
     21
     22{{{
    1923$ IMAGEROOT=`pwd`/image-native ./build
    20 # Windows 32bit on Linux 64bit
     24}}}
     25
     26To build for Windows 32bit on Linux 64bit:
     27
     28{{{
    2129$ IMAGEROOT=`pwd`/image-win32 CHOST=i686-w64-mingw32 \
    2230    CBUILD=x86_64-pc-linux-gnu ./build
    23 # Windows 64bit on Linux 64bit
     31}}}
     32
     33To build for Windows 64bit on Linux 64bit:
     34
     35{{{
    2436$ IMAGEROOT=`pwd`/image-win64 CHOST=x86_64-w64-mingw32 \
    2537    CBUILD=x86_64-pc-linux-gnu ./build
    26 # arm
     38}}}
     39
     40To build for Arm on Linux 64bit:
     41
     42{{{
    2743$ IMAGEROOT=`pwd`/image-arm CHOST=arm-unknown-linux-gnueabi \
    2844    CBUILD=x86_64-pc-linux-gnu ./build