ros2 jazzy 显示没有那个文件或目录
-
@zio 第一个报错一直解决不掉
后面那个好说 主要是前面的 -
@1499744277 解决了吗 ,你这是运行命令时的位置错了
-
@zio 解决了,虽然报错和小鱼的文章还是不太一样 但是终于是往前走了一步了
-
@zio 你这个是咋解决的,马上就遇到你这个问题了
-
@1499744277 路径到他提示的前面一个就过了
-
-
@zio 解决了,感激不尽,谢谢你!
-
@zio 不好意思,又打扰你了,我现在出现这个报错 而且我文件夹里也找不到这个文件 小鱼的命令里面我没找到关于这个的。
-
@1499744277 都是一样的解决办法
-
顺着这个思路,我也解决了这个问题,在这里贴一下
输入命令如下:
g++ first_ros2_node.cpp
-I /opt/ros/jazzy/include/rclcpp/
-I /opt/ros/jazzy/include/rcl_interfaces
-I /opt/ros/jazzy/include/rosidl_runtime_cpp
-I /opt/ros/jazzy/include/rosidl_runtime_c
-I /opt/ros/jazzy/include/service_msgs
-I /opt/ros/jazzy/include/builtin_interfaces
-I /opt/ros/jazzy/include/rosidl_typesupport_interface
-I /opt/ros/jazzy/include/rcutils/
-I /opt/ros/jazzy/include/rcl/
-I /opt/ros/jazzy/include/rmw
-I /opt/ros/jazzy/include/rcpputils
-I /opt/ros/jazzy/include/rcl_yaml_param_parser/
-I /opt/ros/jazzy/include/type_description_interfaces
-I /opt/ros/jazzy/include/rosidl_dynamic_typesupport
-I /opt/ros/jazzy/include/tracetools
-I /opt/ros/jazzy/include/libstatistics_collector
-I /opt/ros/jazzy/include/statistics_msgs
-I /opt/ros/jazzy/include/rosidl_typesupport_introspection_cpp
-L /opt/ros/jazzy/lib/
-lrclcpp -lrcutils