• Advertisement


This topic is now archived and is closed to further replies.

NetBSD Mesa/OGL Linking Problems

This topic is 5913 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have NetBSD i386 v1.5.2 installed. Mesa is installed. 3.4.1 I believe. I ln''d my libGL*.a into /usr/lib, as well as libglut.a from the /usr/X11R6/lib directory. I''m running glut so I can avoid having to fiddle with window managers. I made the *smallest* file I possibly could. I can gcc -c it and get an object file, but when I: ld file.o -L/usr/X11R6/lib -lGL -lGLU -lglut -lm or (after the ln) ld file.o -lGL -lGLU -lglut -lm I get page after page of undefined references to things like "malloc" and "Xfree". I tried using -lc as a kinda last resort as well as -lX11. -lX11 generates a library not found. Any suggestions? I can get OpenGL to work in a Win32 environment, but I think it sucks and want to do it in some *BSD environment instead. Oh, libm is the math library right?

Share this post

Link to post
Share on other sites

  • Advertisement