I fear the location of the shader headers is hardcoded, and is not using pkg-config. I'll try to see how I can fix this.
Update: I found a workaround for the problem. It appears the Gentoo ports system installs nvidia-cg-toolkit on the /opt directory (third party software directory). All I had to do were the following things:
1) make a symbolic link from /usr/lib64/libCg.so and /usr/lib64/libCgGL.so to /opt/nvidia-cg-toolkit/lib/libCg.so and /opt/nvidia-cg-toolkit/lib/libCgGL.so:
This holds for a 64-bit Gentoo GNU/Linux system. If you're on a 32-bit system, replace /usr/lib64/ with /usr/lib/.
2) copy the /opt/nvidia-cg-toolkit/include/Cg/ directory to /usr/include/.
Update: I found a workaround for the problem. It appears the Gentoo ports system installs nvidia-cg-toolkit on the /opt directory (third party software directory). All I had to do were the following things:
1) make a symbolic link from /usr/lib64/libCg.so and /usr/lib64/libCgGL.so to /opt/nvidia-cg-toolkit/lib/libCg.so and /opt/nvidia-cg-toolkit/lib/libCgGL.so:
Code:
ln -s /opt/nvidia-cg-toolkit/lib/libCg.so /usr/lib64/libCg.so
ln -s /opt/nvidia-cg-toolkit/lib/libCgGL.so /usr/lib64/libCgGL.soThis holds for a 64-bit Gentoo GNU/Linux system. If you're on a 32-bit system, replace /usr/lib64/ with /usr/lib/.
2) copy the /opt/nvidia-cg-toolkit/include/Cg/ directory to /usr/include/.
