1 | initial version |
You create a shell wrapper script (eg. run.sh) containing:
#!/bin/sh
export LD_LIBRARY_PATH=/home/sai/workspace/opencv-2.4.8/lib
exec your_program $*
This will look for the OpenCV libs in your chosen path before anywhere else.