caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Oliver Bandel <oliver@first.in-berlin.de>
To: caml-list@inria.fr
Subject: Re: [Caml-list] lablgtk with OCamlMakefile
Date: Wed, 23 Jul 2014 13:42:45 +0200	[thread overview]
Message-ID: <20140723134245.Horde.4I1V6EjmlCCX20bk_Xmh1Q2@webmail.in-berlin.de> (raw)
In-Reply-To: <20140723111034.GA26916@notk.org>

Hello Adrien,


thank you for adding this correction.

Using Markus' hint did work.

But I now changed my setup  in the following way:


I again use  "lablgtk2" (instead of "lablgtk2.auto-init")
in the "PACKS"-section of my Makefile.

And I added the line

   let locale = GtkMain.Main.init () in

as first line in my GUI-code.


Doing it this way, it also works; I get a GUI instead of a crash.

I hope this is the correct and recommended way now.

Remark on the README-file:

The line with "GtkMain.Main.init ()" I found in the
README of lablgtk, which you seemed to refer to.

Normally this README is not seen, because when installing
the lablgtk-package, it will just be the working code become installed,
and the README does not show up.

Possibly it makes sense to have doc-packages, which install
the documentation also.
(It's on Arch-linux, and no docs are installed by default.)


Thanks a lot,
        Oliver










Zitat von Adrien Nader <adrien@notk.org> (Wed, 23 Jul 2014 13:10:34 +0200)

> Hi,
>
> On Tue, Jul 22, 2014, Markus Mottl wrote:
>> You may want to try the following:
>>
>>   PACKS = lablgtk2.auto-init
>
> Please, do not use the auto-init subpackage. It only exists for the
> toplevel.
>
> Godi had it in its default META and it prevented building the "conf"
> packages without X available because running anything always tried to
> initialize GTK+.
>
> The README explains what to call to do the GTK+ initialization at the
> right moment.
>
> --
> Adrien Nader
>
> --
> Caml-list mailing list.  Subscription management and archives:
> https://sympa.inria.fr/sympa/arc/caml-list
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs




  reply	other threads:[~2014-07-23 11:43 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-22 23:45 Oliver Bandel
2014-07-23  0:01 ` Markus Mottl
2014-07-23  0:47   ` Oliver Bandel
2014-07-23 11:10   ` Adrien Nader
2014-07-23 11:42     ` Oliver Bandel [this message]
2014-07-23 12:34       ` Markus Mottl
2014-07-31  8:43         ` Adrien Nader
2014-07-31  8:48       ` Adrien Nader

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=20140723134245.Horde.4I1V6EjmlCCX20bk_Xmh1Q2@webmail.in-berlin.de \
    --to=oliver@first.in-berlin.de \
    --cc=caml-list@inria.fr \
    /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).