/编译openCv matlab源代码时,usr/bin/ld找不到lib文件
在尝试使用matlab模块编译openCV时,我遇到以下错误 我只是在realse文件夹中运行$make,就像在 如何修复链接错误?它和matlab有什么关系吗 MATLAB 2013a/编译openCv matlab源代码时,usr/bin/ld找不到lib文件,matlab,opencv,ubuntu,Matlab,Opencv,Ubuntu,在尝试使用matlab模块编译openCV时,我遇到以下错误 我只是在realse文件夹中运行$make,就像在 如何修复链接错误?它和matlab有什么关系吗 MATLAB 2013a Ubuntu 13.10我认为这与MATLAB无关。委员会: /usr/bin/ld:找不到 可能指向链接器在编译期间找不到的opencv_core库的丢失路径。见: 如果您是手动构建,则可以添加-L选项,例如 -L在-lopencv\u核心之前或-lopencv\u imgproc 到命令行build命令。如
Ubuntu 13.10我认为这与MATLAB无关。委员会:
/usr/bin/ld:找不到
可能指向链接器在编译期间找不到的opencv_core
库的丢失路径。见:
如果您是手动构建,则可以添加-L
选项,例如
-L
在-lopencv\u核心之前
或-lopencv\u imgproc
到命令行build命令。如果您使用的是CMake文件,则可能有一个${OPENCV\u LIB\u INSTALL\u PATH}
(或类似的内容)可以设置,例如,使用ccmake。
[ 98%] Compiling Matlab source files. This could take a while...
CMake Error at /home/alex/Downloads/opencv-master/modules/matlab/compile.cmake:47 (message):
Failed to compile drawChessboardCorners: /usr/bin/ld: cannot find
-lopencv_core
/usr/bin/ld: cannot find -lopencv_imgproc
(Removed alot of lines with lib files here)
collect2: error: ld returned 1 exit status
mex: link of ' "drawChessboardCorners.mexa64"' failed.