Glut - What/How to Install & What to Attach/Include
ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
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.
Glut - What/How to Install & What to Attach/Include
I installed the development libraries for glut the other day and I've been having some troubles compiling some source I got out of the book. This could be concidered multi-posting but, believe me, it's not. Here are the steps I took:
Code:
1. I downloaded the glut libraries and such as rpm's.
2. I installed them.
3. I rebooted the machine.
4. Attempted to compile software.
Is anything missing there? Next is there anything that I should do special when compiling the source, ie. options for the g++ command?
glut sux.
i had it installed as standard with my redhat install and no programs that i tried to install from RPMs or compile from source could find glut, even after editing these programs source configure files and source code to use the libraries that i had not yet installed.
i kinda got somewhere with 3dfile, it compiled half the thing after i had removed the other bugs in the code (undeclared variables, mainly in debug and error messages which i did not really need)
vega-strike just would not compile at all, even though it finds the header files and libraries, and it was getting stuck on glut.
did you download and install glut-devel? you're gonna need that i believe. as far as compiling programs, you can use the -lglut option when invoking the compiler. glut works just fine. you need glut-devel for developing in glut though.
actually, the are no linux packages of glut on the glut site period (unless you want to say the Unix tarball is a linux package). yes, rpms are the only options AFAIK.
well if you really want to see if glut-devel was installed just query your rpm database. my guess is that glut and/or glut-devel doesn't install on default and that they're both 2 seperate rpms so installing glut only installs the *.so file. installing glut-devel should install the header files in /usr/include.
edit: i meant query your rpm database before installing glut-devel that you got as a tarball.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.