From: Stalkern 2 Subject: Ocamlfind and Lablgtk2 Date: Tue, 2 Dec 2003 17:57:24 +0100 MIME-Version: 1.0 Content-Disposition: inline To: lablgtk at kaba.or.jp Reply-To: stalkern2 at tin.it Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200312021757.24463.stalkern2 at tin.it> I've started my porting to gtk2 and I still am puzzled by some linking problems on my Debian box. I've set LD_LIBRARY_PATH and LD_RUN_PATH by hand. I can run the lablgtk2 examples. I've installed a basic META ====================================== requires="" version="1.3.1" archive(byte)="lablgtk.cma lablgnomecanvas.cma lablglade.cma gtkInit.cmo" archive(native)="lablgtk.cmxa lablgnomecanvas.cmxa lablglade.cmxa gtkInit.cmx" linkopts="" directory="+lablgtk2" ====================================== with the command [lablgtk-2.2.0/src/] $ ocamlfind install lablgtk2 META lablgtk.cma lablgnomecanvas.cma lablglade.cma gtkInit.cmo lablgtk.cmxa lablgnomecanvas.cmxa lablglade.cmxa gtkInit.cmx as usual. However, my porting candidate still shows puzzled: Compiling a .mli file with the line val gtkPixmap_of_file : string -> GMisc.pixmap fails: $ ocamlfind ocamlopt -thread -package "pxp lablgtk2 threads pcre unix camlp4 shell" -predicates "init threads" -c my_gtk_genericmodule.mli File "my_gtk_genericmodule.mli", line 1, characters 34-46: Unbound type constructor GMisc.pixmap make: *** [my_gtk_genericmodule.cmi] Error 2 I've read the README of lablgtk2 but I can't figure out what is going on. How is it possible that my linking sins :-) fool ocamlfind itself? Ernesto