I would like to use SDL2 library functions in Ocaml. I have sdl2 and ocamlsdl2 installed, but calling Sdl.init
throws an exception.
On utop
#use "topfind";;
#require "sdl2";;
Sdl.init [`VIDEO];;
Gives an error of Exception: Failure "Sdl.init"