Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
ocaml+sdl+opengl ?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2010-04-11 (18:28)
From: Daniel_Bünzli <daniel.buenzli@e...>
Subject: Re: [Caml-list] ocaml+sdl+opengl ?
You did not specify the platform but on osx 10.6.3 sdl+lablgl works.

More precisely

> sdl+LablGL in interpreted mode => Failure

Works but you need to make a custom toplevel (see ocamlsdl's readme about osx).

$ ocamlmktop -I +lablGL -I +sdl -custom -o ocamlsdl lablgl.cma
bigarray.cma sdl.cma
$ ./ocamlsdl -I +lablGL -I +sdl

> sdl+LablGL in native code => Failure

Works here with

$ ocamlopt -I +lablGL lablgl.cmxa bigarray.cmxa -I +sdl sdl.cmxa -o test