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: |
| 139 | After 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: |