Changes between Version 1 and Version 2 of SettingUpGenericBuildsystem
- Timestamp:
- 02/28/13 10:22:36 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SettingUpGenericBuildsystem
v1 v2 9 9 You need to install a bunch of tools before attempting a build: 10 10 11 * [http://mingw-w64.sourceforge.net/ mingw-w64], version 2.0.x , [wiki:InstallingMingwW64 may need backported patches] (if building Windows binaries)11 * [http://mingw-w64.sourceforge.net/ mingw-w64], version 2.0.x. 12 12 * gcc-*-arm-linux-gnueabi (if building Arm binaries) 13 13 * [http://git-scm.com/ Git] … … 15 15 * [http://waterlan.home.xs4all.nl/dos2unix.html dos2unix] (for ''windows-nsis'' builds) 16 16 * [http://nsis.sourceforge.net/Main_Page NSIS]: if you need support for riducuously long PATHs, you need to [wiki::BuildingMakeNSIS build NSIS] yourself. 17 * [http://osslsigncode.sourceforge.net/ osslsigncode] ([wiki:BuildingUsingGenericBuildsystem#Installingosslsigncode installation instructions]) 17 * [http://osslsigncode.sourceforge.net/ osslsigncode] version 1.4 or later (pkcs12 support needed). Earlier versions can be used with minor modifications to the codesign() method in the build scripts. 18 19 = Converting certificates to PKCS12 format = 20 21 If you have code-signing certificates generated with MS tools (.spc and .pvk files), you can convert them into standard (pkcs12) format using [attachment:spc+pvk-to-p12.sh this script]. If that fails, look at this [wiki:BuildingUsingGenericBuildsystem@51 old version of this page] for manual instructions. 22 23 You can also create ''self-signed'' certificate for testing like this: 24 25 {{{ 26 $ openssl req -newkey rsa:1024 -new -x509 -subj "/CN=test1" -out test.crt 27 $ openssl pkcs12 -export -inkey privkey.pem -in test.crt -out test.p12 28 }}} 29 30 Once you have the pkcs12 archive, you can give it and it's password as argument to the buildsystem(s). For details, look here: 31 32 * [wiki:BuildingUsingGenericBuildsystem#CreatingaNSISinstallerwindows-nsissubdir Building Windows NSIS installer] 33 * [wiki:BuildingUsingGenericBuildsystem#BuildingTAP-Windows Building tap-windows] 18 34 19 35 = Build environment -specific instructions = 20 36 21 == Setting upUbuntu 12.04 ==37 == Ubuntu 12.04 == 22 38 23 On Ubuntu 12.04 (64-bit) you the following commands should take care of everything except osslsigncode:39 On Ubuntu 12.04 (64-bit) you most build dependencies are satisfied if you run the following command: 24 40 25 41 {{{ … … 28 44 }}} 29 45 46 If you intend to build Windows installers with OpenVPN-GUI, you need to install a [wiki:InstallingMingwW64 modified MinGW version]. 47 48 If you wish to sign the release files (executables, libraries and installers), you need to build [http://sourceforge.net/projects/osslsigncode/ osslsigncode] manually. First install OpenSSL and Curl development libraries: 49 50 {{{ 51 $ apt-get update 52 $ apt-get install libssl-dev libcurl4-openssl-dev 53 }}} 54 55 The curl library is used for timestamping support. Extract the osslsigncode tarball and issue the usual commands: 56 57 {{{ 58 $ ./configure 59 $ make 60 $ sudo make install 61 }}} 62 63 This will put osslsigncode in PATH where the build system can find it. 64 30 65 == Ubuntu 12.10 == 31 66