From: LiKai Liu <liulk@cs...> - 2003-07-02 16:26:14
I've been trying to figure out how to compile ocamlsdl on mac os x. I
successfully ran configure, which detects fink's sdl libraries and ocaml
install locations nicely. The problem comes up towards the end of make
process such that when make was trying to execute the command:
ocamlmktop -custom -I . -o toplevel bigarray.cma sdl.cma sdlttf.cma
ld: can't locate file for: -lmlsdl_main
I realized that it's because when the top level is built on a non-windows
system, we lack a function SDL_main to bootstrap caml_main. When I compile
on a non-cygwin system, makefile.toplevel.in still thinks that I should
compile with -lmlsdl_main (see line 49), where as src/Makefile says it
will only compile mlsdl_main.c on cygwin (see, coincidentally, line 49, of
src/Makefile). Strangely, a startup routine is indeed provided when
compiling on windows but not on unix. I don't get the rationale behind
I'm using SDL 1.2.5 and ocaml 3.06.
Help much appreciated.
ps. kindly cc to me any responses. thanks.
Get latest updates about Open Source Projects, Conferences and News.