Monday, May 5, 2014

Setting up MEX code building in Visual Studio 2010

1. Go to dreamsparks and download visual studio 2010. This is important as it gives proper support for the creation of MEX support provided by this guy:

http://www.mathworks.se/matlabcentral/fileexchange/39549-visual-studio-toolbar-for-mex-interface-with-video-tutorial

He says :
Automatically sets up debugging and running of MEX files from Visual Studio.
There is now a visual studio extension (simple click plugin type of install):
http://islab.hh.se/mediawiki/images/b/b0/VSMEX1.0.zipThe old type of Macros (that are not supported in newer versions of Visual Studio) are kept in the same zip file.
Video tutorial on my page:
http://islab.hh.se/mediawiki/index.php/Stefan_Karlsson/PersonalPage/mex_VS_tutorialOn youtube:
http://www.youtube.com/watch?v=JKDlPQZQqHk
2. Sln files are visual studio project files.
3. make sure the mex.h doesnt have a "squiggly" red line under it! Goto tools / options and matlab tab to setup the path for matlab.exe. 

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.