1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
-
+
+
+
+
+
+
+
+
-
+
+
-
+
+
+
+
+
+
+
+
+
+
+
|
<h3>Compiling under windows with sdk compiler</h3>
<h3>Compiling under windows <big>XP</big> with sdk compiler.</h3>
* 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.
* download the [http://zlib.net/|zlib source].
* download [http://www.openssl.org| openssl source]
* download [http://www.nasm.us/|nasm]
* download [http://strawberryperl.com/|perl]
* install sdk
* install nasm
* install perl
* mkdir c:\msc\extra\lib, c:\msc\extra\include
* unzip it. I assume c:\src\zlib
* unzip zlib. I assume c:\src\zlib
* unpack ssl source. I assume c:\src\openssl
* open VIA START MENU "SDK..." > cmd shell
* mkdir c:\msc\extra\lib, c:\msc\extra\include
* cd \src\zlib
* edit win32\Makefile.msc change CFLAGS to -MT -O2. Add inffast.obj to OBJS
* nmake win32\Makefile.msc
* copy zlib.lib c:\msc\extra\lib
* copy zlib.h and zconf.h to c:\msc\extra\include
* make sure nasm is in the path
* cd into c:\src\openssl
* perl Configure VC-WIN32 --prefix=c:\msc\extra
* ms\do_nasm
* Edit ms\nt.mak change ASM=nasmw to ASM=nasm
* nmake -f ms\nt.mak
* nmake -f ms\nt.mak install
* checkout fossil. assume c:\src\fossil
* cd \src\fossil
* fossil update windowscompilers
* mkdir msc\
* cd msc
* edit ..\win\Makefile.msc to enable SSL and uncomment the SSL LIBS
* nmake -f ..\win\Makefile.msc
<h3>Compiling under windows with Digital Mars C compiler</h3>
* download [http://www.digitalmars.com/download/freecompiler.html|Digital Mars c-ompiler]. unzip to c:\
* download the [http://zlib.net/|zlib source].
* unzip it and compile
* open dosbox
|
97
98
99
100
101
102
103
104
105
|
115
116
117
118
119
120
121
|
-
-
|
<h4>Distribution of cross compiled fossil.exe</h4>
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)
<h4>testing the cross compiled fossil.exe</h4>
* 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
* fossil clone http://www.fossil-scm.org/ http.fossil
* If it has <strong>https</strong> support then fossil clone https://www.fossil-scm.org/ https.fossil
|