How do I compile mex with own toolchain?
Mostra commenti meno recenti
Hello,
My configuration is the following:
Matlab R2020b with toolboxes Simulink, Malab coder, Stateflow, Simulink Coder and Embedded Coder.
I have external manual code library that I want to compile. I want to compile it with my own toolchain that is the qnx 6.5 tooclhain to create a mex library that I can use.
But I have followed all tutorials and still can't understand how to use my own toolchain.
The library I want to mex is called "common". If I don't have mingw64 installed and I type this line
mex -v -IC:/QNX650/target/qnx6/usr/include common.c
--> I have the following error:
Error using mex
No supported compiler was found. You can install the freely available MinGW-w64 C/C++ compiler; see Install MinGW-w64 Compiler. For more options, visit
https://www.mathworks.com/support/compilers.
If I have mingw64 and do the same command, it doesn't work because it has a lot of conflicting types between my toolchain QNX and the mingw64 toolchain (see attached file for all errors)
So my question is simple (but maybe the answer is not):
how can I use only my own toolchain to compile my "common" library?
I don't have for qnx a file like intel_tc.m
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su ARM Cortex-A Processors in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!