Clear Filters
Clear Filters

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

37 views (last 30 days)
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

Accepted Answer

Divyanshu
Divyanshu on 22 Nov 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 Comments
Jonathan Dela
Jonathan Dela on 26 Nov 2023
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 on 7 Dec 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:

Sign in to comment.

More Answers (0)

Products


Release

R2023b

Community Treasure Hunt

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

Start Hunting!