Aerospace Blockset Interface for Unreal Engine sample project compilation error

Platform: Windows 11, Engine version: Unreal Engine 5.4.0 source, Matlab version: R2026a
I'm following https://www.mathworks.com/help/releases/R2026a/aeroblks/install-support-package-and-configure-environment.html instructions, copied example sim3d project, copied MathWorks plugins to Engine\Plugins\Marketplace\MathWorks and Cesium plugin to Engine\Plugins\Marketplace\CesiumForUnreal. After that I cannot compile UE and having such warnings and errors as:
11>MathWorksRaytracing.Build.cs: Warning : Referenced directory 'D:\Programs\Matlab\toolbox\shared\ray_intersect\export\include' does not exist.
11>MathWorksRaytracing.Build.cs: Warning : Referenced directory 'D:\Programs\Matlab\toolbox\shared\ray_path_geometry\export\include' does not exist.
11>MathWorksRaytracing.Build.cs: Warning : Referenced directory 'D:\Programs\Matlab\toolbox\shared\sensorsim_core\export\include' does not exist.
11>MathWorksUAV.Build.cs: Warning : Referenced directory 'D:\Work\UnrealEngine-5.4.0\Engine\Source\MathWorksSimulation' does not exist.
11>Module.MathWorksAerospace.cpp.obj: Error LNK2019 : unresolved external symbol "public: __cdecl UAircraftAnimInst::UAircraftAnimInst(class FObjectInitializer const &)" (??0UAircraftAnimInst@@QEAA@AEBVFObjectInitializer@@@Z) referenced in function "void __cdecl InternalConstructor<class UAircraftAnimInst>(class FObjectInitializer const &)" (??$InternalConstructor@VUAircraftAnimInst@@@@YAXAEBVFObjectInitializer@@@Z)
11>Module.MathWorksAerospace.cpp.obj: Error LNK2019 : unresolved external symbol "public: __cdecl UAirTransportAnimInst::UAirTransportAnimInst(class FObjectInitializer const &)" (??0UAirTransportAnimInst@@QEAA@AEBVFObjectInitializer@@@Z) referenced in function "void __cdecl InternalConstructor<class UAirTransportAnimInst>(class FObjectInitializer const &)" (??$InternalConstructor@VUAirTransportAnimInst@@@@YAXAEBVFObjectInitializer@@@Z)
11>Module.MathWorksAerospace.cpp.obj: Error LNK2019 : unresolved external symbol "public: __cdecl UCubeSatAnimInst::UCubeSatAnimInst(class FObjectInitializer const &)" (??0UCubeSatAnimInst@@QEAA@AEBVFObjectInitializer@@@Z) referenced in function "void __cdecl InternalConstructor<class UCubeSatAnimInst>(class FObjectInitializer const &)" (??$InternalConstructor@VUCubeSatAnimInst@@@@YAXAEBVFObjectInitializer@@@Z)
11>Module.MathWorksAerospace.cpp.obj: Error LNK2019 : unresolved external symbol "public: __cdecl UGeneralAviationAnimInst::UGeneralAviationAnimInst(class FObjectInitializer const &)" (??0UGeneralAviationAnimInst@@QEAA@AEBVFObjectInitializer@@@Z) referenced in function "void __cdecl InternalConstructor<class UGeneralAviationAnimInst>(class FObjectInitializer const &)" (??$InternalConstructor@VUGeneralAviationAnimInst@@@@YAXAEBVFObjectInitializer@@@Z)
11>Utilities.h(6): Error C1083 : Cannot open include file: 'sensorsim_core/Vector3.hpp': No such file or directory
How can I resolve these issues?

回答(1 个)

Hello,
I analyzed the Unreal Engine (UE 5.4 source build) compilation errors encountered after configuring the MATLAB R2026a support package environment.
The Unreal Engine build seems fail due to missing MATLAB shared include directories (e.g., sensorsim_core) and absent MathWorksSimulation source module, leading to unresolved dependencies.
Additionally, linker errors (LNK2019) occur for animation classes (e.g., UAircraftAnimInst) due to incomplete or incorrect plugin/setup configuration within the Unreal Engine environment.
These could be the possible cause:
1. Incomplete MATLAB Support Package Installation
The missing directories:
sensorsim_core\export\include
ray_intersect\export\include
ray_path_geometry\export\include
indicate that required shared components from MATLAB are not present.
These folders are part of the Simulink 3D/relevant interface support packages and are required by Unreal plugins referencing MATLAB shared libraries. Install Support Package and Configure Environment - MATLAB & Simulink
2. Incorrect Plugin Setup (Manual Copy Issue)
The plugins were manually copied into:
Engine\Plugins\Marketplace\MathWorks
However, the documented workflow requires using MATLAB utilities to automatically copy and configure both:
  • Unreal project files
  • Plugin binaries
instead of this use:
sim3d.utils.copyExampleSim3dProject
This ensures correct plugin versions, proper folder structure, and dependency consistency. Install Support Package and Configure Environment - MATLAB & Simulink, Install Support Package and Configure Environment - MATLAB & Simulink
3. Missing/Incomplete MathWorksSimulation Module
The error:
Engine\Source\MathWorksSimulation does not exist
indicates that Unreal is expecting a source-backed integration that has not been correctly set up.
This leads to unresolved symbol errors, as animation classes (e.g., UAircraftAnimInst) are implemented in these modules.
4. Mixed Plugin Configuration (Aerospace + UAV + Raytracing)
The build logs show Unreal attempting to compile Aerospace modules, UAV modules and Ray tracing modules.
This is not a minimal supported configuration and can result in missing dependencies and conflicting module expectations. Install Support Package for Customizing Scenes - MATLAB & Simulink, Install Support Package and Configure Environment - MATLAB & Simulink
Hope this helps.

类别

帮助中心File Exchange 中查找有关 Aerospace Scenarios 的更多信息

提问:

2026-6-10,13:22

回答:

2026-6-16,10:49

Community Treasure Hunt

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

Start Hunting!

Translated by