Ok, I did a make rpcminer, and it builds the kernel and everything fine, but fails on linking (undefined reference to `cuInit'). I have added the cuda lib directory to the ld config file and ran ldconfig as root. I also tried setting the LD_LIBRARY_PATH with no success. Perhaps there's a -lcuda missing somewhere, but I've never worked with CMake, so I have no idea where look. Any ideas?