From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 88844BDE6 for ; Mon, 29 Aug 2005 13:12:39 +0200 (CEST) Received: from relaissmtp.ens-lyon.fr (pilet.ens-lyon.fr [140.77.167.16]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j7TBCdhV008517 for ; Mon, 29 Aug 2005 13:12:39 +0200 Received: from localhost (localhost [127.0.0.1]) by relaissmtp.ens-lyon.fr (Postfix) with ESMTP id 2979F15B8D1 for ; Mon, 29 Aug 2005 13:12:39 +0200 (CEST) Received: from relaissmtp.ens-lyon.fr ([127.0.0.1]) by localhost (pilet [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03470-08 for ; Mon, 29 Aug 2005 13:12:37 +0200 (CEST) Received: from bryan.is-a-geek.org (asie.ens-lyon.fr [140.77.191.201]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by relaissmtp.ens-lyon.fr (Postfix) with ESMTP id CC7B215B8B2 for ; Mon, 29 Aug 2005 13:12:37 +0200 (CEST) Received: by bryan.is-a-geek.org (Postfix, from userid 1000) id BACAB933E3; Mon, 29 Aug 2005 13:11:57 +0200 (CEST) Date: Mon, 29 Aug 2005 13:11:57 +0200 From: Julien Cristau To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] LablGL on Ubuntu? Message-ID: <20050829111155.GA7222@bryan.is-a-geek.org> Mail-Followup-To: caml-list@yquem.inria.fr References: <20050825224335.GA12102@grand> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: Linux 2.6.10 i686 User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at ens-lyon.fr X-Miltered: at nez-perce with ID 4312EDA7.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; ens-lyon:01 caml-list:01 lablgl:01 ocamlfind:01 ocamlopt:01 -package:01 lablgl:01 -linkpkg:01 -thread:01 -cclib:01 cmxa:01 cmx:01 cmx:01 usr:01 lib:01 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=FORGED_RCVD_HELO autolearn=disabled version=3.0.3 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