root / Mulberry / trunk / Build-Win32.txt

Revision 146, 2.7 kB (checked in by daboo, 1 year ago)

Complete build instructions, including openssl build.

Line 
11. PRE-REQUISITES
2Get and install Visual Studio 2005 standard edition (at a minimum).
3If your Visual Studio tool does not have an assembler, get http://nasm.sourceforge.net/.
4You will need perl installed to build openssl.
5A Subversion tool will also be required. Instructions below show how to use Eclipse for subversion access.
6
72. USING ECLIPSE AS SUBVERSION TOOL.
8
9Download/Install JRE 6 from Sun.
10Download/Install Eclipse 3.3 C++ edition from eclipse.org.
11Launch Eclipse.
12Create a new 'mulberry-open' folder on disk somewhere and use that as the Eclipse workspace.
13In Eclipse go to Find and Install.
14Create a new location for 'http://subclipse.tigris.org/update_1.2.x'.
15Install subclipse 1.4 (do not install the option packages if it reports errors with other missing packages).
16Go to Eclipse's Window/Preferences and navigate to SVN preferences.
17Switch to using 'JavaSVN'.
18Turn off 'Build Automatically' in the Project menu.
19In Eclipse open the SVN Repository Exploring Perspective.
20Add a new repository for 'http://svn.mulberrymail.com/mulberry'.
21Checkout 'Mulberry/trunk' as a project into 'mulberry-open'.
22Create a 'Libraries' folder in the 'mulberry-open' folder.
23Add a new repository for 'http://svn.mulberrymail.com/repos'.
24Checkout 'CICalendar/trunk' as a project into 'mulberry-open\Libraries'.
25Checkout 'XMLLib/trunk' as a project into 'mulberry-open\Libraries'.
26
273. OpenSSL
28
29Download the latest openssl-0.9.7 release (note 0.9.7 NOT 0.9.8).
30Extract to an 'openssl' directory in 'mulberry-open\Libraries'.
31At a command prompt in the 'openssl' directory do:
32
33  perl Configure VC-WIN32
34
35Then do:
36
37  ms\do_nasm or ms\do_masm or ms\do_ms depending on what assembler you have
38
39Copy 'openssl\ms\nt.mak' to 'openssl\ms\nt-static.mak'.
40Edit 'nt-static.mak' and do:
41
42- Change \MD to \MT in CFLAG.
43- Change 'OUT_D=out32' to 'OUT_D=out32s'.
44- Change 'TMP_D=tmp32' to 'TMP_D=tmp32s'.
45
46Copy 'openssl\ms\nt-static.mak' to 'openssl\ms\nt-debug.mak'.
47Edit 'nt-debug.mak' and do:
48
49- Change \MT to \MDd in CFLAG.
50- Change 'OUT_D=out32s' to 'OUT_D=out32d'.
51- Change 'TMP_D=tmp32s' to 'TMP_D=tmp32d'.
52
53Run Visual Studio and open a Command Prompt.
54Navigate to 'mulberry-open\Libraries\openssl'.
55Do 'nmake -f ms\nt-debug.mak'.
56Do 'nmake -f ms\nt-static.mak'.
57(NB The nmake may error out because it cannot do the mkdir commands that you will see it attempt.
58If that happens just manually execute the four mkdir commands and try the nmake command again.)
59Both the nmakes will likely take a while to complete.
60
614. BUILDING MULBERRY WITH VISUAL STUDIO.
62
63Open 'mulberry-open\Mulberry\Win32\Mulberry.sln' in Visual Studio.
64Run the 'Build Solution' command from the 'Build' menu.
65That will build the Debug variant of all plugins and the Mulberry app.
Note: See TracBrowser for help on using the browser.