Problem with model that use LCC Compiler (need of MinGW)

14 次查看(过去 30 天)
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

采纳的回答

Divyanshu
Divyanshu 2023-11-22
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 个评论
Jonathan Dela
Jonathan Dela 2023-11-26
Thank you for the anwser.
Is there a possiblity how i can do it? I'm not familiar with the porblem and also not an expert in Matlab.
Are there any links that shows me some step that i can follow?
Divyanshu
Divyanshu 2023-12-7
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:

请先登录,再进行评论。

更多回答(0 个)

产品


版本

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by