vision_opencv icon indicating copy to clipboard operation
vision_opencv copied to clipboard

ImportError: libopencv_core.so.4.2: cannot open shared object file no such file or directory

Open mazik1496 opened this issue 2 years ago • 2 comments

스크린샷, 2022-10-28 01-26-46

ImportError: libopencv_core.so.4.2: cannot open shared object file no such file or directory`

I am using Ubuntu 20.04 noetic! Now, I tried importing the camera in the gazebo virtual environment that I made myself in the past with opencv, and I saw that ImportError: libopencv_core.so.4.2: was displayed. At first, to use yolo github, I kept installing and deleting other versions of opencv.

Now, I checked libopencv_core in the admin folder, and there are files related to libopencv_core 4.4. Is there any way to open it with 4.4 instead of lipopencv_core 4.2…???

mazik1496 avatar Nov 01 '22 16:11 mazik1496

did you figure this out? I am getting a similar error - ImportError: libopencv_imgproc.so.407: cannot open shared object file: No such file or directory

meghbhalerao avatar May 30 '23 05:05 meghbhalerao

As a workaround you can create a symlink for each shared library file from the opencv version that you have libopencv*.so.4.4 with the corresponding expected file name libopencv*.so.4.2

ngifary avatar Jun 01 '23 10:06 ngifary