caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Chris Campbell <cyberdanx@gmail.com>
To: Sylvain LE GALL <sylvain.le-gall@polytechnique.org>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] LablGL on Ubuntu?
Date: Mon, 29 Aug 2005 01:07:34 +0100	[thread overview]
Message-ID: <c22844d1050828170728f32aa9@mail.gmail.com> (raw)
In-Reply-To: <20050825224335.GA12102@grand>

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. :@


  reply	other threads:[~2005-08-29  0:07 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-25 21:51 Chris Campbell
2005-08-25 22:43 ` [Caml-list] " Sylvain LE GALL
2005-08-29  0:07   ` Chris Campbell [this message]
2005-08-29 11:11     ` Julien Cristau
2005-08-26  3:03 ` skaller
2005-08-26 12:21   ` Chris Campbell
2005-08-26 22:24     ` skaller
2005-08-26 22:46 ` Sven Luther
2005-08-27  0:04   ` skaller
2005-08-27  1:21     ` Sven Luther
2005-08-27 11:49       ` skaller
2005-08-27 19:47         ` Sven Luther
2005-08-28 16:58           ` skaller
2005-08-28 18:17             ` Sven Luther
2005-08-29  3:27               ` skaller
2005-08-27 17:51     ` Christophe TROESTLER
2005-09-01  8:56     ` Johann Spies
2005-09-01 13:29       ` skaller
2005-09-02  8:30         ` Johann Spies

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c22844d1050828170728f32aa9@mail.gmail.com \
    --to=cyberdanx@gmail.com \
    --cc=caml-list@yquem.inria.fr \
    --cc=sylvain.le-gall@polytechnique.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).