Adarsh Nair
Adarsh Nair

Reputation: 390

error while loading shared libraries: libopencv_core.so.3.0

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 here enter image description here enter image description here enter image description here

Upvotes: 6

Views: 19241

Answers (2)

Abbyss
Abbyss

Reputation: 155

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

Upvotes: 12

Walker
Walker

Reputation: 1

I had the same problem too. Upgrading to the latest Eclipse version solved it.

Upvotes: -2

Related Questions