Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
LablGL on Ubuntu?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-08-29 (11:12)
From: Julien Cristau <julien.cristau@e...>
Subject: Re: [Caml-list] LablGL on Ubuntu?
On Mon, Aug 29, 2005 at 09:56:57 +0200, Chris Campbell wrote:

> Thanks everyone.  Now opengl is working, but for some reason native
> linking fails with some X errors.
> ocamlfind ocamlopt -package 'lablgl lablgl.glut' -linkpkg -I maths -I
> polygonizer -thread  -cclib -lX11 -o xpoly d3maths.cmxa
> polygonizer/octree.cmx polygonizer/polygonizer.cmx
> polygonizer/testSurfaces.cmx polygonizer/poly.cmx
> /usr/X11R6/lib/libGL.a(glxcmds.o): In function `glXGetMscRateOML':
> : undefined reference to `XF86VidModeQueryVersion'
> /usr/X11R6/lib/libGL.a(glxcmds.o): In function `glXGetMscRateOML':
> : undefined reference to `XF86VidModeGetModeLine'
> collect2: ld returned 1 exit status
> Error during linking

this sounds like you're using the proprietary nvidia driver, which
causes this link problem (lablgl itself doesn't reference symbols in
libxxf86vm, but the libGL provided by nvidia seems to do and to not be
correctly linked with it).
Try building with libGL from xorg instead of nvidia (for example in a
clean chroot).

Hope this helps,