Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法解析的外部符号 dggev #8

Open
1xuexiaoyu opened this issue May 15, 2019 · 10 comments
Open

无法解析的外部符号 dggev #8

1xuexiaoyu opened this issue May 15, 2019 · 10 comments

Comments

@1xuexiaoyu
Copy link

MATLAB可以编译其他有opencv库的cpp,但是运行这个cpp文件时会出现上诉问题,用的是MATLAB2016b,opencv2.4.13.并且如果方便的话,请上传一下已经编译好的mexw64文件

@chenandongtime
Copy link

我发现 似乎是缺少一个 int fitEllipse2()函数文件,看到在 generateEllipseCandidates.cpp有使用 fitEllipse2但是实际上并没有写这个函数的定义。

@chenandongtime
Copy link

似乎是generateEllipseCandidates.cpp里面的这一行代码有问题4018行 dggev(&JOBVL,&JOBVR,&fitN,S,&fitN,C,&fitN,alphar,alphai,beta,vl,&fitN,vr,&fitN,fitWork,&workLen,&info);

@chenandongtime
Copy link

在generateEllipseCandidates.cpp里面的4018和3918行的:
dggev(&JOBVL,&JOBVR,&fitN,S,&fitN,C,&fitN,alphar,alphai,beta,vl,&fitN,vr,&fitN,fitWork,&workLen,&info);
注释掉就可以了。

@chenandongtime
Copy link

注释掉程序可以跑,但是没有检测结果了

@chenandongtime
Copy link

编译的时候加上-llibmwlapack.lib就可以了

@FZ-Huang
Copy link

编译的时候加上-llibmwlapack.lib就可以了

你好,加上-llibmwlapack.lib后还是报出相同的错误,是需要在VS中配置lapack吗

@1xuexiaoyu
Copy link
Author

1xuexiaoyu commented Dec 31, 2019 via email

@FZ-Huang
Copy link

好的,谢谢

------------------ 原始邮件 ------------------ 发件人: "FZ-Huang"<notifications@github.com>; 发送时间: 2019年12月31日(星期二) 下午4:00 收件人: "AlanLuSun/High-quality-ellipse-detection"<High-quality-ellipse-detection@noreply.github.com>; 抄送: "血色莱茵"<1653450169@qq.com>; "Author"<author@noreply.github.com>; 主题: Re: [AlanLuSun/High-quality-ellipse-detection] 无法解析的外部符号 dggev (#8) 编译的时候加上-llibmwlapack.lib就可以了 你好,加上-llibmwlapack.lib后还是报出相同的错误,是需要在VS中配置lapack吗 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

请问,你解决这个问题了吗

@1xuexiaoyu
Copy link
Author

1xuexiaoyu commented Dec 31, 2019 via email

@FZ-Huang
Copy link

FZ-Huang commented Jan 1, 2020

我刚刚才收到邮件,还没尝试呢

------------------ 原始邮件 ------------------ 发件人: "FZ-Huang"<notifications@github.com>; 发送时间: 2019年12月31日(星期二) 下午4:05 收件人: "AlanLuSun/High-quality-ellipse-detection"<High-quality-ellipse-detection@noreply.github.com>; 抄送: "血色莱茵"<1653450169@qq.com>; "Author"<author@noreply.github.com>; 主题: Re: [AlanLuSun/High-quality-ellipse-detection] 无法解析的外部符号 dggev (#8) 好的,谢谢 … ------------------ 原始邮件 ------------------ 发件人: "FZ-Huang"<notifications@github.com>; 发送时间: 2019年12月31日(星期二) 下午4:00 收件人: "AlanLuSun/High-quality-ellipse-detection"<High-quality-ellipse-detection@noreply.github.com>; 抄送: "血色莱茵"<1653450169@qq.com>; "Author"<author@noreply.github.com>; 主题: Re: [AlanLuSun/High-quality-ellipse-detection] 无法解析的外部符号 dggev (#8) 编译的时候加上-llibmwlapack.lib就可以了 你好,加上-llibmwlapack.lib后还是报出相同的错误,是需要在VS中配置lapack吗 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. 请问,你解决这个问题了吗 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

你好,我通过将作者提供的mex操作指令去掉末尾的“.lib”后,成功实现了编译,改为以下指令即可(具体路径需要修改成你的对应路径):
mex generateEllipseCandidates.cpp -IF:\OpenCV\opencv2.4.9\build\include -IF:\OpenCV\opencv2.4.9\build\include\opencv -IF:\OpenCV\opencv2.4.9\build\include\opencv2 -LF:\OpenCV\opencv2.4.9\build\x64\vc11\lib -IF:\Matlab\settlein\extern\include -LF:\Matlab\settlein\extern\lib\win64\microsoft -lopencv_core249 -lopencv_highgui249 -lopencv_imgproc249 -llibmwlapack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants