{"action":"created","issue":{"url":"https://api.github.com/repos/kyamagu/mexopencv/issues/146","labels_url":"https://api.github.com/repos/kyamagu/mexopencv/issues/146/labels{/name}","comments_url":"https://api.github.com/repos/kyamagu/mexopencv/issues/146/comments","events_url":"https://api.github.com/repos/kyamagu/mexopencv/issues/146/events","html_url":"https://github.com/kyamagu/mexopencv/issues/146","id":70289288,"number":146,"title":"Compile Error","user":{"login":"920496044","id":12076375,"avatar_url":"https://avatars.githubusercontent.com/u/12076375?v=3","gravatar_id":"","url":"https://api.github.com/users/920496044","html_url":"https://github.com/920496044","followers_url":"https://api.github.com/users/920496044/followers","following_url":"https://api.github.com/users/920496044/following{/other_user}","gists_url":"https://api.github.com/users/920496044/gists{/gist_id}","starred_url":"https://api.github.com/users/920496044/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/920496044/subscriptions","organizations_url":"https://api.github.com/users/920496044/orgs","repos_url":"https://api.github.com/users/920496044/repos","events_url":"https://api.github.com/users/920496044/events{/privacy}","received_events_url":"https://api.github.com/users/920496044/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-23T02:51:40Z","updated_at":"2015-09-04T06:35:49Z","closed_at":null,"body":"OS：win7\r\nmatlab ver：2015a\r\ncompiler：Microsoft Visual C++ 2012 (C) \r\n\r\neverytime I selected the compiler, I try to run the mexopencv.make, and then I will get the warning information , everytime is it . It let me crazy   +.+ ......so I want to ask for help here  ,\r\n\r\nhere is the matlab commant window information\r\n\r\n=================[ if i select  Microsoft Visual C++ 2012 (C)  compiler ]=====================\r\n\r\n>> mex -setup\r\nMEX configured to use 'Microsoft Visual C++ 2012 (C)' for C language compilation.\r\nWarning: The MATLAB C and Fortran API has changed to support MATLAB\r\n\t variables with more than 2^32-1 elements. In the near future\r\n\t you will be required to update your code to utilize the\r\n\t new API. You can find more information about this at:\r\n\t http://www.mathworks.com/help/matlab/matlab_external/upgrading-mex-files-to-use-64-bit-api.html.\r\n\r\nTo choose a different C compiler, select one from the following:\r\nMicrosoft Visual C++ 2012 (C)  mex -setup:C:\\Users\\Marecal\\AppData\\Roaming\\MathWorks\\MATLAB\\R2015a\\mex_C_win64.xml C\r\nMicrosoft Windows SDK 7.1 (C)  mex -setup:'D:\\Program Files\\MATLAB\\MATLAB Production Server\\R2015a\\bin\\win64\\mexopts\\winsdk-7.1_c.xml' C\r\n\r\nTo choose a different language, select one from the following:\r\n mex -setup C++ \r\n mex -setup FORTRAN\r\nMEX configured to use 'Microsoft Visual C++ 2012' for C++ language compilation.\r\nWarning: The MATLAB C and Fortran API has changed to support MATLAB\r\n\t variables with more than 2^32-1 elements. In the near future\r\n\t you will be required to update your code to utilize the\r\n\t new API. You can find more information about this at:\r\n\t http://www.mathworks.com/help/matlab/matlab_external/upgrading-mex-files-to-use-64-bit-api.html.\r\n\r\nTo choose a different C++ compiler, select one from the following:\r\nMicrosoft Visual C++ 2012  mex -setup:C:\\Users\\Marecal\\AppData\\Roaming\\MathWorks\\MATLAB\\R2015a\\mex_C++_win64.xml C++\r\nMicrosoft Windows SDK 7.1 (C++)  mex -setup:'D:\\Program Files\\MATLAB\\MATLAB Production Server\\R2015a\\bin\\win64\\mexopts\\winsdk-7.1_cpp.xml' C++\r\nMEX configured to use 'Microsoft Visual C++ 2012' for C++ language compilation.\r\nWarning: The MATLAB C and Fortran API has changed to support MATLAB\r\n\t variables with more than 2^32-1 elements. In the near future\r\n\t you will be required to update your code to utilize the\r\n\t new API. You can find more information about this at:\r\n\t http://www.mathworks.com/help/matlab/matlab_external/upgrading-mex-files-to-use-64-bit-api.html.\r\n>> mexopencv.make\r\nSkipped \"E:\\KNIGHT\\matlab\\view\\mexopencv-master\\src\\MxArray.cpp\"\r\nmex -largeArrayDims   -I'E:\\KNIGHT\\matlab\\view\\mexopencv-master\\include' -I'E:\\KNIGHT\\matlab\\view\\Opencv\\include' -L'E:\\KNIGHT\\matlab\\view\\Opencv\\x64\\vc11\\lib'  -lopencv_calib3d2410 -lopencv_contrib2410 -lopencv_core2410 -lopencv_features2d2410 -lopencv_flann2410 -lopencv_gpu2410 -lopencv_highgui2410 -lopencv_imgproc2410 -lopencv_legacy2410 -lopencv_ml2410 -lopencv_nonfree2410 -lopencv_objdetect2410 -lopencv_ocl2410 -lopencv_photo2410 -lopencv_stitching2410 -lopencv_superres2410 -lopencv_ts2410 -lopencv_video2410 -lopencv_videostab2410 'E:\\KNIGHT\\matlab\\view\\mexopencv-master\\src\\+cv\\CamShift.cpp' 'E:\\KNIGHT\\matlab\\view\\mexopencv-master\\lib\\MxArray.obj' -output 'E:\\KNIGHT\\matlab\\view\\mexopencv-master\\+cv\\CamShift'\r\nBuilding with 'Microsoft Visual C++ 2012'.\r\nError using mex\r\nCamShift.cpp\r\ne:\\knight\\matlab\\view\\mexopencv-master\\include\\MxArray.hpp(781) : warning C4344: behavior change: use of\r\nexplicit template arguments results in call to 'T MxArray::at<T>(mwIndex) const'\r\n        with\r\n        [\r\n            T=int\r\n        ]\r\n        but the regular function 'MxArray MxArray::at(const std::string &,mwIndex) const' is a better match\r\n        if you expect 'MxArray MxArray::at(const std::string &,mwIndex) const' to be called then you need to\r\n        make it an explicit specialization\r\n        e:\\knight\\matlab\\view\\mexopencv-master\\include\\MxArray.hpp(428) : see reference to function template\r\n        instantiation 'cv::Point_<_Tp> MxArray::toPoint_<int>(void) const' being compiled\r\n        with\r\n        [\r\n            _Tp=int\r\n        ]\r\ne:\\knight\\matlab\\view\\mexopencv-master\\include\\MxArray.hpp(781) : warning C4344: behavior change: use of\r\nexplicit template arguments results in call to 'T MxArray::at<T>(mwIndex) const'\r\n        with\r\n        [\r\n            T=float\r\n        ]\r\ne:\\knight\\matlab\\view\\mexopencv-master\\include\\MxArray.hpp(789) : warning C4344: behavior change: use of\r\nexplicit template arguments results in call to 'T MxArray::at<T>(mwIndex) const'\r\n        with\r\n        [\r\n            T=float\r\n        ]\r\ne:\\knight\\matlab\\view\\mexopencv-master\\include\\MxArray.hpp(798) : warning C4344: behavior change: use of\r\nexplicit template arguments results in call to 'T MxArray::at<T>(mwIndex) const'\r\n        with\r\n        [\r\n            T=int\r\n        ]\r\ne:\\knight\\matlab\\view\\mexopencv-master\\include\\MxArray.hpp(807) : warning C4344: behavior change: use of\r\nexplicit template arguments results in call to 'T MxArray::at<T>(mwIndex) const'\r\n        with\r\n        [\r\n            T=int\r\n        ]\r\ne:\\knight\\matlab\\view\\mexopencv-master\\include\\MxArray.hpp(813) : warning C4267: 'initializing' : conversion\r\nfrom 'size_t' to 'int', possible loss of data\r\n        e:\\knight\\matlab\\view\\mexopencv-master\\include\\MxArray.hpp(443) : see reference to function template\r\n        instantiation 'cv::Scalar_<_Tp> MxArray::toScalar_<double>(void) const' being compiled\r\n        with\r\n        [\r\n            _Tp=double\r\n        ]\r\ne:\\knight\\matlab\\view\\mexopencv-master\\include\\MxArray.hpp(819) : warning C4344: behavior change: use of\r\nexplicit template arguments results in call to 'T MxArray::at<T>(mwIndex) const'\r\n        with\r\n        [\r\n            T=double\r\n        ]\r\ne:\\knight\\matlab\\view\\mexopencv-master\\include\\MxArray.hpp(820) : warning C4344: behavior change: use of\r\nexplicit template arguments results in call to 'T MxArray::at<T>(mwIndex) const'\r\n        with\r\n        [\r\n            T=double\r\n        ]\r\ne:\\knight\\matlab\\view\\mexopencv-master\\include\\MxArray.hpp(821) : warning C4344: behavior change: use of\r\nexplicit template arguments results in call to 'T MxArray::at<T>(mwIndex) const'\r\n        with\r\n        [\r\n            T=double\r\n        ]\r\ne:\\knight\\matlab\\view\\mexopencv-master\\include\\MxArray.hpp(822) : warning C4344: behavior change: use of\r\nexplicit template arguments results in call to 'T MxArray::at<T>(mwIndex) const'\r\n        with\r\n        [\r\n            T=double\r\n        ]\r\ncl : Command line error D8027 : cannot execute 'D:\\Program Files (x86)\\Microsoft Visual Studio\r\n11.0\\VC\\Bin\\amd64\\c2.dll'\r\n\r\n\r\n\r\nError in mexopencv.make (line 149)\r\n            if ~opts.dryrun, eval(cmd); end\r\n \r\n\r\n=================[ if i select  Microsoft Windows SDK 7.1 (C)   compiler ]====================\r\n\r\n>> mex -setup\r\nMEX configured to use 'Microsoft Visual C++ 2012 (C)' for C language compilation.\r\nWarning: The MATLAB C and Fortran API has changed to support MATLAB\r\n\t variables with more than 2^32-1 elements. In the near future\r\n\t you will be required to update your code to utilize the\r\n\t new API. You can find more information about this at:\r\n\t http://www.mathworks.com/help/matlab/matlab_external/upgrading-mex-files-to-use-64-bit-api.html.\r\n\r\nTo choose a different C compiler, select one from the following:\r\nMicrosoft Visual C++ 2012 (C)  mex -setup:C:\\Users\\Marecal\\AppData\\Roaming\\MathWorks\\MATLAB\\R2015a\\mex_C_win64.xml C\r\nMicrosoft Windows SDK 7.1 (C)  mex -setup:'D:\\Program Files\\MATLAB\\MATLAB Production Server\\R2015a\\bin\\win64\\mexopts\\winsdk-7.1_c.xml' C\r\n\r\nTo choose a different language, select one from the following:\r\n mex -setup C++ \r\n mex -setup FORTRAN\r\nMEX configured to use 'Microsoft Visual C++ 2012' for C++ language compilation.\r\nWarning: The MATLAB C and Fortran API has changed to support MATLAB\r\n\t variables with more than 2^32-1 elements. In the near future\r\n\t you will be required to update your code to utilize the\r\n\t new API. You can find more information about this at:\r\n\t http://www.mathworks.com/help/matlab/matlab_external/upgrading-mex-files-to-use-64-bit-api.html.\r\n\r\nTo choose a different C++ compiler, select one from the following:\r\nMicrosoft Visual C++ 2012  mex -setup:C:\\Users\\Marecal\\AppData\\Roaming\\MathWorks\\MATLAB\\R2015a\\mex_C++_win64.xml C++\r\nMicrosoft Windows SDK 7.1 (C++)  mex -setup:'D:\\Program Files\\MATLAB\\MATLAB Production Server\\R2015a\\bin\\win64\\mexopts\\winsdk-7.1_cpp.xml' C++\r\nMEX configured to use 'Microsoft Windows SDK 7.1 (C++)' for C++ language compilation.\r\nWarning: The MATLAB C and Fortran API has changed to support MATLAB\r\n\t variables with more than 2^32-1 elements. In the near future\r\n\t you will be required to update your code to utilize the\r\n\t new API. You can find more information about this at:\r\n\t http://www.mathworks.com/help/matlab/matlab_external/upgrading-mex-files-to-use-64-bit-api.html.\r\n>> mexopencv.make\r\nSkipped \"E:\\KNIGHT\\matlab\\view\\mexopencv-master\\src\\MxArray.cpp\"\r\nmex -largeArrayDims   -I'E:\\KNIGHT\\matlab\\view\\mexopencv-master\\include' -I'E:\\KNIGHT\\matlab\\view\\Opencv\\include' -L'E:\\KNIGHT\\matlab\\view\\Opencv\\x64\\vc10\\lib'  -lopencv_calib3d2410 -lopencv_contrib2410 -lopencv_core2410 -lopencv_features2d2410 -lopencv_flann2410 -lopencv_gpu2410 -lopencv_highgui2410 -lopencv_imgproc2410 -lopencv_legacy2410 -lopencv_ml2410 -lopencv_nonfree2410 -lopencv_objdetect2410 -lopencv_ocl2410 -lopencv_photo2410 -lopencv_stitching2410 -lopencv_superres2410 -lopencv_ts2410 -lopencv_video2410 -lopencv_videostab2410 'E:\\KNIGHT\\matlab\\view\\mexopencv-master\\src\\+cv\\CamShift.cpp' 'E:\\KNIGHT\\matlab\\view\\mexopencv-master\\lib\\MxArray.obj' -output 'E:\\KNIGHT\\matlab\\view\\mexopencv-master\\+cv\\CamShift'\r\nBuilding with 'Microsoft Windows SDK 7.1 (C++)'.\r\nError using mex\r\nCamShift.cpp\r\nd:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\INCLUDE\\intrin.h(26) : fatal error C1083: Cannot open\r\ninclude file: 'ammintrin.h': No such file or directory\r\n\r\n\r\n\r\nError in mexopencv.make (line 149)\r\n            if ~opts.dryrun, eval(cmd); end\r\n "},"comment":{"url":"https://api.github.com/repos/kyamagu/mexopencv/issues/comments/137659210","html_url":"https://github.com/kyamagu/mexopencv/issues/146#issuecomment-137659210","issue_url":"https://api.github.com/repos/kyamagu/mexopencv/issues/146","id":137659210,"user":{"login":"samrasiddiqui","id":4002493,"avatar_url":"https://avatars.githubusercontent.com/u/4002493?v=3","gravatar_id":"","url":"https://api.github.com/users/samrasiddiqui","html_url":"https://github.com/samrasiddiqui","followers_url":"https://api.github.com/users/samrasiddiqui/followers","following_url":"https://api.github.com/users/samrasiddiqui/following{/other_user}","gists_url":"https://api.github.com/users/samrasiddiqui/gists{/gist_id}","starred_url":"https://api.github.com/users/samrasiddiqui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samrasiddiqui/subscriptions","organizations_url":"https://api.github.com/users/samrasiddiqui/orgs","repos_url":"https://api.github.com/users/samrasiddiqui/repos","events_url":"https://api.github.com/users/samrasiddiqui/events{/privacy}","received_events_url":"https://api.github.com/users/samrasiddiqui/received_events","type":"User","site_admin":false},"created_at":"2015-09-04T06:35:48Z","updated_at":"2015-09-04T06:35:48Z","body":"I have the same version and OS but when i try to connect Visual studio( Opencv) with Matlab, I am getting error \r\nLINK : error LNK2001: unresolved external symbol mexFunction\r\nmain.lib : fatal error LNK1120: 1 unresolved externals\r\nI don't know what to do. Please help.\r\nWhen I run !setup command in matlab, the output is\r\njava.lang.NoClassDefFoundError: com/mathworks/professionalinstaller/Launcher \r\nCaused by: java.lang.ClassNotFoundException: com.mathworks.professionalinstaller.Launcher \r\n\tat java.net.URLClassLoader$1.run(Unknown Source) \r\n\tat java.net.URLClassLoader$1.run(Unknown Source) \r\n\tat java.security.AccessController.doPrivileged(Native Method) \r\n\tat java.net.URLClassLoader.findClass(Unknown Source) \r\n\tat java.lang.ClassLoader.loadClass(Unknown Source) \r\n\tat sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) \r\n\tat java.lang.ClassLoader.loadClass(Unknown Source) \r\n"}}