- See if there are any special characters in your path to the example. Please try a path that does not contain special characters.
- Try copying all the files of example to a new directory with a shorter and simpler path (for eg: C:/User/dir instead of C:/User/dir/newdir/newdir...
- In essence, use a different directory to run the example using the guidelines above.
The step response and the pathfollowing model in "shared_uav_aeroblks/UAVFidelityExample" is failing build with the medium fidelity fixedwing UAV, due to a missing file
1 view (last 30 days)
Show older comments
Hi I am trying to follow the example given on https://www.mathworks.com/help/uav/ug/transition-from-low-to-high-fidelity-uav-models.html, as I am interested in running the uavwaypoint follower algorithm with the medium fidelity model of a Fixedwing UAV. But when I try to simulate the model, the build fails due to some issues with "outer_loop_autopilot_msf.obj". The reason given is:
Model Action Rebuild Reason
================================================================================
Outer_Loop_Autopilot Failed Code generation information file does not exist.
I am pasting the entire build log below:
### Starting serial model reference simulation build
C:/PROGRA~1/MATLAB/R2021b\sys\lcc64\lcc64\bin\lcc64 -c -FoOuter_Loop_Autopilot_msf.obj -nodeclspec -c -DIS_SIM_TARGET -DMATLAB_MEX_FILE -DTID01EQ=0 -DMODEL=Outer_Loop_Autopilot -DNUMST=1 -DNCSTATES=0 -DMAT_FILE=0 -DINTEGER_CODE=0 -DONESTEPFCN=0 -DTERMFCN=1 -DHAVESTDIO -DMULTI_INSTANCE_CODE=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DMT=0 -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -DHAVESTDIO -DMDL_REF_SIM_TGT=1 -DMATLAB_DEFAULT_RELEASE=R2018a -I. -I../../../.. -IC:/Users/psinha2/Documents/MATLAB/Examples/R2021b/shared_uav_aeroblks/UAVFidelityExample -IC:/Users/psinha2/Documents/MATLAB/Examples/R2021b/shared_uav_aeroblks/UAVFidelityExample/slprj/sim/Outer_Loop_Autopilot -IC:/PROGRA~1/MATLAB/R2021b/extern/include -IC:/PROGRA~1/MATLAB/R2021b/simulink/include -IC:/PROGRA~1/MATLAB/R2021b/rtw/c/src -IC:/PROGRA~1/MATLAB/R2021b/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2021b/rtw/c/ert -IC:/Users/psinha2/Documents/MATLAB/Examples/R2021b/shared_uav_aeroblks/UAVFidelityExample/slprj/sim/_sharedutils -IC:/PROGRA~1/MATLAB/R2021b\sys\lcc64\lcc64\include64 -w -noregistrylookup -dll -Zp8 -noregistrylookup -DLCC_WIN64 C:/Users/psinha2/Documents/MATLAB/Examples/R2021b/shared_uav_aeroblks/UAVFidelityExample/slprj/sim/Outer_Loop_Autopilot/Outer_Loop_Autopilot_msf.c
C:/PROGRA~1/MATLAB/R2021b\sys\lcc64\lcc64\bin\lcc64 -c -Foc_mexapi_version.obj -nodeclspec -c -DIS_SIM_TARGET -DMATLAB_MEX_FILE -DTID01EQ=0 -DMODEL=Outer_Loop_Autopilot -DNUMST=1 -DNCSTATES=0 -DMAT_FILE=0 -DINTEGER_CODE=0 -DONESTEPFCN=0 -DTERMFCN=1 -DHAVESTDIO -DMULTI_INSTANCE_CODE=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DMT=0 -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -DHAVESTDIO -DMDL_REF_SIM_TGT=1 -DMATLAB_DEFAULT_RELEASE=R2018a -I. -I../../../.. -IC:/Users/psinha2/Documents/MATLAB/Examples/R2021b/shared_uav_aeroblks/UAVFidelityExample -IC:/Users/psinha2/Documents/MATLAB/Examples/R2021b/shared_uav_aeroblks/UAVFidelityExample/slprj/sim/Outer_Loop_Autopilot -IC:/PROGRA~1/MATLAB/R2021b/extern/include -IC:/PROGRA~1/MATLAB/R2021b/simulink/include -IC:/PROGRA~1/MATLAB/R2021b/rtw/c/src -IC:/PROGRA~1/MATLAB/R2021b/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2021b/rtw/c/ert -IC:/Users/psinha2/Documents/MATLAB/Examples/R2021b/shared_uav_aeroblks/UAVFidelityExample/slprj/sim/_sharedutils -IC:/PROGRA~1/MATLAB/R2021b\sys\lcc64\lcc64\include64 -w -noregistrylookup -dll -Zp8 -noregistrylookup -DLCC_WIN64 C:/PROGRA~1/MATLAB/R2021b/extern/version/c_mexapi_version.c
C:/PROGRA~1/MATLAB/R2021b\sys\lcc64\lcc64\bin\lcc64 -c -Folccstub.obj -nodeclspec -c -DIS_SIM_TARGET -DMATLAB_MEX_FILE -DTID01EQ=0 -DMODEL=Outer_Loop_Autopilot -DNUMST=1 -DNCSTATES=0 -DMAT_FILE=0 -DINTEGER_CODE=0 -DONESTEPFCN=0 -DTERMFCN=1 -DHAVESTDIO -DMULTI_INSTANCE_CODE=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DMT=0 -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -DHAVESTDIO -DMDL_REF_SIM_TGT=1 -DMATLAB_DEFAULT_RELEASE=R2018a -I. -I../../../.. -IC:/Users/psinha2/Documents/MATLAB/Examples/R2021b/shared_uav_aeroblks/UAVFidelityExample -IC:/Users/psinha2/Documents/MATLAB/Examples/R2021b/shared_uav_aeroblks/UAVFidelityExample/slprj/sim/Outer_Loop_Autopilot -IC:/PROGRA~1/MATLAB/R2021b/extern/include -IC:/PROGRA~1/MATLAB/R2021b/simulink/include -IC:/PROGRA~1/MATLAB/R2021b/rtw/c/src -IC:/PROGRA~1/MATLAB/R2021b/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2021b/rtw/c/ert -IC:/Users/psinha2/Documents/MATLAB/Examples/R2021b/shared_uav_aeroblks/UAVFidelityExample/slprj/sim/_sharedutils -IC:/PROGRA~1/MATLAB/R2021b\sys\lcc64\lcc64\include64 -w -noregistrylookup -dll -Zp8 -noregistrylookup -DLCC_WIN64 C:/PROGRA~1/MATLAB/R2021b/sys/lcc64/lcc64/mex/lccstub.c
C:/PROGRA~1/MATLAB/R2021b\sys\lcc64\lcc64\bin\lcclnk64 -s -LC:/PROGRA~1/MATLAB/R2021b\sys\lcc64\lcc64\lib64 -dll -entry LibMain -o ../../../../Outer_Loop_Autopilot_msf.mexw64 @Outer_Loop_Autopilot.rsp @Outer_Loop_Autopilot_ref.rsp C:/Users/psinha2/Documents/MATLAB/Examples/R2021b/shared_uav_aeroblks/UAVFidelityExample\slprj\sim\_sharedutils\rtwshared.lib -L"C:\Program Files\MATLAB\R2021b\extern\lib\win64\microsoft" libfixedpoint.lib libmwmathutil.lib libmwipp.lib libmwsl_AsyncioQueue.lib sf_runtime.lib libmwslexec_simlog.lib libmwcoder_ToAsyncQueueTgtAppSvc.lib libmwsl_simtarget_instrumentation.lib libmwsl_simtarget_core.lib libmwstringutil.lib libmx.lib libmex.lib Outer_Loop_Autopilot.def
Error outer_loop_autopilot_msf.obj: Undefined (*ABS*). Symbol .file
gmake: *** [../../../../Outer_Loop_Autopilot_msf.mexw64] Error 1
### Build procedure for Outer_Loop_Autopilot aborted due to an error.
Build Summary
Simulation targets built:
Model Action Rebuild Reason
================================================================================
Outer_Loop_Autopilot Failed Code generation information file does not exist.
0 of 1 models built (0 models already up to date)
Build duration: 0h 0m 9.437s
0 Comments
Answers (1)
Vedant Dubey
on 4 Jan 2022
Hello Priyanka,
This issue could be originating from the path at which the example exists. Here are some suggestions to try.
If you are still facing this issue, I would highly recommend reaching out to our Technical Support Team https://www.mathworks.com/support/contact_us.html.
This will help resolve your case quickly.
Kind Regards,
Vedant
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!