OpenCV 3.2找不到动态库

编译OpenCV 3.2之后,运行程序提示错误:

error while loading shared libraries: libopencv_highgui.so.3.2: cannot open shared object file: No such file or directory  

错误提示的意思是找不到共享库文件。这时候运行:

sudo ldconfig  

问题解决。