MATLAB Answers

How to solve the porblem "Failed to generate all binary outputs"

30 views (last 30 days)
Yichen Shao
Yichen Shao on 29 Oct 2019
Answered: Urmila Rajpurohith on 31 Mar 2021
I have copyed my model to another Computer, but when I build the model, it always occurs:
Error(s) encountered while building "rtwshared": ### Failed to generate all binary outputs
The total Diagnost Viewer like this:
Building flightController
2
Elapsed: 3 sec
### Checking the status of model reference code generation target for model 'flightController' used in 'flightControlSystem' ### Checking for structural changes in flightController because the model reference rebuild option is set to 'If any changes detected'. Structural changes cause the model reference code generation target to be rebuilt. ### Starting build procedure for model: flightController ### Generating code and artifacts to 'Model specific' folder structure
Code Generation
1
Elapsed: 1 sec
### Code for the model reference code generation target for model flightController is up to date because no functional changes were found in the referenced model.
Building stateEstimator
2
Elapsed: 4 sec
### Checking the status of model reference code generation target for model 'stateEstimator' used in 'flightControlSystem' ### Checking for structural changes in stateEstimator because the model reference rebuild option is set to 'If any changes detected'. Structural changes cause the model reference code generation target to be rebuilt. ### Starting build procedure for model: stateEstimator ### Generating code and artifacts to 'Model specific' folder structure
Code Generation
1
Elapsed: 3 sec
### Code for the model reference code generation target for model stateEstimator is up to date because no functional changes were found in the referenced model.
### Starting build procedure for model: flightControlSystem ### Generating code and artifacts to 'Model specific' folder structure
Code Generation
1
Elapsed: 23 sec
### Generating code into build folder: C:\Users\Charlotte\MATLAB\Projects\asbQuadcopter(SHAO)\work\flightControlSystem_ert_rtw ### Invoking Target Language Compiler on flightControlSystem.rtw ### Using System Target File: D:\Matlab\rtw\c\ert\ert.tlc ### Loading TLC function libraries ### Generating TLC interface API for custom data . ### Initial pass through model to cache user defined code ### Caching model source code ............................................................................... ....................................... ### Writing header file flightControlSystem_types.h ### Writing header file flightControlSystem.h ### Writing source file flightControlSystem.c ### Writing header file flightControlSystem_private.h ### Writing source file flightControlSystem_data.c . ### Writing header file rtmodel.h ### Writing source file ert_main.c ### TLC code generation complete. ### Evaluating PostCodeGenCommand specified in the model ### Using toolchain: Sourcery G++ Lite GNU Toolchain for Drones ### 'C:\Users\Charlotte\MATLAB\Projects\asbQuadcopter(SHAO)\work\slprj\ert\_sharedutils\rtwshared.mk' is up to date ### Building 'rtwshared': "D:\Matlab\bin\win64\gmake" -f rtwshared.mk all C:\Users\Charlotte\MATLAB\Projects\asbQuadcopter(SHAO)\work\slprj\ert\_sharedutils>cd . C:\Users\Charlotte\MATLAB\Projects\asbQuadcopter(SHAO)\work\slprj\ert\_sharedutils>if "" == "" ("D:\Matlab\bin\win64\gmake" -f rtwshared.mk all ) else ("D:\Matlab\bin\win64\gmake" -f rtwshared.mk ) gmake: *** No rule to make target `C:/Users/ys1909s/MATLAB/Projects/examples/asbQuadcopter(SHAO)/work/slprj/ert/_sharedutils/rtGetInf.c', needed by `rtGetInf.o'. Stop. C:\Users\Charlotte\MATLAB\Projects\asbQuadcopter(SHAO)\work\slprj\ert\_sharedutils>echo The make command returned an error of 2 The make command returned an error of 2 C:\Users\Charlotte\MATLAB\Projects\asbQuadcopter(SHAO)\work\slprj\ert\_sharedutils>exit 1 ### Creating HTML report file flightControlSystem_codegen_rpt.html
### Build procedure for model: 'flightControlSystem' aborted due to an error.
Error(s) encountered while building "rtwshared": ### Failed to generate all binary outputs.
Can anyone solve this porblem?? Thanks
  2 Comments
ali sür
ali sür on 28 Oct 2020
Hi. I am having the same problem. Did you find the solution ?

Sign in to comment.

Answers (2)

Jonas Franz
Jonas Franz on 13 Nov 2020
Hello,
I had the error:
Error(s) encountered while building "conversionYUV_rtwlib":
### Failed to generate all binary outputs.
Before the error occurred I changed the name of folder. I guess you have the same problem with your path.
Because your old path was:
C:/Users/ys1909s/MATLAB/Projects/examples/asbQuadcopter(SHAO)/
as you can see in the error log after *** No rule to make target
but your new path is:
C:\Users\Charlotte\MATLAB\Projects\asbQuadcopter(SHAO)\
It seems this causes an error.
Changing the path back solved the problem for me.

Community Treasure Hunt

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

Start Hunting!

Translated by