我刚刚安装了 opencv 2.4.0 。在使用编译示例代码时
g++ -I/usr/include -L/usr/lib -lopencv_core.2.4.0 -lopencv_calib3d.2.4.0 -lopencv_imgproc.2.4.0 -lopencv_legacy.2.4.0 -lopencv_highgui.2.4.0 asd.cpp
我收到以下错误
/usr/bin/ld: cannot find -lopencv_core.2.4.0
/usr/bin/ld: cannot find -lopencv_calib3d.2.4.0
/usr/bin/ld: cannot find -lopencv_imgproc.2.4.0
/usr/bin/ld: cannot find -lopencv_legacy.2.4.0
/usr/bin/ld: cannot find -lopencv_highgui.2.4.0
collect2: ld returned 1 exit status
先感谢您。