SlackwareThis Forum is for the discussion of Slackware Linux.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I'm trying to write OpenGL programs in slack and I'm wondering if slack already has the necessary libraries. If not, where can I get them? I'm writing the programs in C so the compiler shouldn't be an issue.
Slack always has everything you need, or really easy to get. I'm assuming that you've already got an OpenGL capable card and drivers that go with it. You will either need GLUT or SDL to setup contexts and other stuff.
I have an ATI rage 128. It's one of the cards listed when you configure X. OpenGL apps run fine.
When I slocate the header files gl.h and glut.h, I find them in /usr/X11R6/include/GL. Can I use these or do I have to get something else? Also, how would I go about including them as headers in the programs I write?
well in windows I find that I have to add linker flags for my GL programs even with the includes defined. My programs are not compiling thus far, but examples that I've downloaded from the net are doing fine. So I'm thinking maybe I need to use the -L option in gcc to link the libraries too. I'll figure it out
Ah, see that. In *nix, it is custom to compile your stuff into .o files, then link them all together (Windows does that too, but kind of behind your back). With simple one-file programs, the .o step could be skipped like you did in that.
Try removing the -I and -L. Those directories should already be in your include and library paths.