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