>> make Warning: argeArrayDimsno model specifiedd with -l option not found on -L path C:\PROGRAM FILE

failed to load resource: the server responded with a status of 404 (not found) 方案:加入 {{view .........
英解决error 1311,source file not found,卸载后安装_计算机硬件及网络_it计算机_专业资料。解决3d max 2012 等 版本的error 1311,source file not found,卸载后安.........
英node not found错误解决,注意晶体管,二极管与可变电阻_物理_自然科......
英2 >>make warning: argearraydims specified with -l option not found on -l path e:program filesmatlab71binmex.pl: error: libsvmread.c not .........
■ 24小时热门信息
2011 年 3 月 15 日,微软推出了 ie 9 的正式版,该版本支持 html5、css3 以及大量的 安全更新。需要说明的是,ie 9 不再支持 windows xp。 windows xp .........
design of html5 error handling doctype
keep it simple meta, link, script… syntax: marking it your own way xhtml or not obsolete vs.........
html5 中 div section article 的区别_it计算机...“the section element is not a generic container...found in many supermarkets.
<.........
html5+css3 html5结构性标签体系_计算机软件及应用_it计算机_专业资料。html5+css3 html5 结构性标签体系 html 5 变革最明显的地方,让人机交互,人网交互.........
■ 相关热门内容
学习html5不得不知道html的属性_职业技术培训_职业教育_教育专区。学习html5不得不知道html的属性 学习html5 不得不知道 html 的属性为了更好地学习 html5 培训.........
? 创建 canvas 元素向html5页面添加canvas。规定元素的id、宽度和高度:
your browser does not .........
什么是 html5 html5 是继 html01, xhtml 0 和......
html5高级程序设计 (2) 45页 免费如要投诉违规内容,请到百度文库投诉中心;如...src=movie.mp4 type=videomp4> your browser does not support the .........
http:www.lampbrother.net 在前面介绍了 html5 的新特性,新标签的使用,智能表单设计,引入多媒体对象, canvas 对象你的画布,扩展图形标记,html5 中的地理应用,.........
关于html5相关调查结论——(厦门html培训)_互联网_it计算机_专业资料。关于 html5 相关调查结论——(厦门 html 培训) html5、混合及原生技术都有各自的优势,.........
html5 显而易见是软件开发的下一大热门。起初以 web 应用程序而为人所知的 ... alert(canvas
+ canvasid +
not found) } context= canvas.get.........
html5基础,第3部分:html5 api的威力_it计算机_专业资料。html5基础,第..(sorry, could not obtain location); } web worker 在页面初始化之后就.........
■ 热门推荐Matlab(2)
安装Libsvm工具箱常见问题解决方法
1&Compile&of&'libsvmread.c'&failed
&&这个问题一般是vc&#43;&#43;6.0没装好。重装一下vc&#43;&#43;6.0,选择英文版,不要选择中文版。&2&&&make
Warning:&argeArrayDims&specified&with&-l&option&not&found&on&-L&path&&
&&E:\PROGRAM&FILES\MATLAB71\BIN\MEX.PL:&Error:&'libsvmread.c'&not&found.&&
If&make.m&failes,&please&check&README&about&detailed&instructions.&
这种情况是因为没有将current&folder&设定为libsvm-matlab;解决方法,将当前文件夹设定为D:\matlab\libsvm-3.17\matlab
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:14550次
排名:千里之外
原创:54篇
(4)(12)(2)(4)(11)(11)(8)(7)(1)c++ - Linker Error (MEX could not find the OpenCV library) - Stack Overflow
Join the Stack Overflow Community
Stack Overflow is a community of 7.0 million programmers, just like you, helping each other.
J it only takes a minute:
I'm using MATLAB R2013a x64 and Win7 x64. I installed OpenCV 2.4.7.2 to the path (C:\opencv). Previous compile errors with round are solved, but now there is a linking error.
MEX command output:
&& mex -LC:\opencv\build\x64\vc11\lib -IC:\opencv\build\include\opencv -lcv -lcxcore me_HaarDetectOpenCV.cpp
Warning: MEX could not find the library "cv" specified with -l option.
MEX looked for a file with one of the names:
MEX looked for the library in the following directories:
D:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\LIB\amd64
D:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\ATLMFC\LIB\amd64
C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x64
D:\Program Files\MATLAB\R2013a\extern\lib\win64
D:\Program Files\MATLAB\R2013a\extern\lib\win64\microsoft
C:\opencv\build\x64\vc11\lib
Warning: MEX could not find the library "cxcore" specified with -l option.
MEX looked for a file with one of the names:
cxcore.lib
libcxcore.lib
MEX looked for the library in the following directories:
D:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\LIB\amd64
D:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\ATLMFC\LIB\amd64
C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x64
D:\Program Files\MATLAB\R2013a\extern\lib\win64
D:\Program Files\MATLAB\R2013a\extern\lib\win64\microsoft
C:\opencv\build\x64\vc11\lib
Creating library C:\Users\AsUs\AppData\Local\Temp\mex_47j5SQ\templib.x and object C:\Users\AsUs\AppData\Local\Temp\mex_47j5SQ\templib.exp
me_HaarDetectOpenCV.obj : error LNK2019: unresolved external symbol cvCreateImage referenced in function mexFunction
me_HaarDetectOpenCV.obj : error LNK2019: unresolved external symbol cvReleaseImage referenced in function mexFunction
me_HaarDetectOpenCV.obj : error LNK2019: unresolved external symbol cvCreateMemStorage referenced in function mexFunction
me_HaarDetectOpenCV.obj : error LNK2019: unresolved external symbol cvReleaseMemStorage referenced in function mexFunction
me_HaarDetectOpenCV.obj : error LNK2019: unresolved external symbol cvGetSeqElem referenced in function mexFunction
me_HaarDetectOpenCV.obj : error LNK2019: unresolved external symbol cvLoad referenced in function mexFunction
me_HaarDetectOpenCV.obj : error LNK2019: unresolved external symbol cvEqualizeHist referenced in function mexFunction
me_HaarDetectOpenCV.obj : error LNK2019: unresolved external symbol cvReleaseHaarClassifierCascade referenced in function mexFunction
me_HaarDetectOpenCV.obj : error LNK2019: unresolved external symbol cvHaarDetectObjects referenced in function mexFunction
me_HaarDetectOpenCV.mexw64 : fatal error LNK1120: 9 unresolved externals
D:\PROGRA~2\MATLAB\R2013A\BIN\MEX.PL: Error: Link of 'me_HaarDetectOpenCV.mexw64' failed.
Error using mex (line 206)
Unable to complete successfully.
How do I fix the error and compile (create the MEX file me_HaarDetectOpenCV.mexw64)?
and fix error .
#include "D:\Program Files\MATLAB\R2013a\extern\include\mex.h"
#include "C:\opencv\build\include\opencv\cv.h"
#include "C:\opencv\build\include\opencv\highgui.h"
#include "C:\opencv\build\include\opencv\cxcore.h"
MEX command output:
&& mex me_HaarDetectOpenCV.cpp
Creating library C:\Users\AsUs\AppData\Local\Temp\mex_7BQNq1\templib.x and object C:\Users\AsUs\AppData\Local\Temp\mex_7BQNq1\templib.exp
me_HaarDetectOpenCV.obj : error LNK2019: unresolved external symbol cvReleaseMemStorage referenced in function mexFunction
me_HaarDetectOpenCV.obj : error LNK2019: unresolved external symbol cvReleaseHaarClassifierCascade referenced in function mexFunction
me_HaarDetectOpenCV.obj : error LNK2019: unresolved external symbol cvReleaseImage referenced in function mexFunction
me_HaarDetectOpenCV.obj : error LNK2019: unresolved external symbol cvGetSeqElem referenced in function mexFunction
me_HaarDetectOpenCV.obj : error LNK2019: unresolved external symbol cvHaarDetectObjects referenced in function mexFunction
me_HaarDetectOpenCV.obj : error LNK2019: unresolved external symbol cvEqualizeHist referenced in function mexFunction
me_HaarDetectOpenCV.obj : error LNK2019: unresolved external symbol cvCreateMemStorage referenced in function mexFunction
me_HaarDetectOpenCV.obj : error LNK2019: unresolved external symbol cvCreateImage referenced in function mexFunction
me_HaarDetectOpenCV.obj : error LNK2019: unresolved external symbol cvLoad referenced in function mexFunction
me_HaarDetectOpenCV.mexw64 : fatal error LNK1120: 9 unresolved externals
D:\PROGRA~2\MATLAB\R2013A\BIN\MEX.PL: Error: Link of 'me_HaarDetectOpenCV.mexw64' failed.
Error using mex (line 206)
Unable to complete successfully.
106k19179320
As I mentioned in previous comments, your code is using the old C interface of OpenCV. It is preferred to use the newer C++ interface.
Perhaps it is best to show a complete example. The code below runs face detecting using the Haar-based . I simplified it from your code a bit by removing some of the parameters parsing.
If you want an easier wrapper for using OpenCV inside MATLAB, consider using .
#include "mex.h"
#include &string&
#include "opencv2/opencv.hpp"
#include "opencv2/objdetect/objdetect.hpp"
#include "opencv2/imgproc/imgproc.hpp"
void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
// validate arguments
if (nrhs & 2) {
mexErrMsgTxt("Wrong number of input arguments.");
if (nlhs & 1) {
mexErrMsgTxt("Too many output arguments.");
if (!mxIsChar(prhs[0]) || mxGetM(prhs[0])!=1) {
mexErrMsgTxt("First argument must be a string.");
if (!mxIsUint8(prhs[1]) || mxGetNumberOfDimensions(prhs[0])!=2) {
mexErrMsgTxt("Second argument must be a uint8 grayscale image.");
// get XML cascade file name
char *xmlfile = mxArrayToString(prhs[0]);
cv::CascadeC
if (!cascade.load(std::string(xmlfile))) {
mexErrMsgTxt("Failed to load cascade classifier.");
mxFree(xmlfile);
// get grayscale image
mwSize nrows = mxGetM(prhs[1]);
mwSize ncols = mxGetN(prhs[1]);
uint8_T *data = reinterpret_cast&uint8_T*&(mxGetData(prhs[1]));
// copy into an OpenCV mat (there are better ways to do this step!)
cv::Mat img(nrows, ncols, CV_8UC1, cv::Scalar::all(0));
for(mwIndex c=0; c& c++) {
for(mwIndex r=0; r& r++) {
img.at&char&(r,c) = data[r + nrows*c];
// process image before detection
cv::equalizeHist(img, img);
// detect faces
std::vector&cv::Rect&
cascade.detectMultiScale(img, faces, 1.1, 4, 0, cv::Size(30,30));
// return rectangles found to MATLAB
plhs[0] = mxCreateDoubleMatrix(4, faces.size(), mxREAL);
double *out = mxGetPr(plhs[0]);
for(mwIndex i=0; i&faces.size(); i++) {
out[i+0] = static_cast&double&(faces[i].x);
out[i+1] = static_cast&double&(faces[i].y);
out[i+2] = static_cast&double&(faces[i].width);
out[i+3] = static_cast&double&(faces[i].height);
Assuming you have download OpenCV 2.4.7 and extracted it into C:\OpenCV (with sources and build sub-directories beneath it), run the following command to compile the code:
mex -largeArrayDims -I'C:\OpenCV\build\include' -L'C:\OpenCV\build\x64\vc11\lib'
-lopencv_core247 -lopencv_imgproc247 -lopencv_objdetect247 faces.cpp
(adjust the libraries path above according to your compiler. I'm using VS2012)
Next we test the MEX-function in MATLAB:
% some grayscale face image
img = imread('http://www.ece.rice.edu/~wakin/images/lena512.bmp');
% detect face
rect = faces('./haarcascade_frontalface_alt2.xml', img);
% show result
imshow(img)
rectangle('Position',rect(:,1), 'LineWidth',4, 'EdgeColor','g')
106k19179320
It depends on the version of OpenCV, but for newer versions, you will not find a cxcore library.
In 2.4.7 it is opencv_core247d.lib for the Debug build and and opencv_core247.lib for the Release build.
Look at the documentation for
the version of OpenCV that you are using. It sounds like you are using rather old instructions.
provides instructions for building applications with OpenCV in Windows, and it lists the names of the libraries that you typically include. Obviously, the Visual Studio IDE instructions do not apply.
Based on the unresolved external symbols, you should probably link the following libraries:
opencv_core247
opencv_imgproc247
opencv_objdetect247
opencv_features2d247
opencv_highgui247
This probably too many, but it won't hurt.
26.3k64671
Your Answer
Sign up or
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Post as a guest
By posting your answer, you agree to the
Not the answer you&#39;re looking for?
Browse other questions tagged
rev .25783
Stack Overflow works best with JavaScript enabled&#xe621; 上传我的文档
&#xe602; 下载
&#xe60c; 收藏
该文档贡献者很忙,什么也没留下。
&#xe602; 下载此文档
正在努力加载中...
在matlab中安装Libsvm工具箱常见问题解决方法
下载积分:2000
内容提示:在matlab中安装Libsvm工具箱常见问题解决方法
文档格式:DOC|
浏览次数:155|
上传日期: 12:53:05|
文档星级:&#xe60b;&#xe60b;&#xe612;&#xe612;&#xe612;
全文阅读已结束,如果下载本文需要使用
&#xe71b; 2000 积分
&#xe602;下载此文档
该用户还上传了这些文档
在matlab中安装Libsvm工具箱常见问题解决方法
官方公共微信

我要回帖

更多关于 no model specified 的文章

 

随机推荐