From: "Jeremy O'Donoghue" <jeremy.odonoghue@gmail.com>
To: Rasool Karimi <rkarimi@gmail.com>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] where is GMain and ...
Date: Thu, 6 Oct 2005 22:04:10 +0100 [thread overview]
Message-ID: <d70bd4090510061404k302835fdp@mail.gmail.com> (raw)
In-Reply-To: <b9e8b78c0510060603x4d8041abkf37b8b0a1c553957@mail.gmail.com>
Hi Karimi,
On 06/10/05, Rasool Karimi <rkarimi@gmail.com> wrote:
> My previous problem is solved. I had forgotten to install "asm" program!.
> Now I have another problem. When I Compile my program, at end of
> compilation, it reports an error that can not find following files:
> GMain referenced from term.cmx
> Winfo referenced from functions.cmx
> GBin referenced from term.cmx
> GButton referenced from term.cmx
> GtkText referenced from term.cmx
> Glib referenced from term.cmx
[snip]
This looks as though it is Lablgtk2, which is probably the bset
supported Ocaml GUI at the moment (although it may be the older
Lablgtk - the documentation of the program you're trying to compile
should make this clear).
Your first message suggests that you are compiling for Windows, which
means that you're in for a tough ride. Lablgtk2 is an Ocaml binding
for Gtk 2.x, which is a popular Linux/Unix widget set. There is a
Windows port, but it is quite painful to install (I should know, I did
it a couple of weeks back...)
Go to http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/lablgtk.html and
download lablgtk-2.4.0.tar.gz. Note that you cannot use the Windows
binary package if you want to compile with ocamlopt.
Unzip and untar, and read README and (especially) README.win32 carefully.
Go to http://www.gimp.org/~tml/gimp/win32/downloads.html and download
the required binary installer packages (there are a lot of them). You
will need both runtime and developer files.
Install these somewhere sensible. I would strongly recommend that you
ensure that you don't have any spaces in the directory path (I used
c:\libs\gtk2 - definitely avoid c:\Program Files\...), and ensure that
your path environment variable points to the installed Gtk+ library
components.
Now follow the build instructions for Lablgtk2 carefully.
I use the word carefully rather often as the install worked perfectly
for me, but only after several false starts where I tried to cut
corners.
If you are building on Linux or another Unix system, it is likely that
the Gtk+ libraries are already installed. If they are not, then they
should be much easier to get and iinstall than for Windows.
Good luck!
Jeremy
next prev parent reply other threads:[~2005-10-06 21:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-06 13:03 Rasool Karimi
2005-10-06 21:04 ` Jeremy O'Donoghue [this message]
2005-10-07 13:05 ` [Caml-list] " T. Kurt Bond
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d70bd4090510061404k302835fdp@mail.gmail.com \
--to=jeremy.odonoghue@gmail.com \
--cc=caml-list@inria.fr \
--cc=rkarimi@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).