Re: latest gdk does not have gdk/gdkx.h

Philippe Strauss <[email protected]>
Newsgroups gmane.comp.lang.ocaml.lib.gtk
Message-ID <[email protected]>
On Wed, Jul 02, 2008 at 12:43:03AM +0200, CUOQ Pascal wrote:
> 
> > You get a bleeding edge gdk, in which gdk/gdkx.h has.. disapeared.
> 
> You probably need to do the attached modification.
> I didn't send it to the lablgtk maintainers because
> I was not sure how to detect that this was gtk/quartz
> (gtk/X11 still works better that the former for some things,
> so both would have to remain available ideally).
> 
> Pascal

merci pascal, cela fonctionne concernant la compilation de lablgtk2 avec
gtk+osx, par contre, pour compiler les exemples avec cette version
"tunee" de lablgtk2, je rencontre le probleme suivant:

File "counter.ml", line 32, characters 2-85:
Warning S: this expression should have type unit.
File "counter.ml", line 34, characters 2-85:
Warning S: this expression should have type unit.
File "counter.ml", line 36, characters 2-86:
Warning S: this expression should have type unit.
File "counter.ml", line 38, characters 2-77:
Warning S: this expression should have type unit.
File "counter.ml", line 40, characters 2-39:
Warning S: this expression should have type unit.
Error while linking /opt/gtk+osx/lib/ocaml/lablgtk2/lablgtk.cma(Glib):
The external function `ml_g_usleep' is not available

build script:

#!/bin/sh
for src in *.ml; do
	ocamlc -I /opt/gtk+osx/lib/ocaml/lablgtk2 -o $(basename $src .ml) lablgtk.cma gtkInit.cmo $src;
done

while:

philou@philou-macbook:/opt/gtk+osx/lib/ocaml/lablgtk2$ grep ml_g_usleep *
glib.ml:external usleep : int -> unit = "ml_g_usleep"
Binary file lablgtk.cma matches
Binary file liblablgtk2.a matches


if anyone has an idea, she/he's welcome :-)


-- 
Philippe Strauss
av. de Beaulieu 25
1004 Lausanne
http://philou.ch
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.