| 1 | 1. PRE-REQUISITES
|
|---|
| 2 | Get and install Visual Studio 2008 standard edition (at a minimum).
|
|---|
| 3 | If your Visual Studio tool does not have an assembler, get
|
|---|
| 4 | http://nasm.sourceforge.net/. The current nasm.exe binary should be
|
|---|
| 5 | copied to nasmw.exe in one's path for use by the openssl Makefile.
|
|---|
| 6 | You will need perl installed to build openssl.
|
|---|
| 7 |
|
|---|
| 8 | 2. OpenSSL
|
|---|
| 9 |
|
|---|
| 10 | Download the latest openssl-0.9.7 release (note 0.9.7 NOT 0.9.8).
|
|---|
| 11 | (KAP: testing with 0.9.8m, latest at time of test.)
|
|---|
| 12 | Extract to an 'openssl' directory in 'mulberry-open\Libraries'.
|
|---|
| 13 | At a command prompt in the 'openssl' directory do:
|
|---|
| 14 |
|
|---|
| 15 | perl Configure VC-WIN32
|
|---|
| 16 |
|
|---|
| 17 | Then do:
|
|---|
| 18 |
|
|---|
| 19 | ms\do_nasm or ms\do_masm or ms\do_ms depending on what assembler you have
|
|---|
| 20 |
|
|---|
| 21 | Copy 'openssl\ms\nt.mak' to 'openssl\ms\nt-static.mak'.
|
|---|
| 22 | Edit 'nt-static.mak' and do:
|
|---|
| 23 |
|
|---|
| 24 | - Change 'OUT_D=out32' to 'OUT_D=out32s'.
|
|---|
| 25 | - Change 'TMP_D=tmp32' to 'TMP_D=tmp32s'.
|
|---|
| 26 |
|
|---|
| 27 | Copy 'openssl\ms\nt-static.mak' to 'openssl\ms\nt-debug.mak'.
|
|---|
| 28 | Edit 'nt-debug.mak' and do:
|
|---|
| 29 |
|
|---|
| 30 | - Change /MT to /MDd in CFLAG.
|
|---|
| 31 | - Change 'OUT_D=out32s' to 'OUT_D=out32d'.
|
|---|
| 32 | - Change 'TMP_D=tmp32s' to 'TMP_D=tmp32d'.
|
|---|
| 33 |
|
|---|
| 34 | Open a console window. cd to the Visual Studio top-level directory.
|
|---|
| 35 | Run vcvarsall.bat to set up the environment for command line building.
|
|---|
| 36 | cd to 'Libraries\openssl'.
|
|---|
| 37 | Do 'nmake -f ms\nt-debug.mak'.
|
|---|
| 38 | Do 'nmake -f ms\nt-static.mak'.
|
|---|
| 39 |
|
|---|
| 40 | Both the nmakes will likely take a while to complete.
|
|---|
| 41 |
|
|---|
| 42 | 3. BUILDING MULBERRY WITH VISUAL STUDIO.
|
|---|
| 43 |
|
|---|
| 44 | Add file extension .cp to list of C++ file extensions:
|
|---|
| 45 | Select Tools | Options. Go to Projects and Solutions,
|
|---|
| 46 | VC++ Project Settings, C/C++ File Extensions, and add *.cp
|
|---|
| 47 | to the list if not already present.
|
|---|
| 48 | Open 'Win32\Mulberry.sln' in Visual Studio.
|
|---|
| 49 | Run the 'Build Solution' command from the 'Build' menu.
|
|---|
| 50 | That will build the Debug variant of all plugins and the Mulberry app.
|
|---|