Error using C Coder with Image Manipulation toolbox function

I'm trying to use the C coder to convert a function built into the image manipulation toolbox (edge). However, when i try to compile, I get the following error.
The library method 'images.internal.coder.buildable.IppfilterBuildable.updateBuildInfo' failed.
Caused by: Image Processing Toolbox does not support compiler. Run mex -setup to select a supported compiler
I tried running mex -setup. but it says there are no supported compilers.
So I installed Microsoft Windows SDK 8.1. but I'm still not able to compile. I'm not even seeing this in the list of supported compiler configurations for mex.
Is there anything else I can do to get around this?

 Respuesta aceptada

Walter Roberson
Walter Roberson el 18 de Mayo de 2015
Have a look at http://www.mathworks.com/help/simulink/ug/functions-supported-for-code-generation--alphabetical-list.html and scan down to the notes for limitations on compiling edge()
You will need an earlier SDK for your MATLAB version. The exact release of SDK is going to depend upon which MATLAB version you are using, but generally speaking SDK 7.1 has been good for the last several releases. The list of supported compilers is here for R2015a; if you have an earlier release than look to the left where you can click to select "Previous releases"

5 comentarios

Thanks for the response, Walter. Yes, i did try installing SDK 7.1 but that gave me an error. when i looked it up online, it recommended i should use the 8.1 SDK since my OS is Win 8.1.
Read the list here. Notice SDK 8.1 is not mentioned anywhere there. SDK 8.1 is not supported for any MATLAB version yet released.
What error do you get when you use SDK 7.1? Which MATLAB release are you using, and are you using the 32 bit or 64 bit version for MS Windows?
Sorry in the delay replying to your comment. I didnt get an email that you had replied.
Yes, i tried win 7.1 via the web installer. I wasn't able to find out what the cause of the error was. I'm going to give the ISO install a try and see if that helps.
In the meantime, I was able to run this on a linux machine and generate code using gcc. So atleast I have some code to work with now.
However, I am looking to run this code on an embedded platform, specifically the STM32 series of boards. http://www.mathworks.com/hardware-support/stmicroelectronics.html .I see that compiling to this platform is supported via the C Coder, but I'm not sure how I can get the coder to generate this. Do i have to download something for matlab or do i have to link matlab to a compiler that supports generating code for these processors.
Sorry, I cannot look at the documentation for Embedded Coder as I do not have a license for it or an active support contract.
No worries. I'll do my best to find out about it online. Thank you for your help so far!

Iniciar sesión para comentar.

Más respuestas (0)

Preguntada:

el 18 de Mayo de 2015

Comentada:

el 22 de Mayo de 2015

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by