From: Julien Moutinho <julien.moutinho@gmail.com>
To: Kaspar Rohrer <krohrer@student.ethz.ch>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Native multithreaded LablGTK2?
Date: Mon, 30 Jul 2007 12:01:38 +0200 [thread overview]
Message-ID: <20070730100138.GA28423@jiyu.gnu> (raw)
In-Reply-To: <A8B2857F-4F5E-41DF-BF8D-5F8451E88EA3@student.ethz.ch>
On Mon, Jul 30, 2007 at 10:22:17AM +0200, Kaspar Rohrer wrote:
> On 30.07.2007, at 07:40, Julien Moutinho wrote:
>
>> Check the META.lablgtk2 file:
>> $ ocamlfind query lablgtk2 -format "%A" -predicates native,mt
>> lablgtk.cmxa gtkThread.cmx
>>
>> If you get this, lablgtk2 is not likely to be guilty.
> Ok, I rechecked this: I think the lablgtk2 META file is the culprit:
> I'm using OpenGL. So if I add the lablGL predicate, I effectively get this:
>
> $ ocamlfind query lablgtk2 -format "%A" -predicates native,mt,lablGL
> lablgtk.cmxa lablgtkgl.cmxa lablglade.cmxa lablgnomecanvas.cmxa
> lablgnomeui.cmxa lablpanel.cmxa gtkInit.cmx gtkThread.cmx gtkThread.cmx
>
> Which explains the error. But how would I fix this?
Perhaps, you can modify lablgtk2/META,
doing this:
- archive(byte,mt) += "gtkThread.cmo"
- archive(native,mt) += "gtkThread.cmx"
+ archive(byte,mt,-lablGL) += "gtkThread.cmo"
+ archive(native,mt,-lablGL) += "gtkThread.cmx"
or that:
- archive(byte,lablGL,mt) += "gtkThread.cmo"
- archive(native,lablGL,mt) += "gtkThread.cmx"
at your choice.
By the way, here are the METAS in Debian Sid:
$ cat `ocamlc -where`/lablgtk2/META
version="2.6.0"
requires(mt) = "threads"
requires(mt,mt_vm) = "threads.vm"
requires(mt,mt_posix) = "threads.posix"
directory="+lablgtk2"
archive(byte) = "lablgtk.cma"
archive(native) = "lablgtk.cmxa"
archive(byte,mt) += "gtkThread.cmo"
archive(native,mt) += "gtkThread.cmx"
package "init" (
requires = "lablgtk2"
archive(byte) = "gtkInit.cmo"
archive(native) = "gtkInit.cmx"
)
package "glade" (
requires = "lablgtk2"
archive(byte) = "lablglade.cma"
archive(native) = "lablglade.cmxa"
)
package "gtkspell" (
requires = "lablgtk2"
archive(byte) = "lablgtkspell.cma"
archive(native) = "lablgtkspell.cmxa"
)
$ cat `ocamlc -where`/lablGL/META
version="1.00"
directory="+lablgl"
archive(byte) = "lablgl.cma"
archive(native) = "lablgl.cmxa"
package "togl" (
requires = "labltk lablgl"
archive(byte) = "togl.cma"
archive(native) = "togl.cmxa"
)
package "glut" (
requires = "lablgl"
archive(byte) = "lablglut.cma"
archive(native) = "lablglut.cmxa"
)
At first sight, they seem less comprehensive, but more accurate...
next prev parent reply other threads:[~2007-07-30 10:01 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-29 19:16 Kaspar Rohrer
2007-07-30 5:40 ` [Caml-list] " Julien Moutinho
2007-07-30 8:01 ` Kaspar Rohrer
2007-07-30 11:57 ` Julien Moutinho
2007-07-30 13:22 ` Kaspar Rohrer
2007-07-30 8:22 ` Kaspar Rohrer
2007-07-30 10:01 ` Julien Moutinho [this message]
2007-07-30 11:31 ` Kaspar Rohrer
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=20070730100138.GA28423@jiyu.gnu \
--to=julien.moutinho@gmail.com \
--cc=caml-list@inria.fr \
--cc=krohrer@student.ethz.ch \
/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