ros-perception / vision_opencv

Apache License 2.0
536 stars 599 forks source link

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

Open mazik1496 opened 1 year ago

mazik1496 commented 1 year ago

스크린샷, 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…???

meghbhalerao commented 1 year ago

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

ngifary commented 1 year ago

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