Why do I need to add some addtitional files for the generated c code like "libmwbwpackctbb.h"?
1 view (last 30 days)
Show older comments
Abdullah on 21 Apr 2015
Answered: Ashish Uthama on 23 Apr 2015
I have a function which includes some image processing functions like imopen and imdilate. When I generate the cpp code with matlab coder, it generates the code without an error. However In the cpp files it needs some additional header files such as
"libmwbwpackctbb.h" "libmwbwunpackctbb.h" "libmwmorphop_flat_tbb.h" "libmwmorphop_packed.h" .
I know that these *.h files are in the "extern" folder of Matlab. Why Matlab does not add these files next to the generated cpp and h files automatically?
Also when I add those h files manually my cpp project compiles the code but while running the code it needs some additional libraries to run the generated cpp functions which includes imopen and imdilate functions. So it returns errors.
I couldnt find any logical answer/guide in the matlab's help page for this issue.
If I want to run the generated code in a Linux machine, I can not use the lib files that are in the "extern" folder of matlab. I need *.a files? Where do I get the *.a files for the generated cpp code of image processing functions?
Find more on MATLAB 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!