Packaging error of Unreal Engine project
16 次查看(过去 30 天)
显示 更早的评论
I am trying to package Unreal Engine project with the Mathworks plugin. I cannot accomplish this even with otherwise empty project. I get this error: PackagingResults: Error: Unknown Error
Packaging (Windows): [1/3] Compile [x64] CompileTest.cpp
Packaging (Windows): [2/3] Link [x64] CompileTest.exe
Packaging (Windows): Module.MathWorksSimulation.5.cpp.obj : error LNK2005: Symbol "void __cdecl StdFree(void *)" is already defined in CompileTest.cpp.obj
Packaging (Windows): Module.MathWorksSimulation.5.cpp.obj : error LNK2005: Symbol "void * __cdecl StdMalloc(unsigned __int64, unsigned __int64)" is already defined in CompileTest.cpp.obj
Packaging (Windows): Module.MathWorksSimulation.5.cpp.obj : error LNK2005: Symbol "void * __cdecl StdRealloc(void *, unsigned __int64, unsigned __int64)" is already defined in CompileTest.cpp.obj
Packaging (Windows): Creating library CompileTest.lib and export CompileTest.exp
Packaging (Windows): fatal error LNK1169: one or more multiply defined symbols found
I have removed user specific paths from the error message.
I am also getting these warnings about missing directories, which I wasn't able to resolve. The folders seem to exist in different places than expected.
Packaging (Windows): Referenced directory 'C:\Program Files\Epic Games\UE_5.3\Engine\Source\MathWorksSimulation' does not exist.
Packaging (Windows): MATLABROOT_RAYTRACING environment variable appears unset; defaulting to MATLABROOT
Packaging (Windows): MATLABROOT (MathWorksRaytracing): C:\Program Files\MATLAB\R2024b
Packaging (Windows): Referenced directory 'C:\Program Files\MATLAB\R2024b\toolbox\shared\ray_intersect\export\include' does not exist.
Packaging (Windows): Referenced directory 'C:\Program Files\MATLAB\R2024b\toolbox\shared\ray_path_geometry\export\include' does not exist.
Packaging (Windows): Referenced directory 'C:\Program Files\MATLAB\R2024b\toolbox\shared\sensorsim_core\export\include' does not exist.
Packaging (Windows): MATLABROOT (MathWorksSimulation): C:\Program Files\MATLAB\R2024b
PackagingResults: Warning: Referenced directory 'C:\Program Files\Epic Games\UE_5.3\Engine\Source\MathWorksSimulation' does not exist.
PackagingResults: Warning: Referenced directory 'C:\Program Files\MATLAB\R2024b\toolbox\shared\ray_intersect\export\include' does not exist.
PackagingResults: Warning: Referenced directory 'C:\Program Files\MATLAB\R2024b\toolbox\shared\ray_path_geometry\export\include' does not exist.
PackagingResults: Warning: Referenced directory 'C:\Program Files\MATLAB\R2024b\toolbox\shared\sensorsim_core\export\include' does not exist.
Packaging (Windows): Referenced directory 'C:\Program Files\Epic Games\UE_5.3\Engine\Source\MathWorksSimulation' does not exist.
Packaging (Windows): Writing manifest to C:\Users\User\Documents\SKA\analysis\unrealexperiments\CompileTest\Intermediate\Build\Manifest.xml
Packaging (Windows): Building CompileTest...
Packaging (Windows): Using Visual Studio 2022 14.36.32548 toolchain (C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.36.32532) and Windows 10.0.26100.0 SDK (C:\Program Files (x86)\Windows Kits\10).
PackagingResults: Warning: Referenced directory 'C:\Program Files\Epic Games\UE_5.3\Engine\Source\MathWorksSimulation' does not exist.
How do I resolve these issues?
In the editor everything works as expected, the game runs
0 个评论
回答(1 个)
Nishan Nekoo
2025-6-2
Hi kamarsto,
I just wanted to make sure you have followed all the instructions on this page when creating the executable? https://www.mathworks.com/help/sl3d/package-custom-scenes-into-executable.html
There might be specific instructions there that could help avoid these errors. Let me know if you are still running into issues after reviewing that page.
Nishan
9 个评论
Nishan Nekoo
2025-6-4
Can you try packaging an executable with the untouched example project? This might help narrow down if there are any issues with your project, or whether your environment is not set up correctly. If this doesn't help you narrow down the issue, I'd recommend reaching out to support@mathworks.com and providing your project and output log so that the support team can investigate further.
Apologies that I couldn't help resolve your issue here.
Nishan
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 C Shared Library Integration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!