Errors while linking unreal engine to matlab
이 질문을 팔로우합니다.
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다.
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다.
오류 발생
페이지가 변경되었기 때문에 동작을 완료할 수 없습니다. 업데이트된 상태를 보려면 페이지를 다시 불러오십시오.
이전 댓글 표시
0 개 추천
Unreal Engine: 5.1.1
Matlab Release: R2024a
I am trying to make a custom scene in unreal engine, for that I installed Aerospace Toolbox Unreal ENgine Interface, after installing, when I try to opne the editor using
`editor.open()'
I get following message:

I tried to build it through IDE but it gave me the following error:

I need help resolving this issue.
채택된 답변
Nishan Nekoo
2024년 9월 13일
Hi Ketan,
I believe this error regarding the MathWorks Geospatial plugin is suggesting that you have not installed CesiumForUnreal, which is necessary when using the Aerospace Blockset interface to Unreal Engine.
Please see the instructions here: https://www.mathworks.com/help/releases/R2024a/aeroblks/customize-scenes-using-simulink-and-unreal-editor.html#mw_eb8c5423-28f3-4a9c-8f64-5b23ad45efe4
Please note the specific version of CesiumForUnreal needed for your version of MATLAB and please place the CesiumForUnreal plugin folder in the \UE_5.1\Engine\Plugins\Marketplace directory.
Regarding the first error, are you upgrading from an older version of MATLAB or are you installing these plugins for the first time?
Let me know if installing the Cesium plugin works for you to resolve the IDE build!
Nishan
댓글 수: 16
Hey Nishan,
I already have CesiumforUnreal v1.20.1-ue5 Installed and I am able to open projects with it.
I am installing MATLAB plugins for the first time.
Hi Ketan,
Gotcha, sorry if that wasn't the issue. Do you have different versions of Unreal Engine installed? E.g. 4.27, etc?
Would you be able to ensure that the default editor being opened is 5.1 instead of any older version? I believe people have sporadically run into issues before when an older version of Unreal is installed, I wonder if you can uninstall any older versions of Unreal and try again with a fresh install of the support package.
Could you share the log file located in "<UE5Project>/Saved/Logs/<UE5Project>.log"?
Nishan
Ketan
2024년 9월 16일
Sure, Here is the log file:
Nishan Nekoo
2024년 9월 16일
편집: Nishan Nekoo
2024년 9월 16일
Ketan, when you downloaded the plugin, did you follow the instructions to run the "sim3d.utils.copyExampleSim3dProject" function: https://www.mathworks.com/help/releases/R2024a/aeroblks/install-support-package-and-configure-environment.html#mw_9625caa4-f1a9-422c-b2c2-7a75a633c803
This step is necessary to ensure the plugins are placed correctly in the Unreal Engine installation folder. Can you try the above and see if you can open that project that you create via editor.open()?
Hey Nishan, That is the first thing I tried after installing the Unreal Engine Interface.
I tried it again, same error. Sharing the log.
Can you verify that the MathWorksSimulation plugin is at the following directory?
C:\Program Files\Epic Games\UE_5.1\Engine\Plugins\Marketplace\MathWorks\MathWorksSimulation
Did you install Unreal Engine in an external directory instead of the above default?
Ketan
2024년 9월 16일
The MathWorksSimulation plugin is at the following director:
"E:\UE_5.1\Engine\Plugins\Marketplace\MathWorks\mw_simulation\MathWorksSimulation"
Thanks for confirming that Ketan.
Can you verify the existence of the "AutoVrtlEnv.uproject" and the plugins in the ProgramData directory too? This is usually under: "C:\ProgramData\MATLAB\SupportPackages\R2024a\toolbox\shared\sim3dprojects\spkg"
I suspect the issue may be related to the fact that your UE installation is in the E: drive instead of C: drive. The API is configured to copy the plugins around the system under the C: drive by default. Did you specify the PluginDestination argument to tell the API that your UE installation is under the E: drive?
Do you happen to have an Unreal Engine installation in your C drive as well or is it only in the E drive?
1.) Directory "C:\ProgramData\MATLAB\SupportPackages\R2024a\toolbox\shared\sim3dprojects\spkg" exists
2.) I think I missed the step of specifying PluginDestination.
but after I do that, it shows the following error.
>> sim3d.utils.copyExampleSim3dProject("E:\UnrealProjects\");
Error using sim3d.utils.copyExampleSim3dProject
Directory 'C:\Program Files\Epic Games\UE_5.1\Engine\Plugins\Marketplace\MathWorks' already exists.
Error in sim3d.utils.copyExampleSim3dProject
Turns out, the plugins are present in side the 'C:\Program Files\Epic Games\UE_5.1\Engine\Plugins\Marketplace\MathWorks' directory
I tried manually copying them from that folder to my UE installation/plugin/marketplace/MathWorks/
doing this gives me a new error:

Ketan
2024년 9월 17일
Update; Now, If I open the projects from Scene 3D Configuration block, The UE editor launches without any errors. But If I directly open the project and enable mathwork plugins, it throws the same error.
Hi Ketan,
This is expected behavior that is documented here - once you enable the MathWorks Simulation plugin, the Unreal Engine project can only be opened via MATLAB or Simulink. If you don't plan on working in both environments together very often, you can disable the plugins and re-enable them as necessary when doing co-simulation.
Apologies for this inconvenience and I'm glad everything is working now!
Nishan
Ketan
2024년 9월 18일
Thank you!! I appreciate your assistance.
@Nishan Nekoo Is it possible to an build executable for Linux from UE and matlab on windows.
I tried doing it, but I got the following error:
Missing precompiled manifest for 'MathWorksAerospace', 'E:\UE_5.1\Engine\Plugins\Marketplace\MathWorks\MathWorksSimulation\Intermediate\Build\Linux\B4D820EA\UnrealGame\Development\MathWorksAerospace\MathWorksAerospace.precompiled'
could you please point me to the documentation which can guide be for the same.
Hi Ketan, I believe this should be possible.
Please follow the instructions here but select Linux instead of Windows: https://www.mathworks.com/help/aeroblks/package-custom-scenes-into-executable.html
Let me know if you still run into issues after following the instructions on that page.
Nishan
Hey Nishan,
I am sure I've followed those steps, yet I am getting the same error;
Errors:
Library 'E:\MATLAB\R2024a\bin\glnxa64\libmwshared_sim3d_io.so' was not resolvable to a file when used in Module 'MathWorksSimulation'
Missing precompiled manifest for 'MathWorksAerospace', 'E:\UE_5.1\Engine\Plugins\Marketplace\MathWorks\MathWorksSimulation\Intermediate\Build\Linux\B4D820EA\UnrealGame\Development\MathWorksAerospace\MathWorksAerospace.precompiled'. This module was most likely not flagged for being included in a precompiled build - set 'PrecompileForTargets = PrecompileTargetsType.Any;' in MathWorksAerospace.build.cs to override. If part of a plugin, also check if its 'Type' is correct.
Attaching the log for reference.
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Simulink 3D Animation에 대해 자세히 알아보기
태그
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
