* Re: ocaml cross-compiler
[not found] <28598D5F-4142-4BC7-A07C-1C4D9B900D3E@gmail.com>
@ 2009-03-28 22:25 ` Richard Jones
2009-03-28 22:33 ` [Caml-list] " Richard Jones
0 siblings, 1 reply; 2+ messages in thread
From: Richard Jones @ 2009-03-28 22:25 UTC (permalink / raw)
To: Joel Reymont; +Cc: fedora-mingw, caml-list
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Caml-list] Re: ocaml cross-compiler
2009-03-28 22:25 ` ocaml cross-compiler Richard Jones
@ 2009-03-28 22:33 ` Richard Jones
0 siblings, 0 replies; 2+ messages in thread
From: Richard Jones @ 2009-03-28 22:33 UTC (permalink / raw)
To: Joel Reymont; +Cc: fedora-mingw, caml-list
[Too late at night to be posting ..]
On Sat, Mar 28, 2009 at 10:25:42PM +0000, Richard Jones wrote:
> Note that we _only_ support Fedora Rawhide (the development version of
> OCaml)
^Fedora
> baseurl=http://homes.merjis.com/~rich/mingw/fedora-10/x86_64/
That baseurl should be:
baseurl=http://homes.merjis.com/~rich/mingw/fedora-rawhide/x86_64/
Replace x86_64 with i386 as appropriate. If you have another
architecture then you will have to rebuild the compiler from the
source RPMs.
> # yum install mingw32-ocaml
Even better is:
# yum install mingw32-ocaml\*
Rich.
--
Richard Jones
Red Hat
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-03-28 22:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <28598D5F-4142-4BC7-A07C-1C4D9B900D3E@gmail.com>
2009-03-28 22:25 ` ocaml cross-compiler Richard Jones
2009-03-28 22:33 ` [Caml-list] " Richard Jones
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox