Why am I receiving a "cannot find" error when building ROS nodes?
Mostra commenti meno recenti
I have a Simulink model with referenced models, and when I generate ROS code unfortunately the packages do not build on my Linux target when I call "catkin build". The error seems to be related to libraries not found between the nodes:
/usr/bin/ld: cannot find -lcontroller
/usr/bin/ld: cannot find -lplant
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/harness.dir/build.make:329: /home/user/username/devel/.private/harness/lib/harness/harness] Error 1
make[1]: *** [CMakeFiles/Makefile2:222: CMakeFiles/harness.dir/all] Error 2
make: *** [Makefile:144: all] Error 2
"harness" is the main model, and the referenced models are "plant" and "controller".
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su ROS 2 Network Access in Simulink in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!