Error when package Custom Scenes through Unreal Editor
Mostrar comentarios más antiguos
Hello everyone,
I want to use the Unreal Editor and customize the scene through the "Simulation 3D Scene Configuration" function of the automatic driving toolbox.
I follow the help below "Customize 3D Scenes for Vehicle Dynamics Simulations" from help center.
(https://www.mathworks.com/help/vdynblks/ug/customize-3d-scenes-for-vehicle-dynamics-simulations.html)
But when I execute the fourth step "Package Custom Scenes into Executable", I cannot successfully package the scene from Unreal Editor into an exe file, and the error "LNK1181" appears in the Unreal output log, which seems to be missing Simulation3DInterface.lib File, I don't know how to solve this problem.
The software version I use is R2020b and Unreal Engine 4.23
Best regards.
Respuestas (1)
Altaïr
el 12 de Mayo de 2025
0 votos
This error was encountered during the migration from R2020a to R2020b. In R2020a, "Simulation3DInterface.lib" was used, but in R2020b, it seems to be replaced by "libmwshared_sim3d_io.lib". Some cached data from R2020a may cause Unreal to continue searching for "Simulation3DInterface.lib". To resolve this, I had to modify the MathWorksSimulation.Build.cs file as follows:
- Navigate to the "UE_4.23\Engine\Plugins\Marketplace\MathWorks\Source\MathWorksSimulation" directory within the Unreal Engine's UE_4.23 folder.
- Open the MathWorksSimulation.Build.cs file, ensuring write permissions are available.
- Insert Console.WriteLine(""); after line 95.
- Save the file.
- Delete the Binaries, Saved, and Intermediate directories from the project.
- Relaunch the project.
These steps helped resolve the issue.
Categorías
Más información sobre Simulink 3D Animation en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!