File: INSTALL.win32

package info (click to toggle)
ocamlsdl 0.9.1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 1,600 kB
  • ctags: 1,412
  • sloc: ansic: 3,311; sh: 3,103; ml: 2,111; makefile: 180; awk: 13
file content (42 lines) | stat: -rw-r--r-- 1,213 bytes parent folder | download | duplicates (8)
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

Building OCamlSDL with MSVC
===========================

- edit makefile.config.msvc, particularly the PARTS and SDL_LIBS
variables if you do not want to build all extra libraries.
You may have to specify include directories for SDL headers in the
CPPFLAGS variable with the /I option

- copy src/config.h.msvc to src/config.h and edit it if necessary

- edit makefile.platform, use "Win32" for PLATFORM and "msvc" for
  OCAML_C_BACKEND 

Also, depending on the MS compiler you're using, you may need to do
this (reported by Andrei de A. Formiga on the mailing list):
,----
| ocamlopt apparently calls `lib' to generate sdl.cmxa, so I created a
| lib.bat (accessible from PATH) containing the single line:
| 
| link /lib %1 %2 %3 %4 %5 %6 %7 %8 %9 
`----

Then run (GNU) make.


Building OCamlSDL with Mingw
============================

If you have the MSYS or Cygwin build environment, ./configure should
work. 

If you're using the ocaml binaries from INRIA with a Cygwin build
environment, you may have to add `-mno-cygwin' to CFLAGS in
makefile.platform.


Building OCamlSDL with full Cygwin
==================================

It's considered an Unix platform. ./configure, make, make install
should work.