1
2
3
4
5
6
7
|
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
|
<h3>Compiling under windows 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].
* unzip it. I assume c:\src\zlib
* open VIA START MENU "SDK..." > cmd shell
* mkdir c:\msc\extra\lib, c:\msc\extra\include
* copy zlib.lib c:\msc\extra\lib
* copy zlib.h and zconf.h to c:\msc\extra\include
* checkout fossil. assume c:\src\fossil
* cd \src\fossil
* fossil update windowscompilers
* mkdir msc\
* cd msc
* 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
* mkdir c:\DM\extra\lib, c:\DM\extra\include
* copy zlib.lib c:\DM\extra\lib
* copy zlib.h and zconf.h to c:\DM\extra\include
* checkout fossil. assume c:\src\fossil
* cd \src\fossil
* fossil update windowscompilers
* mkdir dmc\
* cd dmc
* c:\DM\bin\make -f ..\win\Makefile.dmc
<h3>Compiling under Wine 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
* open dosbox "wineconsole cmd"
* compile zlib
* mkdir c:\DM\extra\lib, c:\DM\extra\include
* copy zlib.lib c:\DM\extra\lib
* copy zlib.h and zconf.h to c:\DM\extra\include
* checkout fossil. assume c:\src\fossil
* cd \src\fossil
* fossil update windowscompilers
* mkdir dmc\
* cd dmc
* c:\DM\bin\make -f ..\win\Makefile.dmc
<h3>Compiling under windows with Mingw</h3>
<h4>Installing the tools.</h4>
* download [http://sourceforge.net/projects/mingw/files/|mingw-xx.exe] version 5.1.6 or later. Install it. I assume it will be installed in <strong>c:\MingW</strong>
* download [http://sourceforge.net/projects/mingw/files/|msys-xx.exe] version 1.0.10 or later. Install it. I assume it will be installed in <strong>c:\msys</strong>
* download [http://gnuwin32.sourceforge.net/packages/zlib.htm|zlib] the binary and developer files. Extract to <strong>c:\MingW</strong>
* If you want <strong>https</strong> support download [http://gnuwin32.sourceforge.net/packages/openssl.htm|openssl] the binary and developer files. Extract to <strong>c:\MingW</strong>
|
51
52
53
54
55
56
57
58
|
97
98
99
100
101
102
103
104
105
|
+
|
<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
|