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 5F069BDCB for ; Mon, 29 Aug 2005 02:07:35 +0200 (CEST) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.200]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j7T07YUW022306 for ; Mon, 29 Aug 2005 02:07:35 +0200 Received: by nproxy.gmail.com with SMTP id a4so263992nfc for ; Sun, 28 Aug 2005 17:07:34 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=tuquHlFyUDLAtdhN7hkq8oNgue99sAVANuZDkDYAGVtSxeuvJRWxP4Nu/jMSodWf0ndleD4gjjG4k1XhVeefgY1McNyLXaaBVhwPh6HfOPj0boLBDpp0TynHFiZxWwPC/0E7xY3zIXQQNh8MUXN52Vv0XU7WQUuU2uM0rjNQNpo= Received: by 10.48.237.17 with SMTP id k17mr257806nfh; Sun, 28 Aug 2005 17:07:34 -0700 (PDT) Received: by 10.48.247.14 with HTTP; Sun, 28 Aug 2005 17:07:34 -0700 (PDT) Message-ID: Date: Mon, 29 Aug 2005 01:07:34 +0100 From: Chris Campbell To: Sylvain LE GALL Subject: Re: [Caml-list] LablGL on Ubuntu? Cc: caml-list@yquem.inria.fr In-Reply-To: <20050825224335.GA12102@grand> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20050825224335.GA12102@grand> X-Miltered: at nez-perce with ID 431251C6.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; 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 libgl: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.0 required=5.0 tests=RCVD_BY_IP autolearn=disabled version=3.0.3 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. :@