R2006a 64-Bit / VC++ 2010 SDK 7.1 / Simulink / Embedded Matlab Fcn make error: lccmake
Show older comments
I have a simple Simulink model with an Embedded Matlab Function block that gives me the following Make error:
'"c:\program files\matlab\r2006a\sys\lcc\bin\lccmake"' is not recognized as an internal or external command, operable program or batch file.
I'm running R2006a 64-Bit with VC++ 2010 Express and SDK 7.1 installed. 'mex -setup' has been configured to work with VC++. I can mex c files from the command line without errors.
How do I get the Embedded Matlab Function to recognize that VC++ is the compiler, not lccmake? Is there something else I have to do other than 'mex -setup'?
----------------
Alternatively, all I'm trying to do is break out a single precision float to four bytes in Simulink. It can be done from the command line with typecast(x,'uint8'). If there's a Simulink function block that does this then I'll just use that instead of an Embedded Matlab Function block.
Answers (2)
Kaustubha Govind
on 1 Feb 2012
0 votes
Perhaps Simulink is using a stale Makefile that was generated with another version of MATLAB into the same folder? See if there is an existing 'slprj' directory and delete it, so that it is regenerated again.
Ken Atwell
on 1 Feb 2012
0 votes
Are you sure you are using 64-bit R2006a with the 7.1 SDK? I ask because 6a pre-dates this SDK by a number of years, and 6a does not support it. I would be surprised to learn that "mex -setup" acknowledged this SDK at all.
See http://www.mathworks.com/support/compilers/1601_72.html for historical supported compiler information for R2006a. Visual C++ 2005 (with 64-bit tools support) is your most realistic option.
4 Comments
Rich
on 2 Feb 2012
Walter Roberson
on 2 Feb 2012
Right. But as Ken points out, that compiler is too new for your MATLAB version, and so compilations fail.
Rich
on 6 Feb 2012
Walter Roberson
on 6 Feb 2012
The bat file that calls lcc is part of the compilation process.
You could, as Ken notes, install Visual C++ 2005 with SDK 6.x and that should work (in theory)
Categories
Find more on Simulink Coder in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!