Problem with model that use LCC Compiler (need of MinGW)
37 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Jonathan Dela
el 15 de Nov. de 2023
Comentada: Divyanshu
el 7 de Dic. de 2023
So I got an example model from mathworks and I'm currently running my matlab in 2023b.
I got a problem with the model, it says that I need an MinGW. I got it from the Add-ons but it still gives me struggles.
The error says:
Problem creating Accelerator MEX file for model 'HybridElectricSource'. To see the build output, use set_param('HybridElectricSource','AccelVerboseBuild','on')
Caused by:
- Build process is unable to use the lcc compiler because the build folder, D:\My Document\...\HybridElectricSource\slprj\accel\HybridElectricSource,contains a space and 8dot3 support is not enabled. Select the Microsoft or Intel compiler or enable 8dot3 support. For more information, see Build Process Support for Folder Names with Spaces or Special Characters.
Can somebody help me with this problem? I try to get this model for a case study about fixed wing UAV using FC and a Battery.
King regards![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1540242/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1540242/image.png)
0 comentarios
Respuesta aceptada
Divyanshu
el 22 de Nov. de 2023
Hi Jonathan,
I understand that you are facing an issue of build failure when simulating the example model of 'HybridElectricSource'.
A possible reason for the failure is spaces being present in the folder structure where model is present. Because the MinGW compiler fails in directories with spaces in names unless the 8dot3 support is not enabled.
Possible workaround is to rename the directories to remove the space and then try rebuilding the model. Else enable the 8dot3 Naming support in the system.
2 comentarios
Divyanshu
el 7 de Dic. de 2023
Hi, remove any extra spaces from the path to the model, specifically from the names of directories.
Also you can refer the following documentation which provides the instructions to enable or disable the naming system:
Más respuestas (0)
Ver también
Categorías
Más información sobre MATLAB Support for MinGW-w64 C/C++ Compiler en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!