Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 439 lines (308 sloc) 16.108 kb
5f9d13b renaming "Objective Caml" to "OCaml" (first pass)
doligez authored
1 Release notes on the MS Windows ports of OCaml
2 ----------------------------------------------
cf69c17 MAJ 3.01
xleroy authored
3
5f9d13b renaming "Objective Caml" to "OCaml" (first pass)
doligez authored
4 There are no less than four ports of OCaml for MS Windows available:
648aa30 Nettoyages
xleroy authored
5 - a native Win32 port, built with the Microsoft development tools;
fdf2fb0 #5179: the 'official' 32-bit mingw compiler is now the one from the ming...
frisch authored
6 - a native Win32 port, built with the 32-bit version of the gcc
7 compiler from the mingw-w64 project, packaged in Cygwin
8 (under the name mingw64-i686);
cf69c17 MAJ 3.01
xleroy authored
9 - a port consisting of the Unix sources compiled under the Cygwin
05648d1 Documentation portage Win64/MSVC
xleroy authored
10 Unix-like environment for Windows;
e7d6b93 clean up spaces and tabs
doligez authored
11 - a native Win64 port (64-bit Windows), built with the Microsoft
05648d1 Documentation portage Win64/MSVC
xleroy authored
12 development tools.
cf69c17 MAJ 3.01
xleroy authored
13
1131ee4 MAJ portage MinGW
xleroy authored
14 Here is a summary of the main differences between these ports:
cf69c17 MAJ 3.01
xleroy authored
15
648aa30 Nettoyages
xleroy authored
16 Native MS Native MinGW Cygwin
05648d1 Documentation portage Win64/MSVC
xleroy authored
17
18 64 bits? Win32 or Win64 Win32 only Win32 only
19
1131ee4 MAJ portage MinGW
xleroy authored
20 Third-party software required
648aa30 Nettoyages
xleroy authored
21 - for base bytecode system none none none
37d95e1 Le portage Mingw a besoin de Cygwin (et non Mingw+MSYS) pour compiler
xleroy authored
22 - for ocamlc -custom MSVC Cygwin Cygwin
23 - for native-code generation MSVC+MASM Cygwin Cygwin
cf69c17 MAJ 3.01
xleroy authored
24
648aa30 Nettoyages
xleroy authored
25 Speed of bytecode interpreter 70% 100% 100%
1131ee4 MAJ portage MinGW
xleroy authored
26
a417f48 ocamldebug under Win32 (S. Le Gall, Lexifi)
xleroy authored
27 Replay debugger yes (**) yes (**) yes
1131ee4 MAJ portage MinGW
xleroy authored
28
648aa30 Nettoyages
xleroy authored
29 The Unix library partial partial full
1131ee4 MAJ portage MinGW
xleroy authored
30
37d95e1 Le portage Mingw a besoin de Cygwin (et non Mingw+MSYS) pour compiler
xleroy authored
31 The Threads library yes yes yes
1131ee4 MAJ portage MinGW
xleroy authored
32
648aa30 Nettoyages
xleroy authored
33 The Graphics library yes yes no
1131ee4 MAJ portage MinGW
xleroy authored
34
82c273a MAJ et nettoyages
xleroy authored
35 Restrictions on generated executables? none none yes (*)
1131ee4 MAJ portage MinGW
xleroy authored
36
82c273a MAJ et nettoyages
xleroy authored
37 (*) Cygwin-generated .exe files refer to a DLL that is distributed under
38 the GPL. Thus, these .exe files can only be distributed under a license
37d95e1 Le portage Mingw a besoin de Cygwin (et non Mingw+MSYS) pour compiler
xleroy authored
39 that is compatible with the GPL. Executables generated by MSVC or by
82c273a MAJ et nettoyages
xleroy authored
40 MinGW have no such restrictions.
cf69c17 MAJ 3.01
xleroy authored
41
a45ed2c merge changes from 3.12.0 to 3.12.1
doligez authored
42 (**) The debugger is supported but the "replay" functions are not enabled.
a417f48 ocamldebug under Win32 (S. Le Gall, Lexifi)
xleroy authored
43 Other functions are available (step, goto, run...).
44
82c273a MAJ et nettoyages
xleroy authored
45 The remainder of this document gives more information on each port.
cf69c17 MAJ 3.01
xleroy authored
46
47 ------------------------------------------------------------------------------
48
dbf6fb1 merge changes from branching of 3.12 to release/3.12.0
doligez authored
49 The native Win32 port built with Microsoft Windows SDK
50 ------------------------------------------------------
d06f82e Blabla sur la version Windows
xleroy authored
51
52 REQUIREMENTS:
53
dbf6fb1 merge changes from branching of 3.12 to release/3.12.0
doligez authored
54 This port runs under MS Windows 7 (32 and 64 bits), Vista, XP, and 2000.
d06f82e Blabla sur la version Windows
xleroy authored
55
11d8fff Renommage en Objective Caml
xleroy authored
56 The base bytecode system (ocamlc, ocaml, ocamllex, ocamlyacc, ...)
57 runs without any additional tools.
d06f82e Blabla sur la version Windows
xleroy authored
58
dbf6fb1 merge changes from branching of 3.12 to release/3.12.0
doligez authored
59 The native-code compiler (ocamlopt) requires the Microsoft Windows SDK
60 (item [1]) and the flexdll tool (item [2]).
d06f82e Blabla sur la version Windows
xleroy authored
61
3d19349 More renaming to OCaml
doligez authored
62 Statically linking OCaml bytecode with C code (ocamlc -custom) also requires
dbf6fb1 merge changes from branching of 3.12 to release/3.12.0
doligez authored
63 items [1] and [2].
3a217c1 Document the fact that the Win7 sdk is ok.
frisch authored
64
dbf6fb1 merge changes from branching of 3.12 to release/3.12.0
doligez authored
65 The LablTk GUI requires Tcl/Tk 8.5 (item [3]).
f577670 configure, INSTALL: option -with-pthread
xleroy authored
66
d06f82e Blabla sur la version Windows
xleroy authored
67
68 INSTALLATION:
69
1b438f1 MAJ
xleroy authored
70 The binary distribution is a self-installing executable archive.
71 Just run it and it should install OCaml automatically.
d06f82e Blabla sur la version Windows
xleroy authored
72
3585fec MAJ install Windows
xleroy authored
73 To run programs that use the LablTK GUI, the directory where the
cff40c4 merge changes from release/3.11.1 to release/3.11.2
doligez authored
74 DLLs tk85.dll and tcl85.dll were installed (by the Tcl/Tk
3585fec MAJ install Windows
xleroy authored
75 installer) must be added to the PATH environment variable.
76
77 To compile programs that use the LablTK GUI, the directory where the
cff40c4 merge changes from release/3.11.1 to release/3.11.2
doligez authored
78 libraries tk85.lib and tcl85.lib were installed (by the Tcl/Tk
3585fec MAJ install Windows
xleroy authored
79 installer) must be added to the library search path in the LIB
dbf6fb1 merge changes from branching of 3.12 to release/3.12.0
doligez authored
80 environment variable. E.g. if Tcl/Tk was installed in C:\Tcl, add
81 "C:\Tcl\lib" to the LIB environment variable.
cf69c17 MAJ 3.01
xleroy authored
82
68cfc3f fusion des changements 3.09.2 -> 3.09.3
doligez authored
83 THIRD-PARTY SOFTWARE:
84
dbf6fb1 merge changes from branching of 3.12 to release/3.12.0
doligez authored
85 [1] Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 Service Pack 1.
86 Can be downloaded for free from
87 http://www.microsoft.com/downloads/en/default.aspx
88 under the name "Microsoft Windows 7 SDK".
68cfc3f fusion des changements 3.09.2 -> 3.09.3
doligez authored
89
ffe4abf update instructions for recompilation under MSVC
doligez authored
90 [2] flexdll version 0.26 or later.
8bacf14 Document dependency on flexdll
frisch authored
91 Can be downloaded from http://alain.frisch.fr/flexdll.html
92
dbf6fb1 merge changes from branching of 3.12 to release/3.12.0
doligez authored
93 [3] TCL/TK version 8.5. Windows binaries are available as part of the
94 ActiveTCL distribution at http://www.activestate.com/products/ActiveTcl/
3a217c1 Document the fact that the Win7 sdk is ok.
frisch authored
95
96
d06f82e Blabla sur la version Windows
xleroy authored
97 RECOMPILATION FROM THE SOURCES:
98
99 The command-line tools can be recompiled from the Unix source
dbf6fb1 merge changes from branching of 3.12 to release/3.12.0
doligez authored
100 distribution (ocaml-X.YY.Z.tar.gz), which also contains the files modified
d06f82e Blabla sur la version Windows
xleroy authored
101 for Windows.
102
9eaedc5 Chargement dynamique de primitives C
xleroy authored
103 You will need the following software components to perform the recompilation:
dbf6fb1 merge changes from branching of 3.12 to release/3.12.0
doligez authored
104 - Windows NT, 2000, XP, Vista, or 7 (32 or 64 bits).
105 - Items [1], [2] and [3] from the list of recommended software above.
106 Make sure to install the 32-bit version of TCL/TK, even if you are
107 compiling on a 64-bit Windows.
68cfc3f fusion des changements 3.09.2 -> 3.09.3
doligez authored
108 - The Cygwin port of GNU tools, available from http://www.cygwin.com/
ffe4abf update instructions for recompilation under MSVC
doligez authored
109 Install at least the following packages (and their dependencies):
110 diffutils, make, ncurses.
d06f82e Blabla sur la version Windows
xleroy authored
111
dbf6fb1 merge changes from branching of 3.12 to release/3.12.0
doligez authored
112 First, you need to set up your cygwin environment for using the MS
113 tools. The following assumes that you have installed [1], [2], and [3]
114 in their default directories. If this is not the case, you will need
115 to adjust the paths accordingly.
116
117 Open a Windows Command Prompt and enter the following command:
118 set PFPATH=C:\Program Files
119 If you are compiling on the 64-bit version of Windows 7, enter the
120 following instead:
121 set PFPATH=C:\Program Files (x86)
122
123 Then enter the following commands:
124 cd "%PFPATH%\Microsoft Visual Studio 9.0\VC\bin"
ffe4abf update instructions for recompilation under MSVC
doligez authored
125 set FLEXDLLDIR=%PFPATH%\flexdll
dbf6fb1 merge changes from branching of 3.12 to release/3.12.0
doligez authored
126 vcvars32
127 echo VCPATH="`cygpath -p '%Path%'`" >C:\cygwin\tmp\msenv
128 echo LIB="%LIB%;C:\Tcl\lib" >>C:\cygwin\tmp\msenv
129 echo LIBPATH="%LIBPATH%" >>C:\cygwin\tmp\msenv
ffe4abf update instructions for recompilation under MSVC
doligez authored
130 echo INCLUDE="%INCLUDE%;%FLEXDLLDIR%;C:\Tcl\include" >>C:\cygwin\tmp\msenv
131 echo FLPATH="`cygpath '%FLEXDLLDIR%'`" >>C:\cygwin\tmp\msenv
132 echo PATH="$VCPATH:$FLPATH:$PATH" >>C:\cygwin\tmp\msenv
dbf6fb1 merge changes from branching of 3.12 to release/3.12.0
doligez authored
133 echo export PATH LIB LIBPATH INCLUDE >>C:\cygwin\tmp\msenv
134 echo export OCAMLBUILD_FIND=/usr/bin/find >>C:\cygwin\tmp\msenv
135
136 Open a Cygwin shell and enter the following commands:
137 tr -d '\r' </tmp/msenv >.msenv32
138 echo '. $HOME/.msenv32' >>.bashrc
139
140 Now, close the Command Prompt and the shell and you're set up for
141 using the MS tools under Cygwin.
142
143
144 To recompile OCaml, start a new Cygwin shell and change to the top-level
1131ee4 MAJ portage MinGW
xleroy authored
145 directory of the OCaml distribution. Then, do
146
5ccc0e3 detabisation
doligez authored
147 cp config/m-nt.h config/m.h
148 cp config/s-nt.h config/s.h
149 cp config/Makefile.msvc config/Makefile
f46ea68 MAJ. Description de la recompilation a partir des sources
xleroy authored
150
82c273a MAJ et nettoyages
xleroy authored
151 Then, edit config/Makefile as needed, following the comments in this file.
152 Normally, the only variables that need to be changed are
5ccc0e3 detabisation
doligez authored
153 PREFIX where to install everything
154 TK_ROOT where TCL/TK was installed
d06f82e Blabla sur la version Windows
xleroy authored
155
2a85980 Some changes to the build system
ertai authored
156 Finally, use "make -f Makefile.nt" to build the system, e.g.
1131ee4 MAJ portage MinGW
xleroy authored
157
158 make -f Makefile.nt world
159 make -f Makefile.nt bootstrap
160 make -f Makefile.nt opt
68cfc3f fusion des changements 3.09.2 -> 3.09.3
doligez authored
161 make -f Makefile.nt opt.opt
1131ee4 MAJ portage MinGW
xleroy authored
162 make -f Makefile.nt install
163
164 NOTES:
d06f82e Blabla sur la version Windows
xleroy authored
165
82c273a MAJ et nettoyages
xleroy authored
166 * The VC++ compiler does not implement "computed gotos", and therefore
648aa30 Nettoyages
xleroy authored
167 generates inefficient code for byterun/interp.c. Consequently, the
168 performance of bytecode programs is about 2/3 of that obtained under
1131ee4 MAJ portage MinGW
xleroy authored
169 Unix/GCC or Cygwin or Mingw on similar hardware.
90170a2 MAJ.
xleroy authored
170
9eb33db MAJ
xleroy authored
171 * Libraries available in this port: "num", "str", "threads", "graphics",
e7d6b93 clean up spaces and tabs
doligez authored
172 "labltk", and large parts of "unix".
d06f82e Blabla sur la version Windows
xleroy authored
173
5505e95 PR#4547: documentation updated and made more precise
xleroy authored
174 * The replay debugger is partially supported (no reverse execution).
d06f82e Blabla sur la version Windows
xleroy authored
175
176 CREDITS:
177
5f9d13b renaming "Objective Caml" to "OCaml" (first pass)
doligez authored
178 The initial port of Caml Special Light (the ancestor of OCaml) to
179 Windows NT was done by Kevin Gallo at Microsoft Research, who kindly
3d19349 More renaming to OCaml
doligez authored
180 contributed his changes to the OCaml project.
d06f82e Blabla sur la version Windows
xleroy authored
181
f1d7182 Merge de OCamlWinPlus (Christopher Watford)
xleroy authored
182 The graphical user interface for the toplevel was initially developed
183 by Jacob Navia, then significantly improved by Christopher A. Watford.
1131ee4 MAJ portage MinGW
xleroy authored
184
185 ------------------------------------------------------------------------------
186
187 The native Win32 port built with Mingw
188 --------------------------------------
189
190 REQUIREMENTS:
191
2686939 merge changes from 3.10.2merged to 3.11.0
doligez authored
192 This port runs under MS Windows Vista, XP, and 2000.
1131ee4 MAJ portage MinGW
xleroy authored
193
194 The base bytecode system (ocamlc, ocaml, ocamllex, ocamlyacc, ...)
195 runs without any additional tools.
196
197 The native-code compiler (ocamlopt), as well as static linking of
3d19349 More renaming to OCaml
doligez authored
198 OCaml bytecode with C code (ocamlc -custom), require
37d95e1 Le portage Mingw a besoin de Cygwin (et non Mingw+MSYS) pour compiler
xleroy authored
199 the Cygwin development tools, available at
68cfc3f fusion des changements 3.09.2 -> 3.09.3
doligez authored
200 http://www.cygwin.com/
8bacf14 Document dependency on flexdll
frisch authored
201 and the flexdll tool, available at
202 http://alain.frisch.fr/flexdll.html
68cfc3f fusion des changements 3.09.2 -> 3.09.3
doligez authored
203 You will need to install at least the following Cygwin packages (use
204 the Setup tool from Cygwin):
e39bbe8 Documenter probleme avec Mingw/MSYS
xleroy authored
205
fdf2fb0 #5179: the 'official' 32-bit mingw compiler is now the one from the ming...
frisch authored
206 mingw64-i686-binutils
207 mingw64-i686-gcc
208 mingw64-i686-runtime
209
210
211 NOTE:
212 - There is another 32-bit gcc compiler, from the MinGW.org
213 project, packaged in Cygwin under the name mingw-gcc.
214 It is not currently supported by flexdll and OCaml.
215
216 - The standard gcc compiler shipped with Cygwin used to
217 support a "-mno-cygwin" option, which turned the compiler
218 into a mingw compiler. This option was used
219 by previous versions of flexdll and OCaml, but it is no
220 longer available in recent version, hence the switch
221 to another toolchain packaged in Cygwin.
222
223 - The standalone mingw toolchain from the MinGW-w64 project
224 (http://mingw-w64.sourceforge.net/) is not supported.
225 Please use the version packaged in Cygwin instead.
1131ee4 MAJ portage MinGW
xleroy authored
226
e7d6b93 clean up spaces and tabs
doligez authored
227 The LablTk GUI requires Tcl/Tk 8.5. Windows binaries are available
bc6f328 Use TCL/TK 8.4 instead of 8.3
xleroy authored
228 as part of the ActiveTCL distribution at
229 http://www.activestate.com/products/ActiveTcl/
dbf6fb1 merge changes from branching of 3.12 to release/3.12.0
doligez authored
230 Note that you will need to install the 32-bit version of ActiveTCL,
231 even if you are on a 64-bit version of Windows.
1131ee4 MAJ portage MinGW
xleroy authored
232
233 INSTALLATION:
234
f791d48 Fusion des modifs faites sur la branche release jusqu'a la release 3.08....
xleroy authored
235 The binary distribution is a self-installing executable archive.
236 Just run it and it should install OCaml automatically.
237
238 To run programs that use the LablTK GUI, the directory where the
cff40c4 merge changes from release/3.11.1 to release/3.11.2
doligez authored
239 DLLs tk85.dll and tcl85.dll were installed (by the Tcl/Tk
f791d48 Fusion des modifs faites sur la branche release jusqu'a la release 3.08....
xleroy authored
240 installer) must be added to the PATH environment variable.
241
242 To compile programs that use the LablTK GUI, the directory where the
cff40c4 merge changes from release/3.11.1 to release/3.11.2
doligez authored
243 libraries tk85.lib and tcl85.lib were installed (by the Tcl/Tk
f791d48 Fusion des modifs faites sur la branche release jusqu'a la release 3.08....
xleroy authored
244 installer) must be added to the library search path in the LIB
245 environment variable. E.g. if Tcl/Tk was installed in C:\tcl, add
246 "C:\tcl\lib" to the LIB environment variable.
1131ee4 MAJ portage MinGW
xleroy authored
247
248
249 RECOMPILATION FROM THE SOURCES:
250
251 You will need the following software components to perform the recompilation:
f42b67a merge changes 3.10.0 -> 3.10.1
doligez authored
252 - Windows NT, 2000, XP, or Vista.
1131ee4 MAJ portage MinGW
xleroy authored
253 - Cygwin: http://sourceware.cygnus.com/cygwin/
fdf2fb0 #5179: the 'official' 32-bit mingw compiler is now the one from the ming...
frisch authored
254 Install at least the following packages:
255 mingw64-i686-binutils
256 mingw64-i686-gcc
257 mingw64-i686-runtime
258 diffutils
259 make
260 ncurses
cff40c4 merge changes from release/3.11.1 to release/3.11.2
doligez authored
261 - TCL/TK version 8.5 (see above).
5505e95 PR#4547: documentation updated and made more precise
xleroy authored
262 - The flexdll tool (see above).
1131ee4 MAJ portage MinGW
xleroy authored
263
fdf2fb0 #5179: the 'official' 32-bit mingw compiler is now the one from the ming...
frisch authored
264 The standalone mingw toolchain from the MinGW-w64 project
265 (http://mingw-w64.sourceforge.net/) is not supported. Please use the
266 version packaged in Cygwin instead.
786cf74 Clarification MinGW
xleroy authored
267
1131ee4 MAJ portage MinGW
xleroy authored
268 Start a Cygwin shell and unpack the source distribution
dbf6fb1 merge changes from branching of 3.12 to release/3.12.0
doligez authored
269 (ocaml-X.YY.Z.tar.gz) with "tar xzf". Change to the top-level
1131ee4 MAJ portage MinGW
xleroy authored
270 directory of the OCaml distribution. Then, do
271
5ccc0e3 detabisation
doligez authored
272 cp config/m-nt.h config/m.h
273 cp config/s-nt.h config/s.h
274 cp config/Makefile.mingw config/Makefile
1131ee4 MAJ portage MinGW
xleroy authored
275
82c273a MAJ et nettoyages
xleroy authored
276 Then, edit config/Makefile as needed, following the comments in this file.
277 Normally, the only variables that need to be changed are
5ccc0e3 detabisation
doligez authored
278 PREFIX where to install everything
279 TK_ROOT where TCL/TK was installed
1131ee4 MAJ portage MinGW
xleroy authored
280
e7d6b93 clean up spaces and tabs
doligez authored
281 Finally, use "make -f Makefile.nt" to build the system, e.g.
1131ee4 MAJ portage MinGW
xleroy authored
282
283 make -f Makefile.nt world
284 make -f Makefile.nt bootstrap
285 make -f Makefile.nt opt
286 make -f Makefile.nt opt.opt
82c273a MAJ et nettoyages
xleroy authored
287 make -f Makefile.nt install
1131ee4 MAJ portage MinGW
xleroy authored
288
289
290 NOTES:
291
292 * Libraries available in this port: "num", "str", "threads", "graphics",
e7d6b93 clean up spaces and tabs
doligez authored
293 "labltk", and large parts of "unix".
1131ee4 MAJ portage MinGW
xleroy authored
294
5505e95 PR#4547: documentation updated and made more precise
xleroy authored
295 * The replay debugger is partially supported (no reverse execution).
82c273a MAJ et nettoyages
xleroy authored
296
297 ------------------------------------------------------------------------------
298
5f9d13b renaming "Objective Caml" to "OCaml" (first pass)
doligez authored
299 The Cygwin port of OCaml
300 ------------------------
82c273a MAJ et nettoyages
xleroy authored
301
302 REQUIREMENTS:
303
304 This port requires the Cygwin environment from Cygnus/RedHat, which
305 is freely available at:
68cfc3f fusion des changements 3.09.2 -> 3.09.3
doligez authored
306 http://www.cygwin.com/
82c273a MAJ et nettoyages
xleroy authored
307
8bacf14 Document dependency on flexdll
frisch authored
308 It also requires the flexdll tool, available at:
309 http://alain.frisch.fr/flexdll.html
310
4c1dce3 MAJ instructions installation
xleroy authored
311 This port runs under all versions of MS Windows supported by Cygwin.
82c273a MAJ et nettoyages
xleroy authored
312
313
314 INSTALLATION:
315
68cfc3f fusion des changements 3.09.2 -> 3.09.3
doligez authored
316 We do not distribute binaries for this port, but they can be found
317 in the Cygwin distribution (use the Setup tool from Cygwin and select
318 the OCaml packages). Alternatively, recompile from the source distribution.
82c273a MAJ et nettoyages
xleroy authored
319
320
321 RECOMPILATION FROM THE SOURCES:
322
323 Just follow the instructions for Unix machines given in the file INSTALL.
324
325
326 NOTES:
327
37d95e1 Le portage Mingw a besoin de Cygwin (et non Mingw+MSYS) pour compiler
xleroy authored
328 The libraries available in this port are "num", "str", "threads",
f791d48 Fusion des modifs faites sur la branche release jusqu'a la release 3.08....
xleroy authored
329 "unix" and "labltk". "graph" is not available.
a45ed2c merge changes from 3.12.0 to 3.12.1
doligez authored
330 The replay debugger is fully supported.
331 When upgrading from 3.12.0 to 3.12.1, you will need to remove
332 /usr/local/bin/ocamlmktop.exe before typing "make install".
82c273a MAJ et nettoyages
xleroy authored
333
05648d1 Documentation portage Win64/MSVC
xleroy authored
334 ------------------------------------------------------------------------------
335
dbf6fb1 merge changes from branching of 3.12 to release/3.12.0
doligez authored
336 The native Win64 port built with Microsoft Windows SDK
337 ------------------------------------------------------
05648d1 Documentation portage Win64/MSVC
xleroy authored
338
339 REQUIREMENTS:
340
dbf6fb1 merge changes from branching of 3.12 to release/3.12.0
doligez authored
341 This port runs under MS Windows XP 64, Windows Server 64, and
342 Windows 7 64 on Intel64/AMD64 machines.
05648d1 Documentation portage Win64/MSVC
xleroy authored
343
344 The base bytecode system (ocamlc, ocaml, ocamllex, ocamlyacc, ...)
345 runs without any additional tools.
346
3d19349 More renaming to OCaml
doligez authored
347 Statically linking OCaml bytecode with C code (ocamlc -custom) requires the
05648d1 Documentation portage Win64/MSVC
xleroy authored
348 Microsoft Platform SDK compiler (item [1] in the section
8bacf14 Document dependency on flexdll
frisch authored
349 "third-party software" below) and the flexdll tool (item [2]).
05648d1 Documentation portage Win64/MSVC
xleroy authored
350
351 The native-code compiler (ocamlopt) requires the Microsoft compiler
8bacf14 Document dependency on flexdll
frisch authored
352 and the Microsoft assembler MASM64 (item [1]) and the flexdll tool (item [2]).
05648d1 Documentation portage Win64/MSVC
xleroy authored
353
dbf6fb1 merge changes from branching of 3.12 to release/3.12.0
doligez authored
354 The LablTk GUI is not available in this version.
05648d1 Documentation portage Win64/MSVC
xleroy authored
355
356 INSTALLATION:
357
358 There is no binary distribution yet. Please compile from sources as
359 described below.
360
361
362 THIRD-PARTY SOFTWARE:
363
dbf6fb1 merge changes from branching of 3.12 to release/3.12.0
doligez authored
364 [1] Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 Service Pack 1.
365 Can be downloaded for free from
366 http://www.microsoft.com/downloads/en/default.aspx
367 under the name "Microsoft Windows 7 SDK".
05648d1 Documentation portage Win64/MSVC
xleroy authored
368
fdf2fb0 #5179: the 'official' 32-bit mingw compiler is now the one from the ming...
frisch authored
369 [2] flexdll version 0.27 or later.
8bacf14 Document dependency on flexdll
frisch authored
370 Can be downloaded from http://alain.frisch.fr/flexdll.html
371
372
05648d1 Documentation portage Win64/MSVC
xleroy authored
373 RECOMPILATION FROM THE SOURCES:
374
375 The command-line tools can be recompiled from the Unix source
376 distribution (ocaml-X.YZ.tar.gz), which also contains the files modified
377 for Windows.
378
379 You will need the following software components to perform the recompilation:
dbf6fb1 merge changes from branching of 3.12 to release/3.12.0
doligez authored
380 - Windows XP 64, Windows Server 64, or Windows 7 64.
381 - Items [1] and [2] from the list of recommended software above.
05648d1 Documentation portage Win64/MSVC
xleroy authored
382 - The Cygwin port of GNU tools, available from http://www.cygwin.com/
5505e95 PR#4547: documentation updated and made more precise
xleroy authored
383 Install at least the following packages: diffutils, make, ncurses.
05648d1 Documentation portage Win64/MSVC
xleroy authored
384
dbf6fb1 merge changes from branching of 3.12 to release/3.12.0
doligez authored
385 First, you need to set up your cygwin environment for using the MS
386 tools. The following assumes that you have installed [1] and [2]
387 in their default directories. If this is not the case, you will need
388 to adjust the paths accordingly.
389
390 Open a Windows Command Prompt and enter the following commands:
391 set PFPATH=C:\Program Files (x86)
392 cd "%PFPATH%\Microsoft Visual Studio 9.0\VC\bin"
393 vcvars64
394 echo VCPATH="`cygpath -p '%Path%'`" >C:\cygwin\tmp\msenv
395 echo LIB="%LIB%;C:\Tcl\lib" >>C:\cygwin\tmp\msenv
396 echo LIBPATH="%LIBPATH%" >>C:\cygwin\tmp\msenv
397 echo INCLUDE="%INCLUDE%;C:\Tcl\include" >>C:\cygwin\tmp\msenv
398 echo FLPATH="`cygpath '%PFPATH%\flexdll'`" >>C:\cygwin\tmp\msenv
399 echo PATH="${VCPATH}:$PATH:${FLPATH}" >>C:\cygwin\tmp\msenv
400 echo export PATH LIB LIBPATH INCLUDE >>C:\cygwin\tmp\msenv
401 echo export OCAMLBUILD_FIND=/usr/bin/find >>C:\cygwin\tmp\msenv
402
403 Open a Cygwin shell and enter the following commands:
404 tr -d '\r' </tmp/msenv >.msenv64
405 echo '. $HOME/.msenv64' >>.bashrc
406
407 Now, close the Command Prompt and the shell and you're set up for
408 using the MS tools under Cygwin.
409
410
411 To recompile OCaml, start a new Cygwin shell and change to the top-level
05648d1 Documentation portage Win64/MSVC
xleroy authored
412 directory of the OCaml distribution. Then, do
413
414 cp config/m-nt.h config/m.h
415 cp config/s-nt.h config/s.h
416 cp config/Makefile.msvc64 config/Makefile
417
418 Then, edit config/Makefile as needed, following the comments in this file.
419 Normally, the only variable that need to be changed is
420 PREFIX where to install everything
421
e7d6b93 clean up spaces and tabs
doligez authored
422 Finally, use "make -f Makefile.nt" to build the system, e.g.
05648d1 Documentation portage Win64/MSVC
xleroy authored
423
424 make -f Makefile.nt world
425 make -f Makefile.nt bootstrap
426 make -f Makefile.nt opt
427 make -f Makefile.nt opt.opt
428 make -f Makefile.nt install
429
430
431 NOTES:
432
433 * Libraries available in this port: "num", "str", "threads", "graphics",
e7d6b93 clean up spaces and tabs
doligez authored
434 and large parts of "unix".
05648d1 Documentation portage Win64/MSVC
xleroy authored
435
5505e95 PR#4547: documentation updated and made more precise
xleroy authored
436 * The replay debugger is partially supported (no reverse execution).
05648d1 Documentation portage Win64/MSVC
xleroy authored
437
5505e95 PR#4547: documentation updated and made more precise
xleroy authored
438 * The graphical browser ocamlbrowser is not supported.
Something went wrong with that request. Please try again.