0

我刚刚安装了 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

先感谢您。

4

1 回答 1

0

您使用命令行:找到 opencv_core.2.4.0 查找路径将路径添加到您的命令

于 2013-07-19T13:34:59.947 回答