From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id 519D07FA57 for ; Wed, 23 Jul 2014 14:34:50 +0200 (CEST) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of markus.mottl@gmail.com) identity=pra; client-ip=209.85.216.43; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="markus.mottl@gmail.com"; x-sender="markus.mottl@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of markus.mottl@gmail.com designates 209.85.216.43 as permitted sender) identity=mailfrom; client-ip=209.85.216.43; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="markus.mottl@gmail.com"; x-sender="markus.mottl@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-qa0-f43.google.com) identity=helo; client-ip=209.85.216.43; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="markus.mottl@gmail.com"; x-sender="postmaster@mail-qa0-f43.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ah4BAN2qz1PRVdgrlWdsb2JhbABZg2BXBIJ0rziVOIdFAYEDCBYPAQEBAQcNCQkSK4QEAQEEEhEdARQHEgsBAwwGBQsNAgIJHQICIQEBEQEFAQoSBhMSEIgLAQMRDZwLaosogXKDEIpAChknAwpkhjgRAQUOgR6LcoItB4J4gU4FhG8FlDaCA4FSjFCELRgphRQhLw X-IPAS-Result: Ah4BAN2qz1PRVdgrlWdsb2JhbABZg2BXBIJ0rziVOIdFAYEDCBYPAQEBAQcNCQkSK4QEAQEEEhEdARQHEgsBAwwGBQsNAgIJHQICIQEBEQEFAQoSBhMSEIgLAQMRDZwLaosogXKDEIpAChknAwpkhjgRAQUOgR6LcoItB4J4gU4FhG8FlDaCA4FSjFCELRgphRQhLw X-IronPort-AV: E=Sophos;i="5.01,717,1400018400"; d="scan'208";a="72541620" Received: from mail-qa0-f43.google.com ([209.85.216.43]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 23 Jul 2014 14:34:49 +0200 Received: by mail-qa0-f43.google.com with SMTP id w8so1140430qac.2 for ; Wed, 23 Jul 2014 05:34:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=4Q4NGKcV7NmuBDtrj8AqTHEkKche2Z1KioXDq1mD+k4=; b=VI3SOK3NxQbu6UsaV79xRziBGvD654T/xtHabnOYl3IE7GAz2hauVLPpdMMXGUYc+u 05GO0AMmXLI3DZCy/3yX2JQJLgd27NuSk+w976AAro3YyeWJbr4GRBoPwCppsGi+Hiss Z/Kv0j74pBoL5dcwQCxdAHApbbD/Dq3hcmVvsIuiiuZSr++TlW/i1tZ/gFFUWhammw7f xwKiYxQyPlKx5+SI4D9hHhLiClL/9M41uWqtAV0l2cNpMO/EW3MNxsoVD1JA7vsgEWV4 qbadW3VDC1TbybS0HTWgJFR6sm7ibBAU+fsoOtfGe61Xi8CnZ2mtVWHvRCBhD22u1p9+ Q8mw== MIME-Version: 1.0 X-Received: by 10.140.34.167 with SMTP id l36mr1398633qgl.61.1406118888493; Wed, 23 Jul 2014 05:34:48 -0700 (PDT) Received: by 10.140.19.174 with HTTP; Wed, 23 Jul 2014 05:34:48 -0700 (PDT) In-Reply-To: <20140723134245.Horde.4I1V6EjmlCCX20bk_Xmh1Q2@webmail.in-berlin.de> References: <20140723014541.Horde.3N6p_tSbAB9ToziHlYE0gw8@webmail.in-berlin.de> <20140723111034.GA26916@notk.org> <20140723134245.Horde.4I1V6EjmlCCX20bk_Xmh1Q2@webmail.in-berlin.de> Date: Wed, 23 Jul 2014 08:34:48 -0400 Message-ID: From: Markus Mottl To: Oliver Bandel Cc: caml-list@inria.fr Content-Type: text/plain; charset=UTF-8 Subject: Re: [Caml-list] lablgtk with OCamlMakefile I don't use GTK so I'm not sure what the recommended way of initializing it is these days. A long time ago it did require linking with an extra initialization module for applications. Using the init-function above seems to work, too, and may be the best approach. Regards, Markus On Wed, Jul 23, 2014 at 7:42 AM, Oliver Bandel wrote: > 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 (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 > > > > > > -- > 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 -- Markus Mottl http://www.ocaml.info markus.mottl@gmail.com