Changes between Version 45 and Version 46 of BuildingOnWindows


Ignore:
Timestamp:
01/06/11 14:55:20 (13 years ago)
Author:
Samuli Seppänen
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BuildingOnWindows

    v45 v46  
    137137 * '''C:\openvpn-build\signtool'''. a directory containing ''signtool.exe''. This tool can be found from the Microsoft SDK directory (e.g. ''C:\Program Files\Microsoft SDKs\Windows\V6.0A\bin'').
    138138
    139 After setting up the directories, you should check ''win\settings.in'' file to see if any variables need modifications. Also, the build will fail unless you comment out a few lines from ''options.c'':
    140 
    141 {{{
    142 --- snip ---
    143 
    144 /* #include "configure.h" */
    145 
    146 --- snip ---
    147 
    148 static void
    149 usage_version (void)
    150 {
    151   msg (M_INFO|M_NOPREFIX, "%s", title_string);
    152   msg (M_INFO|M_NOPREFIX, "Originally developed by James Yonan");
    153   msg (M_INFO|M_NOPREFIX, "Copyright (C) 2002-2010 OpenVPN Technologies, Inc. <sales@openvpn.net>");
    154 
    155 /* Begin commented section
    156 
    157 #ifndef ENABLE_SMALL
    158 #ifdef CONFIGURE_CALL
    159   msg (M_INFO|M_NOPREFIX, "\n%s\n", CONFIGURE_CALL);
    160 #endif
    161   msg (M_INFO|M_NOPREFIX, "Compile time defines: %s", CONFIGURE_DEFINES);
    162 #endif
    163 
    164 End commented section */
    165 
    166   openvpn_exit (OPENVPN_EXIT_STATUS_USAGE); /* exit point */
    167 
    168 }}}
    169 
    170 
    171 
    172 Make sure to use a UNIX linefeed-capable editor such as ''wordpad'' to do this.
    173 
    174 
    175 
    176 
    177 Next fire up a console/MS DOS prompt and go to the ''win'' directory and start the build:
     139After setting up the directories, you should check ''<openvpn-build-root>\win\settings.in'' file to see if any variables need modifications. Next fire up a ''Visual Studio 2008 Command Prompt ''win'' directory and start the build:
    178140
    179141{{{
     
    187149}}}
    188150
    189 In theory this should do the trick. If you want to disable driver signing, you need comments out a two lines in ''win\build_all.py'':
     151In theory this should do the trick. If you want to disable driver signing, use
    190152
    191153{{{
    192 #from sign import main as sign
     154C:\openvpn-testing\win> python build_all.py -u
     155}}}
    193156
    194 def main(config):
    195     config_all(config)
    196     build_openvpn()
    197     build_ddk(config, 'tap', 'all')
    198     build_ddk(config, 'tapinstall', 'all')
    199     #sign(config, 'all')
    200     make_dist(config)
     157To see all available build options, use
     158
     159{{{
     160C:\openvpn-testing\win> python build_all.py --help
    201161}}}
    202162