Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.3k views
in Technique[技术] by (71.8m points)

embedded linux - ROS-Yocto catkin_make toplevel.cmake

I am trying to install ROS into an embedded device (imx8m-mini variscite dart) using Yocto. I have added required ROS packages into the Yocto environment and generated a root file system. I have sourced the setup.bash script in my bash environment and then when I do "catkin_make" I get an error like this,

root@imx8mm-var-dart:~/catkin_ws# catkin_make
Base path: /home/root/catkin_ws
Source space: /home/root/catkin_ws/src
Build space: /home/root/catkin_ws/build
Devel space: /home/root/catkin_ws/devel
Install space: /home/root/catkin_ws/install

Creating the toplevel cmake file failed: Could neither find file "toplevel.cmake" in any workspace nor relative, checked the following paths:

/home/root/catkin_ws/src/catkin/cmake/toplevel.cmake
/opt/ros/melodic/catkin/cmake/toplevel.cmake
/opt/ros/melodic/lib/python2.7/cmake/toplevel.cmake
/opt/ros/melodic/share/catkin/cmake/toplevel.cmake
/opt/ros/melodic/lib/share/catkin/cmake/toplevel.cmake

As a result, the directories build, devel, and src under catkin_ws are empty.

Do you have any idea to solve this problem?

Thanks.

question from:https://stackoverflow.com/questions/66061842/ros-yocto-catkin-make-toplevel-cmake

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

The problem is solved after adding below package into Yocto build.

catkin-dev

I am leaving the question here in case someone else suffers the same problem.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...