I am trying to build OpenEXR_viewers in Ubuntu 12.04. I have the Nvida Cg toolkit installed: the binaries are in /usr/bin, includes in /usr/include and the libs in /usr/lib.
If I run configure without any additional flags, it returns:
checking for Cg... no
*** The Cg test program could not be compiled.
If I use
./configure --with-cg-prefix=/usr
I get the same error. Any suggestions?