Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Dec 2009 21:57:57 +0200
From:      Richard Mace <macerl@telkomsa.net>
To:        Roland Smith <rsmith@xs4all.nl>
Cc:        Roger <rnodal@gmail.com>, freebsd-questions@freebsd.org
Subject:   Re: Help building/running SDL/OpenGL code
Message-ID:  <200912222157.57126.macerl@telkomsa.net>
In-Reply-To: <20091222183518.GA2552@slackbox.xs4all.nl>
References:  <200912221736.20023.macerl@telkomsa.net> <200912221950.19322.macerl@telkomsa.net> <20091222183518.GA2552@slackbox.xs4all.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912222157.57126.macerl>