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 mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 6CA097FA56 for ; Wed, 23 Jul 2014 13:43:00 +0200 (CEST) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of oliver@first.in-berlin.de) identity=pra; client-ip=192.109.42.8; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="oliver@first.in-berlin.de"; x-sender="oliver@first.in-berlin.de"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of oliver@first.in-berlin.de) identity=mailfrom; client-ip=192.109.42.8; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="oliver@first.in-berlin.de"; x-sender="oliver@first.in-berlin.de"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@einhorn.in-berlin.de) identity=helo; client-ip=192.109.42.8; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="oliver@first.in-berlin.de"; x-sender="postmaster@einhorn.in-berlin.de"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtEBAJCfz1PAbSoIf2dsb2JhbABZg2BXBIJ0rziVNodFAYEOFg8BAQsLCggUKYQDAQEEASMVNhALCxgCAgkPDgICRRIZEogcAwkIBAmoBJANA4cmF4EsjiYWgmKBTgWEbwWWMYFOhUWLSYUhag X-IPAS-Result: AtEBAJCfz1PAbSoIf2dsb2JhbABZg2BXBIJ0rziVNodFAYEOFg8BAQsLCggUKYQDAQEEASMVNhALCxgCAgkPDgICRRIZEogcAwkIBAmoBJANA4cmF4EsjiYWgmKBTgWEbwWWMYFOhUWLSYUhag X-IronPort-AV: E=Sophos;i="5.01,716,1400018400"; d="scan'208";a="86633904" Received: from einhorn.in-berlin.de ([192.109.42.8]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 23 Jul 2014 13:42:47 +0200 X-Envelope-From: oliver@first.in-berlin.de X-Envelope-To: Received: from yak (yak.in-berlin.de [192.109.42.109]) by einhorn.in-berlin.de (8.14.4/8.14.4/Debian-4) with ESMTP id s6NBgkIh027344 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Wed, 23 Jul 2014 13:42:46 +0200 Received: from e178011041.adsl.alicedsl.de (e178011041.adsl.alicedsl.de [85.178.11.41]) by webmail.in-berlin.de (Horde Framework) with HTTP; Wed, 23 Jul 2014 13:42:45 +0200 Date: Wed, 23 Jul 2014 13:42:45 +0200 Message-ID: <20140723134245.Horde.4I1V6EjmlCCX20bk_Xmh1Q2@webmail.in-berlin.de> From: Oliver Bandel To: caml-list@inria.fr References: <20140723014541.Horde.3N6p_tSbAB9ToziHlYE0gw8@webmail.in-berlin.de> <20140723111034.GA26916@notk.org> In-Reply-To: <20140723111034.GA26916@notk.org> User-Agent: Internet Messaging Program (IMP) H5 (6.2.0) Content-Type: text/plain; charset=UTF-8; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline Subject: Re: [Caml-list] lablgtk with OCamlMakefile 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