Changes between Version 3 and Version 4 of BuildingUsingGenericBuildsystem


Ignore:
Timestamp:
02/24/12 13:05:23 (12 years ago)
Author:
Samuli Seppänen
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BuildingUsingGenericBuildsystem

    v3 v4  
    1212$ git clone git://openvpn.git.sourceforge.net/gitroot/openvpn/openvpn.git
    1313$ git clone https://github.com/alonbl/openvpn-build
    14 $ cp -r openvpn-build/* openvpn
    1514}}}
    1615
     
    5049= MSVC build method =
    5150
    52 '''NOTE:''' These instructions are still incomplete.
    53 
    54 First install Perl (e.g. [http://www.activestate.com/activeperl ActivePerl]).
     51You'll need [http://www.activestate.com/activeperl Perl] and Visual Studio 2008+ if you want to use this build method. First clone the openvpn-build repository, .e.g using ''Git Bash'':
    5552
    5653{{{
    57 cd msvc
    58 build
     54$ git clone https://github.com/alonbl/openvpn-build
    5955}}}
    6056
    61 == Visual Studio IDE ==
    62 
    63 '''NOTE:''' These instructions are still incomplete.
    64 
    65 After you have the dependencies of Complete Batch or your own. Create msvc-env-local.bat with OPENVPN_DEPROOT pointing to the location of the dependencies.
     57Then switch to a Visual Studio command-prompt and run the following commands:
    6658
    6759{{{
    68 $ msvc-dev
     60$ cd openvpn-build\msvc
     61$ build
    6962}}}
    7063
    71 == MSBuild ==
    72 
    73 '''NOTE:''' These instructions are still incomplete.
    74 
    75 [http://en.wikipedia.org/wiki/MSBuild MSBuild] is a Windows command-line tool that allows building Visual Studio projects from the command-line. For a description of the various files it uses look [http://msdn.microsoft.com/en-us/library/hx0cxhaw%28v=vs.80%29.aspx here].
    76 
    77 To build using MSBuild first fetch and unpack a version of OpenVPN sources that has the MSBuild environment included. You can use [https://github.com/downloads/alonbl/openvpn/openvpn-2.3-alpha1.tar.gz this tarball] for now.
    78 
    79 Next create a ''msvc-env-local.bat'' file with content similar to this:
    80 
    81 {{{
    82 set OPENVPN_DEPROOT=C:\Users\JohnDoe\openvpn-build
    83 set OPENSSL_HOME=%OPENVPN_DEPROOT%\openssl
    84 set LZO_HOME=%OPENVPN_DEPROOT%\lzo
    85 set PKCS11H_HOME=%OPENVPN_DEPROOT%\pkcs11-helper
    86 }}}
    87 
    88 This file is loaded by ''msvc-env.bat''. The above layout assumes your dependencies are set up  [wiki:BuildingOnWindows#Settingupdependencies as described here] - follow the Python-based buildsystem instructions.
    89 
    90 Next, launch a Visual Studio command prompt and go to the OpenVPN source directory. Then you can initiate the build:
    91 
    92 {{{
    93 $ msvc-build
    94 }}}
     64This fetches all the dependencies, builds them and builds OpenVPN.
    9565
    9666= Creating a NSIS installer =