Ask Your Question

Ubuntu eclipse error opencv while build(c++)?

asked 2016-02-04 05:33:30 -0500

sahiji gravatar image

Cannot build the project there is no BINARY file in the project(that is created in with INCLUDE and main.cpp)

It is showing this error

make all 
Building target: xs
Invoking: GCC C++ Linker
g++ -L/usr/local/lib -o"xs"  ./nim.o   -lopencv_video -lopencv_highhui -lopencv_core -lopencv_videostab -lopencv_claib3d -lopencv_flann -lopencv_imgproc -lopencv_stitching -lopencv_imgcodecs -lopencv_videoio -lopencv_ml -lopencv_objdetect -lopencv_features2d -lopencv_shape -lopencv__photo

/usr/bin/ld: cannot find -lopencv_highhui
/usr/bin/ld: cannot find -lopencv_claib3d
/usr/bin/ld: cannot find -lopencv__photo
collect2: error: ld returned 1 exit status
make: *** [xs] Error 1
edit retag flag offensive close merge delete


help please

sahiji gravatar imagesahiji ( 2016-02-04 05:34:03 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2016-02-04 05:44:51 -0500

berak gravatar image

those are simple typos, it should be :

 -lopencv_highgui    (not -lopencv_highhui)
 -lopencv_calib3d    (not -lopencv_claib3d)
 -lopencv_photo      (not -lopencv__photo)
edit flag offensive delete link more


as in the g++ line while building the project

sahiji gravatar imagesahiji ( 2016-02-08 23:19:09 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2016-02-04 05:33:30 -0500

Seen: 118 times

Last updated: Feb 04 '16