caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Julien Cristau <julien.cristau@ens-lyon.fr>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] LablGL on Ubuntu?
Date: Mon, 29 Aug 2005 13:11:57 +0200	[thread overview]
Message-ID: <20050829111155.GA7222@bryan.is-a-geek.org> (raw)
In-Reply-To: <c22844d1050828170728f32aa9@mail.gmail.com>

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
> 
Hi,

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,
Julien


  reply	other threads:[~2005-08-29 11:12 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
2005-08-29 11:11     ` Julien Cristau [this message]
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=20050829111155.GA7222@bryan.is-a-geek.org \
    --to=julien.cristau@ens-lyon.fr \
    --cc=caml-list@yquem.inria.fr \
    /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).