caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* ocaml + non-cygwin gtk+ on windows
@ 2009-03-28  1:04 Joel Reymont
  2009-03-28  6:55 ` [Caml-list] " Dave Benjamin
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Joel Reymont @ 2009-03-28  1:04 UTC (permalink / raw)
  To: caml-list

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?

	Thanks, Joel

---
http://linkedin.com/in/joelreymont




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Caml-list] ocaml + non-cygwin gtk+ on windows
  2009-03-28  1:04 ocaml + non-cygwin gtk+ on windows Joel Reymont
@ 2009-03-28  6:55 ` Dave Benjamin
  2009-03-28  7:42 ` Matthieu Dubuget
  2009-03-28  8:43 ` Christophe TROESTLER
  2 siblings, 0 replies; 4+ messages in thread
From: Dave Benjamin @ 2009-03-28  6:55 UTC (permalink / raw)
  To: Joel Reymont; +Cc: caml-list

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Caml-list] ocaml + non-cygwin gtk+ on windows
  2009-03-28  1:04 ocaml + non-cygwin gtk+ on windows Joel Reymont
  2009-03-28  6:55 ` [Caml-list] " Dave Benjamin
@ 2009-03-28  7:42 ` Matthieu Dubuget
  2009-03-28  8:43 ` Christophe TROESTLER
  2 siblings, 0 replies; 4+ messages in thread
From: Matthieu Dubuget @ 2009-03-28  7:42 UTC (permalink / raw)
  To: Joel Reymont; +Cc: caml-list

Joel Reymont a écrit :
> 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?
> 
>     Thanks, Joel

Mingw flavour of OCaml is ok.
The gtk DLLs are to be installed separately, as explained in lablgtk web
page.
Richard Jones has a demo:
- compiling from fedora in a cross-compilation environment
- compiling a full NSIS installer (including gtk environment), also from
fedora
Hoping this helps

Matt


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Caml-list] ocaml + non-cygwin gtk+ on windows
  2009-03-28  1:04 ocaml + non-cygwin gtk+ on windows Joel Reymont
  2009-03-28  6:55 ` [Caml-list] " Dave Benjamin
  2009-03-28  7:42 ` Matthieu Dubuget
@ 2009-03-28  8:43 ` Christophe TROESTLER
  2 siblings, 0 replies; 4+ messages in thread
From: Christophe TROESTLER @ 2009-03-28  8:43 UTC (permalink / raw)
  To: joelr1; +Cc: caml-list

On Sat, 28 Mar 2009 01:04:33 +0000, 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.

See the following example by Richard Jones:
http://merjis.com/developers/xphelloworld

Cheers,
ChriS


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-03-28  8:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-28  1:04 ocaml + non-cygwin gtk+ on windows Joel Reymont
2009-03-28  6:55 ` [Caml-list] " Dave Benjamin
2009-03-28  7:42 ` Matthieu Dubuget
2009-03-28  8:43 ` Christophe TROESTLER

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).