Automated Parking Valet with ROS 2 in Simulink example errors out during model update

2 vues (au cours des 30 derniers jours)
I open the model from Automated Parking Valet with ROS 2 in Simulink example and use "Ctrl+D" to update it. However, I got the following error:
=== Simulation (null) === Error:Making simulation target ROS2ValetPathPlannerExample_sfun. /usr/local/MATLAB/R2022b/bin/mex -R2018a -c @ROS2ValetPathPlannerExample_sfun.mol /usr/bin/ld: /tmp/_halideRuntime.o: in function `halide_default_get_symbol': posix_allocator.cpp:(.text.halide_default_get_symbol+0xb): undefined reference to `dlsym' /usr/bin/ld: /tmp/_halideRuntime.o: in function `halide_default_load_library': posix_allocator.cpp:(.text.halide_default_load_library+0xc): undefined reference to `dlopen' /usr/bin/ld: posix_allocator.cpp:(.text.halide_default_load_library+0x19): undefined reference to `dlerror' /usr/bin/ld: /tmp/_halideRuntime.o: in function `halide_default_get_library_symbol': posix_allocator.cpp:(.text.halide_default_get_library_symbol+0x6): undefined reference to `dlsym' collect2: error: ld returned 1 exit status gmake: *** [ROS2ValetPathPlannerExample_sfun.mexa64] Error 255
I am using MATLAB R2022b on Ubuntu 20.04

Réponse acceptée

Josh Chen
Josh Chen le 10 Fév 2023
Modifié(e) : Josh Chen le 10 Fév 2023
Recent change in GNU turned "--as-needed" for ld as default, which causes this issue.
To address this, open the model "ROS2ValetPathPlannerExample.slx", navigate to "Configuration Setting->Simulation Target->Linker flags" in and add "-Wl,--no-as-needed" (No quote)

Plus de réponses (0)

Catégories

En savoir plus sur Publishers and Subscribers dans Help Center et File Exchange

Produits


Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by