kelvinlow
Posts: 12
Joined: Wed May 18, 2016 8:43 am

Facing 'No such file' on LXTerminal but work fine via SSH

Mon May 23, 2016 7:52 am

Hello, I am building an OpenCV application.
I'm following the instruction of the link below.
https://github.com/garystafford/object- ... g-blogpost

I had built the project, according to the instruction
I used

Code: Select all

./cppappopencv
to execute the application after cd to the right location.
The application works when I using SSH to connect to my Raspberry Pi
Also, I built/compilied application via SSH, and it's works.
Image
(I'm using OS X, iTerm 2)

But when I do so on the LXTerminal in Raspberry Pi,

Code: Select all

./cppappopencv
to execute the application
I am facing error:

Code: Select all

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

I tried to locate libcvblob.so and I found it's available.
and I also tried new SSH to connect to Raspberry Pi, and it works too.

User avatar
topguy
Posts: 6527
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Facing 'No such file' on LXTerminal but work fine via SS

Mon May 23, 2016 11:14 am

> I tried to locate libcvblob.so and I found it's available.

But WHERE is it available ?

This little snippet from the guide you linked to is relevant.

Code: Select all

# optional - fixed problem with app finding cvBlob library when started
echo 'export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH' | sudo tee -a ~/.bashrc
bash --login # or exit VM and log back in
Do "echo $LD_LIBRARY_PATH" in each shell and see if there is a difference.

Return to “General discussion”