1 -<h3>Compiling under windows with sdk compiler</h3>
1 +<h3>Compiling under windows <big>XP</big> with sdk compiler.</h3>
2 2 * download [http://www.microsoft.com/downloads/details.aspx?familyid=C17BA869-9671-4330-A63E-1FD44E0E2505&displaylang=en|Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 SP1]. Install and configure.
3 3 * download the [http://zlib.net/|zlib source].
4 - * unzip it. I assume c:\src\zlib
5 - * open VIA START MENU "SDK..." > cmd shell
4 + * download [http://www.openssl.org| openssl source]
5 + * download [http://www.nasm.us/|nasm]
6 + * download [http://strawberryperl.com/|perl]
7 + * install sdk
8 + * install nasm
9 + * install perl
6 10 * mkdir c:\msc\extra\lib, c:\msc\extra\include
11 + * unzip zlib. I assume c:\src\zlib
12 + * unpack ssl source. I assume c:\src\openssl
13 + * open VIA START MENU "SDK..." > cmd shell
14 + * cd \src\zlib
15 + * edit win32\Makefile.msc change CFLAGS to -MT -O2. Add inffast.obj to OBJS
16 + * nmake win32\Makefile.msc
7 17 * copy zlib.lib c:\msc\extra\lib
8 18 * copy zlib.h and zconf.h to c:\msc\extra\include
19 + * make sure nasm is in the path
20 + * cd into c:\src\openssl
21 + * perl Configure VC-WIN32 --prefix=c:\msc\extra
22 + * ms\do_nasm
23 + * Edit ms\nt.mak change ASM=nasmw to ASM=nasm
24 + * nmake -f ms\nt.mak
25 + * nmake -f ms\nt.mak install
9 26 * checkout fossil. assume c:\src\fossil
10 27 * cd \src\fossil
11 28 * fossil update windowscompilers
12 29 * mkdir msc\
13 30 * cd msc
31 + * edit ..\win\Makefile.msc to enable SSL and uncomment the SSL LIBS
14 32 * nmake -f ..\win\Makefile.msc
15 33
16 34 <h3>Compiling under windows with Digital Mars C compiler</h3>
17 35 * download [http://www.digitalmars.com/download/freecompiler.html|Digital Mars c-ompiler]. unzip to c:\
18 36 * download the [http://zlib.net/|zlib source].
19 37 * unzip it and compile
20 38 * open dosbox
................................................................................
97 115 <h4>Distribution of cross compiled fossil.exe</h4>
98 116 Because you have linked against zlib and maybe ssl you need to include from <strong>/usr/i486-mingw32/bin</strong> zlib1.dll and, optional, libssl32.dll (and maybe also libeay32.dll)
99 117
100 118 <h4>testing the cross compiled fossil.exe</h4>
101 119 * copy fossil.exe and the dll's to a windows system. For testing purpose all in one directory. For production use a directory in your PATH
102 120 * fossil clone http://www.fossil-scm.org/ http.fossil
103 121 * If it has <strong>https</strong> support then fossil clone https://www.fossil-scm.org/ https.fossil
104 -
105 -