I finally managed to make my progy compile !
I adopted the MSYS+Mingw solution.
Here's what i needed to do :
./configure of ocamlsdl complains about sed.
Solution : sed wanted to put
PLATFORM=3DWin32 in the Makefile.platform ... done by hand.
make complains that he doesnt find SDL.h
$(OCAMLC) -ccopt "$(CPPFLAGS) $(CFLAGS)" $<
$(OCAMLC) -ccopt -I/local/include/SDL -ccopt -Dmain=3DSDL_main
-ccopt -g -ccopt -O $<
Problem 3 : had to copy the libs generated by ocamlsdl by hand
because of a path problem (ocaml isnt in a sub directory of
msys ... at least i think its the problem)
Problem 4 : it didnt want to compile ... same error : cannot
find SDL_main ... i read in the tuto on how to compile with
mingw something about mlsdl_main.c
Solution : compiled the lib by hand (with the help of the
makefile ... as i dont know how to do this) :
ocamlc.opt -ccopt -I/usr/local/include/SDL -ccopt
-Dmain=3DSDL_main -ccopt -g -ccopt -O mlsdl_main.c
ar cr libmlsdl_main.a mlsdl_main.o
and finally replace libSDLmain.a generated by SDL by
libmlsdl_main.a (keep a copy in case of you need it :)
TaDa ! it worked !
The version i used :
ocaml 3.08 (binary for mingw from inria)
i didnt compile sdl with directx support nor nasm
i didnt compile ocamlsdl with image,mixer,ttf or lablgl enabled
(i didnt need them for my prog)
Hope this helps
=0A=0AAcc=E9dez au courrier =E9lectronique de La Poste : http://www.laposte.net =
; =0A3615 LAPOSTENET (0,34=80/mn) ; t=E9l : 08 92 68 13 50 (0,34=80/mn)=0A=