Jump to content
  • Advertisement
Sign in to follow this  
whathappened

OpenGL Need to get CG to work in Linux

This topic is 4063 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 dont know if this is the right place to ask this, but Im gonna do it anyway. Im trying to follow a NeHe tutorial on how to use shaders in OpenGL. It works fine on my Windows computer, but right now Im in Ubuntu, and I cant get it to work. First of all, it cant find the Cg header files. I tried to download them from NVIDIA, but all I get is a folder, named usr, with some subfolders, include, lib, local, bin and so on. What should I do with all those files? Or is there anything else I can do?

Share this post


Link to post
Share on other sites
Advertisement
They should go in /usr on your file system. so that the usr directory in the file you downloaded matches with the one on your hard drive that way gcc will find them with out having to specify extra paths.

Share this post


Link to post
Share on other sites
Thanks! But I still get the problem:
/usr/lib/gcc/i486-linux-gnu/4.1.2/libCg.so: undefined reference to `pthread_mutexattr_settype'

when trying to compile. What do I need to fix it?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!