Ask Your Question

Installation of opencv 3.0 GOLD on raspberry pi 2 ERROR

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

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 :

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

error while loading shared libraries: cannot open shared object file: No such file or directory

after that i found that the libraries is in ./usr/local/lib/ 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/

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

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

edit retag flag offensive close merge delete


try: -lopencv_calib3d not

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

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

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

1 answer

Sort by ยป oldest newest most voted

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

franken gravatar image

To solve this just sudo nano /etc/ put in a new line : /usr/local/lib this worked for me :)

edit flag offensive delete link more

Question Tools

1 follower


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

Seen: 352 times

Last updated: Jul 10 '15