[ros-users] [Discourse.ros.org] [Next Generation ROS] Cannot…

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: William Woodall via ros-users
Date:  
To: ros-users
Subject: [ros-users] [Discourse.ros.org] [Next Generation ROS] Cannot run executable and lib using ros2 run after building using ament


Your CMake installs you binary to bin, but ros2 run only looks in the "libexec" folder (actually `lib/pkg`) for executables. Your binary is just on the PATH, so you don't need ros2 run to easily execute it.

See our examples for how to install to libexec:

https://github.com/ros2/examples/blob/9a819e007c13a5fb243641d300d6300306750cb0/rclcpp/minimal_publisher/CMakeLists.txt#L26





---
[Visit Topic](https://discourse.ros.org/t/cannot-run-executable-and-lib-using-ros2-run-after-building-using-ament/2640/2) or reply to this email to respond.


If you do not want to receive messages from ros-users please use the unsubscribe link below. If you use the one above, you will stop all of ros-users from receiving updates.
______________________________________________________________________________
ros-users mailing list

http://lists.ros.org/mailman/listinfo/ros-users
Unsubscribe: <http://lists.ros.org/mailman//options/ros-users>