cannot open shared object file, and its solution





OpenCV 2.4.5 has released and it is exciting to take a bite.

So openCV is downloaded and compiled, but when it is to play video files, an error popped up: cannot open shared object file

After searching couple of webpages finally get the solution:

There are two steps to fix the error. First, check the file


– this is to make sure the opencv lib path is included in the config file.

Second, including the path of opencv’s .so files in LD_LIBRARY_PATH(), like below:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib

Author: Andol Li

A HCI researcher, a digital media lecturer, an information product designer, and a python/php/java coder.

3 Comments On “ cannot open shared object file, and its solution”

Leave a comment
Due to technical adjustments, the comment function is shortly closed and will be re-openning soon. Thanks.

Copyrights 2006-2018 © All rights reserved
Theme Tree2, re-designed by Andol Li, powered by WordPress and Bootsrap
WWW.ANDOL.ME | 浙ICP备15040508号-1
公安备案图标 浙公网安备33010602004018号
Back to top