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

compiled the utility/mpolar.cpp error in windows #2

Open
Adhders opened this issue Dec 17, 2018 · 1 comment
Open

compiled the utility/mpolar.cpp error in windows #2

Adhders opened this issue Dec 17, 2018 · 1 comment

Comments

@Adhders
Copy link

Adhders commented Dec 17, 2018

I recompiled the utility/mpolar.cpp with mex using VS2017 and opencv3.3.0., and I came into the following error

Error using mex
Creating library mpolar.lib and object mpolar.exp
mpolar.obj : error LNK2019: unresolved external symbol "void __cdecl cv::fastFree(void *)" (?fastFree@cv@@YAXPEAX@Z) referenced in
function "public: __cdecl cv::Mat::~Mat(void)" (??1Mat@cv@@qeaa@XZ)
mpolar.obj : error LNK2019: unresolved external symbol "private: void __cdecl cv::String::deallocate(void)"
(?deallocate@String@cv@@AEAAXXZ) referenced in function "public: __cdecl cv::String::~String(void)" (??1String@cv@@qeaa@XZ)
mpolar.obj : error LNK2019: unresolved external symbol "public: static class cv::MatExpr cdecl cv::Mat::zeros(class cv::Size,int)"
(?zeros@Mat@cv@@sa?AVMatExpr@2@V?$Size
@h@2@H@Z) referenced in function mexFunction
mpolar.obj : error LNK2019: unresolved external symbol "public: void __cdecl cv::Mat::deallocate(void)" (?deallocate@Mat@cv@@QEAAXXZ)
referenced in function "public: void __cdecl cv::Mat::release(void)" (?release@Mat@cv@@QEAAXXZ)
mpolar.obj : error LNK2019: unresolved external symbol "public: __cdecl _IplImage::_IplImage(class cv::Mat const &)"
(??0_IplImage@@qeaa@AEBVMat@cv@@@z) referenced in function mexFunction
mpolar.obj : error LNK2019: unresolved external symbol cvLogPolar referenced in function mexFunction
mpolar.mexw64 : fatal error LNK1120: 6 unresolved externals

@ihpdep
Copy link
Owner

ihpdep commented Dec 19, 2018

Hi, it seems that your compiling environment is not correct. Have you tried the compile.m in the LDES/utility/mexfiles folder?

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

2 participants