How to configure MATLAB to use the current version of MinGW when building a vehicle using the Virtual Vehicle Composer in MATLAB R2024a
I have three MATLAB releases installed: MATLAB R2017a, MATLAB R2020b, and MATLAB R2024a. When trying to build a vehicle with all default parameters using Virtual Vehicle Composer in MATLAB R2024a, I receive the following error message:
Build/run a model from virtual vehicle composer, ran into the following error:
### Searching for referenced models in model ‘ConfiguredVirtualVehicleModel’.
### Found 10 model references to update.
### Starting serial model reference simulation build.
‘"C:PROGRA~3MATLABSUPPOR~1R2017a3P778C~1.INSMINGW_~1.INSbinmingw32-make.exe"’ is not recognized as an internal or external command,
operable program or batch file.
The make command returned an error of 9009
### Build procedure for BMSBalancingLogic aborted due to an error.
It seems like the program tries to call "make" from the the MATLAB R2017a installation. I also check the mex setup in MATLAB R2024a by running the following command, and the returned result shows it is configured to use MinGW64 Compiler (C).
>> mex -setup
MEX configured to use ‘MinGW64 Compiler (C)’ for C language compilation.
To choose a different C compiler, select one from the following:
MinGW64 Compiler (C) mex -setup:C:Users<username>AppDataRoamingMathWorksMATLABR2024amex_C_win64.xml C
Microsoft Visual C++ 2022 (C) mex -setup:’C:Program FilesMATLABR2024abinwin64mexoptsmsvc2022.xml’ C
How can I resolve this issue?I have three MATLAB releases installed: MATLAB R2017a, MATLAB R2020b, and MATLAB R2024a. When trying to build a vehicle with all default parameters using Virtual Vehicle Composer in MATLAB R2024a, I receive the following error message:
Build/run a model from virtual vehicle composer, ran into the following error:
### Searching for referenced models in model ‘ConfiguredVirtualVehicleModel’.
### Found 10 model references to update.
### Starting serial model reference simulation build.
‘"C:PROGRA~3MATLABSUPPOR~1R2017a3P778C~1.INSMINGW_~1.INSbinmingw32-make.exe"’ is not recognized as an internal or external command,
operable program or batch file.
The make command returned an error of 9009
### Build procedure for BMSBalancingLogic aborted due to an error.
It seems like the program tries to call "make" from the the MATLAB R2017a installation. I also check the mex setup in MATLAB R2024a by running the following command, and the returned result shows it is configured to use MinGW64 Compiler (C).
>> mex -setup
MEX configured to use ‘MinGW64 Compiler (C)’ for C language compilation.
To choose a different C compiler, select one from the following:
MinGW64 Compiler (C) mex -setup:C:Users<username>AppDataRoamingMathWorksMATLABR2024amex_C_win64.xml C
Microsoft Visual C++ 2022 (C) mex -setup:’C:Program FilesMATLABR2024abinwin64mexoptsmsvc2022.xml’ C
How can I resolve this issue? I have three MATLAB releases installed: MATLAB R2017a, MATLAB R2020b, and MATLAB R2024a. When trying to build a vehicle with all default parameters using Virtual Vehicle Composer in MATLAB R2024a, I receive the following error message:
Build/run a model from virtual vehicle composer, ran into the following error:
### Searching for referenced models in model ‘ConfiguredVirtualVehicleModel’.
### Found 10 model references to update.
### Starting serial model reference simulation build.
‘"C:PROGRA~3MATLABSUPPOR~1R2017a3P778C~1.INSMINGW_~1.INSbinmingw32-make.exe"’ is not recognized as an internal or external command,
operable program or batch file.
The make command returned an error of 9009
### Build procedure for BMSBalancingLogic aborted due to an error.
It seems like the program tries to call "make" from the the MATLAB R2017a installation. I also check the mex setup in MATLAB R2024a by running the following command, and the returned result shows it is configured to use MinGW64 Compiler (C).
>> mex -setup
MEX configured to use ‘MinGW64 Compiler (C)’ for C language compilation.
To choose a different C compiler, select one from the following:
MinGW64 Compiler (C) mex -setup:C:Users<username>AppDataRoamingMathWorksMATLABR2024amex_C_win64.xml C
Microsoft Visual C++ 2022 (C) mex -setup:’C:Program FilesMATLABR2024abinwin64mexoptsmsvc2022.xml’ C
How can I resolve this issue? virtualvehiclecomposer MATLAB Answers — New Questions