Skip to content

HTTPS clone URL

Subversion checkout URL

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