Tuesday, January 5, 2010

OpenCV libcv.so.2.0 error

Sometimes after a fresh install of OpenCV in a fresh install of Linux you may come across the error:

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


If you do then follow the instructions provided by an OpenCV thread on nabble.com. Click here

4 comments:

  1. Weird error. Do you know what causes this? I have not done too many installs, I am still running OpenCV 1.0.

    BTW, what linux distro did you reinstall? Is there a new version of Ubuntu out?

    I recently installed Sabayon 5.1 on my desktop and I was very impressed with its hardware detection. It even got my Creative X-Fi sound card working right out of the box (which creative sound cards are know for not playing nice in linux).

    ReplyDelete
  2. I believe this is more of a specific error to Ubuntu. I installed Ubuntu 9.10 on one of the Laptops from the Kingsbury office to run my code with. Got sick of pretending my Shuttle was a laptop.

    I would like to check out Sabayon again. Maybe I will set up a virtual machine again with Sabayon.

    By the by 9.10 is amazing and, among other things, bootup and shutdown times are so sweet. I wish I had a laptop with solid-state HD to really test it out.

    ReplyDelete
  3. I got the same error on a fresh install of Fedora 12 (which is also very sweet and way faster than Ubuntu 9.10 on my laptop).

    Fedora's ld.so.config file is a little different so I changed the proposed solution a little bit. Namely, rather than change ld.so.config I added a locallib.config file to /etc/ld.so.conf.d/ (if you use Fedora and look at ld.so.conf it'll make sense). Anyway, it fixed the issue. Thanks for linking to that -- would have been very hard to find (I never look at Nabble links).

    ReplyDelete
  4. I will have to try out the new Fedora. I haven't used Fedora since Fedora 5 so I imagine it must be better.

    Thank you for describing your solution on Fedora. Hopefully others will find your solution useful.

    ReplyDelete