Azzera filtri
Azzera filtri

Failed to build model using LCC in rapid accelerator mode

23 visualizzazioni (ultimi 30 giorni)
i got the following errors when i try to run the model in Matlab.
it seems to be problem with compiler. can somebody help?
### Building the rapid accelerator target for model: model
Warning: File 'codedescriptor.dmr' not found.
Warning: File 'codedescriptor.dmr' not found.
Warning: File 'codedescriptor.dmr' not found.
Warning: File 'codedescriptor.dmr' not found.
Warning model_capi_host.c: 13 Missing prototype for 'getRootMappingInfo'
### Build procedure for model aborted due to an error.
Build Summary
Top model rapid accelerator targets built:
Model Action Rebuild Reason
=================================================================================
model Failed Code generation information file does not exist.
0 of 1 models built (0 models already up to date)
Build duration: 0h 0m 33.381s
Error using init_model
Failed to build model 'model' using LCC in rapid accelerator mode, please consider
using a different compiler instead. For details on supported compiler versions, see
https://www.mathworks.com/support/compilers/current_release
Caused by:
Error using init_model
Building host-based CAPI for 'model' failed.
Error using init_model
cpp: "d:\model\slprj\raccel\model\model_capi.c":426 compiler limit:
line too long (more than 20290 chars)
>>
  2 Commenti
Umar
Umar il 23 Lug 2024
Hi Abdullah,
To address the missing files issue, you can try the following steps:
Check if the 'codedescriptor.dmr' files are present in the expected directories.
Ensure that the paths to these files are correctly specified in your Matlab project settings.
If the files are missing, you may need to regenerate them by rebuilding the model or updating the code generation settings.
Regarding the compiler limit error, you can consider the following solutions:
Check the line in the 'model_capi.c' file that exceeds the compiler limit (more than 20290 characters) and try to refactor the code to reduce its length.
If refactoring the code is not feasible, you may need to adjust the compiler settings or use a different compiler that can handle longer lines.
I hope this answers your question.

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Modeling in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by