Open Adhders opened 5 years ago
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
Hi, it seems that your compiling environment is not correct. Have you tried the compile.m in the LDES/utility/mexfiles folder?
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