SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
strangely it doesn't work without linkers. Even with the includes, it did not compile until I linked the libraries directly. I probably just forgot to set a path somewhere.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.