From owner-freebsd-questions@FreeBSD.ORG Tue Dec 22 19:58:22 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B630910656A5 for ; Tue, 22 Dec 2009 19:58:22 +0000 (UTC) (envelope-from macerl@telkomsa.net) Received: from rrba-ip-smtp-1-3.saix.net (rrba-ip-smtp-1-3.saix.net [196.25.240.222]) by mx1.freebsd.org (Postfix) with ESMTP id 54E798FC1E for ; Tue, 22 Dec 2009 19:58:21 +0000 (UTC) Received: from toutatis.localnet (dsl-242-93-13.telkomadsl.co.za [41.242.93.13]) by rrba-ip-smtp-1-3.saix.net (Postfix) with ESMTP id 5EA20BD0; Tue, 22 Dec 2009 21:58:19 +0200 (SAST) From: Richard Mace To: Roland Smith Date: Tue, 22 Dec 2009 21:57:57 +0200 User-Agent: KMail/1.12.4 (FreeBSD/8.0-RELEASE; KDE/4.3.4; i386; ; ) References: <200912221736.20023.macerl@telkomsa.net> <200912221950.19322.macerl@telkomsa.net> <20091222183518.GA2552@slackbox.xs4all.nl> In-Reply-To: <20091222183518.GA2552@slackbox.xs4all.nl> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200912222157.57126.macerl@telkomsa.net> Cc: Roger , freebsd-questions@freebsd.org Subject: Re: Help building/running SDL/OpenGL code X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Dec 2009 19:58:22 -0000 On Tuesday 22 December 2009 20:35:19 you wrote: > On Tue, Dec 22, 2009 at 07:50:19PM +0200, Richard Mace wrote: > > On Tuesday 22 December 2009 19:31:31 you wrote: > > > What version of the nvidia driver are you using? > > > > The one in /usr/ports/x11/nvidia-driver-173. I have to use this for the > > aging FX 5200. > > > > > Have a look at the x11-drivers/xf86-video-nouveau port. Maybe that > > > works for you? > > > > > > (BTW, problems like these are why I avoid proprietary drivers like the > > > plague) > > > > I'm rendering a whole bunch of molecules (spheres), moving a camera and > > at the same time doing quite a bit of CPU intensive numerical integration > > of a whole slew of coupled ordinary differential equations -- I need the > > speed of the GPU (read proprietary driver) to relieve the CPU and avoid a > > slide show. (This works very nicely with dual core CPUs: I use one thread > > for the rendering and another for the numerics.) > > In this case it might be better to invest in a more recent graphics > card. Currently Radeons (up to and including R6xx/R7xx) are better > supported by open source drivers than nvidia. > > > I'll keep digging (and getting educated, I guess). Incidentally, in > > Debian GNU/Linux they have a system of clever "diverts" which avoid these > > kinds of library clashes. > > As far as I know, the compat libraries are meant to be able to keep using > old binaries on newer systems. I do not think they were ever meant to be > used in a "mixed" (as in linking with both libm.so.3 and libm.so.5) > environment. > > From experience (botched ports upgrade going from 6.x to 7) I know that > having a program linked to different versions of the same library can > result in "interesting" experiences (i.e. crashes). > > There are several things you could try, from building your app and the > libraries it needs on a 5.x machine to trying to get the libGL to link with > the current libm. Whatever you do, it will probably end up being a kludge. > > Roland > Thanks again for the suggestions, Roland. In the end, as a last resort, I de-installed the nvidia driver and started X with an empty /etc/X11/xorg.conf (which presumably loads the "nv" driver). I re-built my code and it runs, albeit without the smoothest of graphics. I guess that that proves that the problem lies with the NVIDIA driver and its inter-relationship with the Mesa libraries, which one has to use if one builds one's own "OpenGL" programs. It is a pity that FreeBSD has not sorted that out, but I hasten to add that I'm new to FBSD and it could be my error. It does beg the question, though, how one would develop OpenGL apps on FBSD? I'll revisit this soon, after some careful googling. Thanks again for the help. -Richard