KARAN PUROHIT
KARAN PUROHIT

Reputation: 1

/usr/bin/ld: cannot find -lopencv_contrib

I am new to openCV 3.0. I installed Eclipse cdt, followed the instructions given here. Now when I build the project I get the following result:

18:15:16 **** Incremental Build of configuration Debug for project DisplayImage ****
make all
Building target: DisplayImage
Invoking: GCC C++ Linker
g++ -L/usr/local/lib -o "DisplayImage"  ./src/DisplayImage.o   -lopencv_core -lopencv_contrib -lopencv_legacy -lopencv_imgproc -lopencv_highgui -lopencv_ml -lopencv_video -lopencv_features2d  -lopencv_calib3d -lopencv_objdetect -lopencv_flann
/usr/bin/ld: cannot find -lopencv_contrib
/usr/bin/ld: cannot find -lopencv_legacy
collect2: error: ld returned 1 exit status
make: *** [DisplayImage] Error 1

I searched the /usr/local/lib where other libraries are present and I cant find these two files. What should I do now to solve this problem?

Upvotes: 0

Views: 1673

Answers (1)

berak
berak

Reputation: 39796

it's just an error in the docs. though you should use the 3.0 docs , same thing there.

there is no opencv_contrib or opencv_legacy module anymore in 3.0.

most of its contents (like the face-reco) was moved .

Upvotes: 3

Related Questions