From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=AWL,SPF_FAIL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id 9E534BBAF for ; Sat, 28 Mar 2009 23:26:05 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: An0DAFlBzklQRFuwgWdsb2JhbACWAwEBFiK0UoN6Bg X-IronPort-AV: E=Sophos;i="4.38,438,1233529200"; d="scan'208";a="23473370" Received: from furbychan.cocan.org ([80.68.91.176]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/AES256-SHA; 28 Mar 2009 23:25:45 +0100 Received: from rich by furbychan.cocan.org with local (Exim 4.63) (envelope-from ) id 1LngyE-0006yG-Ky; Sat, 28 Mar 2009 22:25:42 +0000 Date: Sat, 28 Mar 2009 22:25:42 +0000 To: Joel Reymont Cc: fedora-mingw@lists.fedoraproject.org, caml-list@inria.fr Subject: Re: ocaml cross-compiler Message-ID: <20090328222542.GA26502@annexia.org> References: <28598D5F-4142-4BC7-A07C-1C4D9B900D3E@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <28598D5F-4142-4BC7-A07C-1C4D9B900D3E@gmail.com> User-Agent: Mutt/1.5.13 (2006-08-11) From: Richard Jones X-Spam: no; 0.00; ocaml:01 ocaml:01 wiki:01 mingw:01 mingw:01 gtk:01 lablgtk:01 28,:98 2009:98 10,:98 wrote:01 match:02 install:05 install:05 tmp:05 On Sat, Mar 28, 2009 at 07:45:49PM +0000, Joel Reymont wrote: > Is there a ready-made Fedora package for the OCaml cross-compiler? Note that we _only_ support Fedora Rawhide (the development version of OCaml) and future Fedora 11 and above. To find out about Rawhide, see: http://fedoraproject.org/wiki/Releases/Rawhide If you have F-10, I believe that you can upgrade it to Rawhide simply by editing a file in /etc/yum.repos.d. But ask about that on the main Fedora mailing lists since I'm not sure. Anyway, to install the cross-compiler, create a new file /etc/yum.repos.d/mingw.repo which contains: [mingw] name=Fedora Windows cross-compiler, libraries and tools baseurl=http://homes.merjis.com/~rich/mingw/fedora-10/x86_64/ enabled=1 gpgcheck=0 Note that you will need to adjust the baseurl to match your version of Fedora and architecture. Then do: # yum install mingw32-ocaml Actually there are several packages you can install. Poke around http://homes.merjis.com/~rich/mingw/ to see which ones. > I would like to cross-compile a GTK+ app but can't find instructions. To cross-compile an OCaml program I strongly suggest that you start off with the example package that I created / used for the OCaml Users Conference talk last month: http://www.annexia.org/tmp/ocaml-mingw-gtk/ Please join the mailing list and ask questions there so we can share the knowledge: https://admin.fedoraproject.org/mailman/listinfo/fedora-mingw Any OCaml + lablgtk2 program should be straightforward to cross-compile for Windows. Mostly difficulties will arise only if the program uses some weird libraries. Rich. -- Richard Jones Red Hat