I\'ve worked with opencv on linux in the past, but not with cuda. I\'ve struggled with the following compilation error for months. And after trying many solutions i gave up
Instead of using pkg-config in the nvcc line I would suggest just manually pointing the compiler at the opencv library and include files. Perhaps you could just run pkg-config --libs opencv on the command line and copy the necessary libs into your nvcc command. It seems nvcc is only choking on the opencv libs (it can't find them for sure!).