lixin

Results 16 comments of lixin

@AlanLuSun Error use mex C:\Temp\mex_90112112165794_9244\generateEllipseCandidates.obj:generateEllipseCandidates.cpp:(.text+0x8e67): undefined reference to `cv::Exception::Exception(int, std::string const&, std::string const&, std::string const&, int)' ... Some errors lines ...... I use MinGW64 Compiler (C), Matlab 2017(x64)

@xinzhengyi 还需要下载VS软件?我安装的是Matlab2017和mingw64,mex失败了

@xiahaa So how to link flag? When I mex the file, some errors like: undefined reference to `cv::Exception::Exception(int, std::string const&, std::string const&, std::string const&, int)'

@xiahaa But the error persist: C:\Users\AppData\Local\Temp\mex_93217854689248_9244\generateEllipseCandidates.obj:generateEllipseCandidates.cpp:(.text+0x8e67): undefined reference to `cv::Exception::Exception(int, std::string const&, std::string const&, std::string const&, int)'

@xiahaa Thank you. When I use `mex xxx -v,` it gives detailed information like that"MinGW64 Compiler (C++), xxx." Here I all the error messages, could you analyze them for me?

@xiahaa I use the mex command in matlab like this: `mex generateEllipseCandidates.cpp -v... '-ID:\Program Files\opencv_2.4.9\build\include'... '-ID:\Program Files\opencv_2.4.9\build\include\opencv'... '-ID:\Program Files\opencv_2.4.9\build\include\opencv2'... '-LD:\Program Files\opencv_2.4.9\build\x64\vc11\lib'... '-ID:\Program Files\MATLAB\R2017a\extern\include'... '-LD:\Program Files\MATLAB\R2017a\extern\lib\win64\microsoft'... -lopencv_core249... -lopencv_highgui249... -lopencv_imgproc249... -llibmwlapack.lib`

> > > if you open D:\Program Files\opencv_2.4.9\build\x64\vc11\lib can u see opencv_core249.lib, etc? Yes, the file "opencv_core249.lib" is in the right folder.

> visual studio **Thank you. I download visual studio software and try it.**

> > > try uncomment the following code, and make a visual studio project using this pure c++ code (no mex functions are used). > Once you have successfully compiled...

> > > it does not matter. You have vc11. You just create a new project and copy paste this code to a main.cpp, add Lu's cpp code, comment. Compile,...