Saturday, September 15, 2012

How to compile 3d party mex file in MacOSX 8 (mount lion)

Once you downloaded some .cpp files from 3rd party group, the urgency of testing on new code makes you attempt to compile them asap. However, you may meet the following error message:


/Applications/MATLAB_R2012a.app/bin/mex: line 305: gcc-4.2: command not found
/Applications/MATLAB_R2012a.app/bin/mex: line 1326: g++-4.2: command not found

This is because your matlab haven't been able to co-work with XCode installed on your machine. 

I founding the following solutions from Mathworks.com, it should be official and, it does work, at least on my machine. 

Cheers, and wish you guys good luck. :) 


http://www.mathworks.com/support/solutions/en/data/1-FR6LXJ/

No comments:

Post a Comment

prettify