Compiling a basic OpenCV + Cuda program on linux

前端 未结 3 1829
后悔当初
后悔当初 2021-01-07 03:55

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

3条回答
  •  青春惊慌失措
    2021-01-07 04:16

    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!).

提交回复
热议问题