Help building/running SDL/OpenGL code

Roland Smith rsmith at
Tue Dec 22 16:28:11 UTC 2009

On Tue, Dec 22, 2009 at 05:36:19PM +0200, Richard Mace wrote:
> I developed a small molecular dynamics simulation under Linux some time ago. 
> Since recently moving to FreeBSD I thought that I'd try to get it running 
> here, too.
> However, although I am able to get the code to build, it dumps core -- 
> apparently before getting to any user code! During the build (linking phase) I 
> get one error which seems to be a pointer to the source of the problem:
> =============================================
> gcc -Wall -L/usr/local/lib -o lennardjones main.o anim-thread.o ode.o 
> gasdynamics.o eyedynamics.o -lSDL -lSDL_gfx -lm -lGLU
> /usr/bin/ld: warning:, needed by /usr/local/lib/, may 
> conflict with
> =============================================
> Note the last two lines. (I have included the two previous lines to show the 
> dependent libraries, if that helps.)
Looks like the libGL supplied by nvidia was built for FreeBSD 5. Try
installing the /usr/ports/misc/compat5x port. That includes, and
might help.

If you are not running the GENERIC kernel, make sure your kernel contains the

[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url :

More information about the freebsd-questions mailing list