libcxcore.so.2 missing in openCV

前端 未结 5 1839
闹比i
闹比i 2021-02-06 09:16

I\'m trying to run some precompiled code (source code is not available) on Ubuntu, which requires openCV to be installed. I installed the latest version of openCV (from the SVN)

相关标签:
5条回答
  • 2021-02-06 09:27

    Yes, the library names have changed. Try OpenCV 2.1 or 2.0 (it changed either for 2.2 or 2.1 i think). If your precompiled code is for ubuntu, why didn't you install the ubuntu opencv package?

    0 讨论(0)
  • 2021-02-06 09:32

    a small addition to (correct) answer by Zifei Tong: One needs to make the symbolic links AND also needs to export LD_LIBRARY_PATH for bash, it is :

    libcvaux.so.2 -> /usr/lib/libopencv_video.so.2.2.0
    libcv.so.2 -> /usr/lib/libopencv_legacy.so.2.2.0
    libcxcore.so.2 -> /usr/lib/libopencv_core.so.2.2.0
    libhighgui.so.2 -> /usr/lib/libopencv_highgui.so.2.2.0
    libml.so.2 -> /usr/lib/libopencv_ml.so.2.2.0
    
    export LD_LIBRARY_PATH="path to symbolic links' directory"
    
    0 讨论(0)
  • 2021-02-06 09:34

    I had the same problem working on STIP and OpenCV 2.2. To solve the issue, just create symbolic links as below. It works for me.

    libcvaux.so.2 -> /usr/lib/libopencv_video.so.2.2.0
    libcv.so.2 -> /usr/lib/libopencv_legacy.so.2.2.0
    libcxcore.so.2 -> /usr/lib/libopencv_core.so.2.2.0
    libhighgui.so.2 -> /usr/lib/libopencv_highgui.so.2.2.0
    libml.so.2 -> /usr/lib/libopencv_ml.so.2.2.0
    
    0 讨论(0)
  • 2021-02-06 09:37

    This error is because they change the library names after openCV 2.2, however STIP depends on previous libraries. You just need to set few symbolic links and it will work. The following link will solve your problem http://web.michaelchughes.com/how-to/install-stip-software-with-opencv-v2

    0 讨论(0)
  • 2021-02-06 09:39

    I had the same problem and I solved the problem by installing libcv, libcvaux, libhighgui and their -dev libraries from Synaptics. But the program dependent on the libcv.so.2 shared libraries but Synaptics installs libcv.so.4.0.0. So I created symbolic links for every installed library by running command:

    sudo ln -s /usr/lib/libcxcore.so.4.0.0 /usr/lib/libcxcore.so.2
    

    and so on for every library that the program needs. Now it is working fine for me.

    0 讨论(0)
提交回复
热议问题