Problem with model that use LCC Compiler (need of MinGW)
22 views (last 30 days)
Show older comments
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
0 Comments
Accepted Answer
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
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:
More Answers (0)
See Also
Categories
Find more on MATLAB Support for MinGW-w64 C/C++ Compiler in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!