Matlab Coder: Build Failed: The system cannot find the path specified.
Mostrar comentarios más antiguos
I am attempting to build a very basic MEX file from an existing m-file to test the Matlab to C functionality.
I have been unable to move beyond this error.
Originally I presumed the system could not find the path specified because the Matlab files were in a folder structure that contained spaces in the folder names.
To kill 2 birds I downloaded the updated, current version of Matlab and installed Matlab in a directory structure containing no spaces in the folder names.
Much to my dismay, I have attempted the MEX file generation and am still receiving exactly the same error.
The most troubling aspect is that Matlab does not tell me EXACTLY which path it cannot find.
Also, I have manually double-checked that the folder paths in the target build log do exist.
Any assistance would be greatly appreciated! Thank you in advance!
The Matlab Coder output is below as well as the code generation report:
Coder Output: ??? Build error: Compilation returned error status code 2. See the target build log in the report for further details.
Error in ==> ComputeDistanceObjectNOW Line: 1 Column: 1 Code generation failed: Open error report.
Report: (Target Build Log)
1 lcc -c -I"C:\MATLAB\R2012a\sys\lcc\include" -DMATLAB_MEX_FILE -noregistrylookup -DMX_COMPAT_32 -DNDEBUG -I"C:\MATLAB\R2012a\extern\include" -I"C:\MATLAB\R2012a\simulink\include" -I"C:\MATLAB\R2012a\toolbox\shared\simtargets" -I"C:\MatlabCcode\codegen\mex\ComputeDistanceObjectNOW" -I"C:\MatlabCcode" "ComputeDistanceObjectNOW_initialize.c"
2 The system cannot find the path specified.
3 gmake: *** [ComputeDistanceObjectNOW_initialize.obj] Error 1
10 comentarios
Kaustubha Govind
el 3 de Ag. de 2012
You are using 32-bit MATLAB correct? Did you run "mex -setup" to choose lcc? I wonder if you could try with Visual Studio?
Kaustubha Govind
el 3 de Ag. de 2012
FYI: I removed "MATLAB Compiler" from the Products and tags categories for your question, because it is a separate product that seems to have nothing to do with this issue.
Kaustubha Govind
el 6 de Ag. de 2012
Kaustubha Govind
el 6 de Ag. de 2012
Btw, could you check your system PATH variable and see if there is an & character anywhere?
T-squared
el 7 de Ag. de 2012
Kaustubha Govind
el 8 de Ag. de 2012
T-squared: I meant for you to check the system PATH variable, not the MATLAB path variable. Could you examine that for ampersands also please? You can run "getenv PATH" to get its value in MATLAB.
T-squared
el 13 de Ag. de 2012
T-squared
el 13 de Ag. de 2012
T-squared
el 14 de Ag. de 2012
Respuesta aceptada
Más respuestas (1)
Kaustubha Govind
el 16 de Ag. de 2012
0 votos
T-squared: I'm quite stumped at this point. There might be a variety of reasons, so I would recommend contacting MathWorks Technical Support.
Categorías
Más información sobre Introduction to Installation and Licensing en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!