Error compile C++ project on Ubuntu 16.04 (Netbeans) after accidently remove python3

asked 2019-01-23 08:32:01 -0500

jody gravatar image

I accidently remove python 3 on my Ubuntu. After reinstall Python3, compiling C++ projects get error as below

/usr/bin/ld: warning: libcudart.so.9.1, needed by /usr/local/lib/libopencv_core.so, not found (try using -rpath or -rpath-link) build/Debug/GNU-Linux/main.o: In function `main':

/usr/local/lib/libopencv_core.so: undefined reference to cudaHostGetDevicePointer@libcudart.so.9.1' /usr/local/lib/libopencv_core.so: undefined reference tocudaMemset2DAsync@libcudart.so.9.1' /usr/local/lib/libopencv_core.so: undefined reference to cudaGetErrorString@libcudart.so.9.1' /usr/local/lib/libopencv_core.so: undefined reference tocudaStreamSynchronize@libcudart.so.9.1 Blockquote

I checked and found, cuda 8.0 and 10.0. are present in usr/local/ but i don't know how to configure again.

Could you please advise me how to fix this error? I am using Netbeans

edit retag flag offensive close merge delete