As I mentioned in previous posts. This is a tricky problem and can take quite some time to get the right versions and dependencies figured out. That is the joy or working with opencv, linux and caffe (sarcasm)
Here is a link to a script I used to get opencv working to use with caffe. I tried installing opencv 3.0 but failed because of some issues with that version. I also tried getting 2.4.9 installed and also failed because wasn't compatible with my cuda library since I have CUDA 7.0 and a Titan X.
After many tries, installing the dependecies in this link helped. Please share your solutions if you found some issues.
https://github.com/olivernina/ubuntu-scripts/blob/master/install-opencv.sh
I also found some useful information in this link :
http://milq.github.io/install-opencv-ubuntu-debian/
Also I noticed that it helped to add my libraries to my LD path
export LD_LIBRARY_PATH = $LD_LIBRARY_PATH:/usr/local/lib
And also anytime there was an error on compiling opencv and I needed to recompile it was better to erase the build directory and start all over. But of course everyone knows this right? :)
No comments:
Post a Comment