Show
Ignore:
Timestamp:
11/21/07 20:05:16 (1 year ago)
Author:
daboo
Message:

Complete build instructions, including openssl build.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Mulberry/trunk/Build-Win32.txt

    r143 r146  
    1 1. USING ECLIPSE AS SUBVERSION TOOL. 
     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. 
    28 
    39Download/Install JRE 6 from Sun. 
    410Download/Install Eclipse 3.3 C++ edition from eclipse.org. 
    511Launch Eclipse. 
    6 Create a new 'mulberry-open' folder and use that as the Eclipse workspace. 
     12Create a new 'mulberry-open' folder on disk somewhere and use that as the Eclipse workspace. 
    713In Eclipse go to Find and Install. 
    8 Create a new repository location for 'http://subclipse.tigris.org/update_1.2.x'. 
     14Create a new location for 'http://subclipse.tigris.org/update_1.2.x'. 
    915Install subclipse 1.4 (do not install the option packages if it reports errors with other missing packages). 
    1016Go to Eclipse's Window/Preferences and navigate to SVN preferences. 
     
    1319In Eclipse open the SVN Repository Exploring Perspective. 
    1420Add a new repository for 'http://svn.mulberrymail.com/mulberry'. 
    15 Checkouty 'Mulberry/trunk' as a project into 'mulberry-open'. 
     21Checkout 'Mulberry/trunk' as a project into 'mulberry-open'. 
    1622Create a 'Libraries' folder in the 'mulberry-open' folder. 
    1723Add a new repository for 'http://svn.mulberrymail.com/repos'. 
    18 Checkout 'CICalendar/trunk' as a project into 'mulberry-open/Libraries'. 
    19 Checkout 'XMLLib/trunk' as a project into 'mulberry-open/Libraries'. 
     24Checkout 'CICalendar/trunk' as a project into 'mulberry-open\Libraries'. 
     25Checkout 'XMLLib/trunk' as a project into 'mulberry-open\Libraries'. 
    2026 
    21 2. BUILDING MULBERRY WITH VISUAL STUDIO. 
     273. OpenSSL 
    2228 
    23 Get and install Visual Studio 2005 standard edition (at a minimum). 
    24 Open mulberry-open/Mulberry/Win32/Mulberry.sln in Visual Studio. 
     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. 
    2564Run the 'Build Solution' command from the 'Build' menu. 
     65That will build the Debug variant of all plugins and the Mulberry app.