Joel Reymont wrote:
> Has anyone used ocaml and gtk+ to build non-cygwin app for windows?
>
> These would be gtk+ apps that don't require the x server.
>
> What toolchain did you use?
I did this a few years ago and got it to work, though I don't remember
all the details anymore. I used Visual C++ at the time. I wrote a batch
file (yeah, primitive, I know) that looked like this:
@echo off
setlocal
call vsvars32
ocamlopt -c json.mli json.ml
ocamlopt -ccopt "/link /libpath:/gtk-2.6.8/lib" -I +lablgtk2
lablgtk.cmxa -I +extlib extlib.cmxa unix.cmxa -thread -I +threads
threads.cmxa json.cmx myapp.ml -o myapp.exe
ocamlopt unix.cmxa mkwinapp.ml -o mkwinapp.exe
mkwinapp myapp.exe
The final step, "mkwinapp", was to prevent the DOS command window from
showing up. http://ocaml-win32.sourceforge.net/
Dave