List Info

Thread: "ocaml_beginners"::[] Building liblablgl-ocaml-dev examples ?




"ocaml_beginners"::[] Building liblablgl-ocaml-dev examples ?
country flaguser name
France
2007-05-19 02:25:35

Hi !

liblablgl-ocaml-dev package on Debian Etch is the OpenGL interface.

In order to build the provided examples, I tried with findlib like this :

ocamlfind ocamlopt -o gears -linkpkg
-package lablGL,labltk,lablgl.togl
gears.ml

here with the famous gl demo "gears".

But I got this naughty error :

File "gears.ml", line 218, characters 6-7:
Warning Y: unused variable v.
Files /usr/lib/ocaml/3.09.2/lablgl/togl.cmxa
and /usr/lib/ocaml/3.09.2/labltk/labltk.cmxa
make inconsistent assumptions over interface Tk

Please do you know what could be this "inconsistent assumptions" ?

But maybe this lib problem is closely related to Debian ?

__._,_.___
.

__,_._,___
Re: "ocaml_beginners"::[] Re: Building liblablgl-ocaml-dev examples ?
country flaguser name
France
2007-05-19 14:13:06

> This is a bug in the liblablgl-ocaml-dev debian package, that seem to
> need t be compiled again, Could you report the bug to debian ?
OK, I'll try.

> or I might do it, but I don't have an etch system anymore to test it.
If I experience any problem with this bug report, I'll ask help to you.

> You could recompile it your self in the mean time.
I followed your advice and rebuild the two packages liblablgl-ocaml(-dev)_1.02-2_i386.deb from sources :
all works perfectly now.

Thank you very much for your efficient help !

--------------------------------------------

But I now remember to have met these "inconsistent assumptions" elsewhere :
when I tried to build debo Spaceman Spiff - from planet Zorg indeed - :
http://www.cs.ubc.ca/~rbridson/personal/spiff/

I got this :

ocamlopt -inline 20 -o spiff.opt -I +labltk -I +lablGL unix.cmxa labltk.cmxa lablgl.cmxa togl.cmxa texhelp.o tex.cmx collision.cmx fixedobj.cmx freeobj.cmx badguy.cmx spiff.cmx wall.cmx level.cmx mousehelp.o mouse.cmx game.cmx ui.cmx main.cmx
Files game.cmx and /usr/lib/ocaml/3.09.2/lablGL/togl.cmxa
make inconsistent assumptions over implementation Togl
make: *** [spiff.opt] Error 2

Please do you think the problem could solve same way here, rebuilding some Debian package ?
Probably, 'll try.

Fabrice

__._,_.___
.

__,_._,___
Re: "ocaml_beginners"::[] Re: Building liblablgl-ocaml-dev examples ?
country flaguser name
France
2007-05-19 22:36:51

I wrote I had the same problem in linking "Spaceman spiff"; GL game :
http://www.cs.ubc.ca/~rbridson/personal/spiff/

It was an error to that : no problem anymore. The liblablgl-ocaml(-dev) recompilation solves these other "inconsistency assumptions" here too.

__._,_.___
.

__,_._,___
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )