Ask Your Question
0

Installation of opencv 3.0 GOLD on raspberry pi 2 ERROR

asked 2015-07-08 05:21:58 -0600

franken gravatar image

Hi all, I've been looking all day for a good tutorial on installing opencv 3.0 , si i've foolow this link : http://docs.opencv.org/3.0-last-rst/d...

after building and when i test any of the samples in cpp folder it give me an error

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

after that i found that the libraries is in ./usr/local/lib/libopencv_calib3d.so.3.0 folder so i add it : sudo g++ -I/usr/include/opencv facedetect.cpp -o face -lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_ml -lopencv_video -lopencv_features2d -lopencv_calib3d -lopencv_objdetect -lopencv_flann -L/usr/local/lib/ -libopencv_calib3d.so.3.0

error ==> /usr/bin/ld: cannot find -libopencv_calib3d

also i've added /usr/local/lib to /etc/ld.so.conf.d/opencv.conf and runs ldconfig but didn"t resolve the problem plz help !! thanks :)

edit retag flag offensive close merge delete

Comments

try: -lopencv_calib3d not -libopencv_calib3d.so.3.0

berak gravatar imageberak ( 2015-07-08 05:33:05 -0600 )edit

this didn't solve the problem but i have add the : sudo nano /etc/ld.so.conf.d/opencv.conf
put in a new line : /usr/local/lib thanks :)

franken gravatar imagefranken ( 2015-07-08 07:23:23 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-07-10 09:31:29 -0600

franken gravatar image

To solve this just sudo nano /etc/ld.so.conf.d/opencv.conf put in a new line : /usr/local/lib this worked for me :)

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-07-08 05:21:58 -0600

Seen: 444 times

Last updated: Jul 10 '15