Menu
Blog moved to https://alihazrat.medium.com
It basically requires compiler configuration on Matlab.
1) The following link was used to download a small zip file, which contained few important small files, which are to be copied to the Matlab directory. i.e. the directory C:\Program Files\MATLAB\R2009b\bin\win32\mexopts http://smallideasforabigworld.blogspot.co.uk/2011/03/configure-matlab-to-use-visual-2010-cc.html 2) Here is good video tutorial on installation of libSVM on Matlab https://www.youtube.com/watch?v=Wz_4h_bH7-c Brief Summary; Following the README file in the matlab directory within the libsvm-3.17 folder, if I type mex –setup in Matlab command window, it should give me the options for various compiler. I need the compiler Microsoft Visual C++ 2010, but it is not contained in the list displayed after mex –setup command. So, what should I do? The video describes to visit the mathwork (Support and Compiler page) page for downloading the required supported compiler. However, there is no compiler support on mathwork for Microsoft Visual C++2010 for my version of Matlab i.e. R2009b. Of course, for R2010a, the required compiler support is available on the Support and Compiler page. So, to solve this, download the zip file for the blog (given above ) and paste the contents into the Matlab directory, as mentioned step 1. Now, when you run the command mex –setup, the Microsoft Visual C++2010 compiler will be available in the list. Select it, and go ahead. While running the make.m file, error is generated, and the file is not run successfully. Usually, it is due to the reason the path has not been added to Matlab path. So, add the path for the make.m file before running it. And after running make.m , the svmpredict.mexw32, svmtrain.mexw32, libsvmwrite.mexw32 and libsvmread.mexw32 files are generated. Troubleshooting: Running the mex –setup may not work, if the Microsoft SDK and the Microsoft Visual C++ compiler are not installed on your computer. I had issues with installation of Microsoft SDK, as it was failing. I followed the following and it worked. http://www.mathworks.com/matlabcentral/answers/95039. In summary; uninstall the Microsoft Visual C++ 2010 express, if it is installed. Remove the x86 and x64 redistribuable packages, then, install the SDK, followed by installation of x86 and x64 redistribuable packages, and then install the Microsoft Visual C++ 2010. If the above doesn’t work for you, then, there is possibly some other issue. Try following this; http://notepad.patheticcockroach.com/1666/installing-visual-c-2010-and-windows-sdk-for-windows-7-offline-installer-and-installation-troubleshooting/ Cheers
0 Comments
|
Hazrat Ali
Hazrat Ali is Assistant Professor at Department of Electrical Engineering, COMSATS University Islamabad, Abbottabad Campus, Abbottabad Pakistan. Archives
October 2020
Categories |