Sign in to follow this  
whathappened

OpenGL Need to get CG to work in Linux

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this