Changes between Version 3 and Version 4 of BuildingUsingGenericBuildsystem
- Timestamp:
- 02/24/12 13:05:23 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BuildingUsingGenericBuildsystem
v3 v4 12 12 $ git clone git://openvpn.git.sourceforge.net/gitroot/openvpn/openvpn.git 13 13 $ git clone https://github.com/alonbl/openvpn-build 14 $ cp -r openvpn-build/* openvpn15 14 }}} 16 15 … … 50 49 = MSVC build method = 51 50 52 '''NOTE:''' These instructions are still incomplete. 53 54 First install Perl (e.g. [http://www.activestate.com/activeperl ActivePerl]). 51 You'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'': 55 52 56 53 {{{ 57 cd msvc 58 build 54 $ git clone https://github.com/alonbl/openvpn-build 59 55 }}} 60 56 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. 57 Then switch to a Visual Studio command-prompt and run the following commands: 66 58 67 59 {{{ 68 $ msvc-dev 60 $ cd openvpn-build\msvc 61 $ build 69 62 }}} 70 63 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 }}} 64 This fetches all the dependencies, builds them and builds OpenVPN. 95 65 96 66 = Creating a NSIS installer =