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

3 ビュー (過去 30 日間)
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

採用された回答

Josh Chen
Josh Chen 2023 年 2 月 10 日
編集済み: Josh Chen 2023 年 2 月 10 日
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)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeROS 2 Network Access in Simulink についてさらに検索

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by