Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
From: Chris Campbell <cyberdanx@g...>
Subject: Re: [Caml-list] LablGL on Ubuntu?
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

Any ideas?  I could run the program in the byte interpreter, but the
implicit surface polygonizer is ****extremely slow**** (it isn't
discarding enough cubes or doing enough memoization yet - infact
memoization made it worse, doubling the time it took* :'( ) and there
are peculiar artifacts which I'm trying to debug.


Chris

*In case anyone is interested here are some timings without rendering:

Without Memoization:
real    0m16.210s
user    0m15.816s
sys     0m0.097s

With Memoization (Hashtbl):
real    0m34.221s
user    0m33.016s
sys     0m0.353s

This is an Athlon 64 3200 and all it does is render a torus. :@