Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

error while loading shared libraries: libopencv_core.so.3.0

Tags:

opencv

ubuntu

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

I am using eclipse c/c++ ide on ubuntu 14.04. Tried everything which I got from google enter image description hereenter image description hereenter image description hereenter image description here

like image 846
Adarsh Nair Avatar asked Jan 12 '15 17:01

Adarsh Nair


1 Answers

You are trying to run in Eclipse so the solution provided (The export part) in openCV program compile error "libopencv_core.so.2.4: cannot open shared object file: No such file or directory" in ubuntu 12.04 May not work. I suppose you have installed open cv following the instructions provided in open cv documentation. If so, you can get rid of this problem by adding the following environment variables to the eclipse runtime.

Name - LD_LIBRARY_PATH

Value - $LD_LIBRARY_PATH:/usr/local/lib

Steps

  1. Click on Run As -> Run Configurations
  2. On the window on the right hand side you see the Environment tab.

  3. Here click on New, you'll see a New Environment Variable pop up.

  4. Here, for Name enter LD_LIBRARY_PATH, for Value enter $LD_LIBRARY_PATH:/usr/local/lib. click ok and Apply
  5. Now run again, you shouldn't see the issue.

enter image description here

like image 185
Abbyss Avatar answered Oct 07 '22 13:10

Abbyss