在进行QT编译ROS工程时,按照教程步骤操作,在终端中工作空间编译成功,但是在QT中编译报错。

/home/xtark/ros_ws/src/CMakeLists.txt:63: error: find_package(catkin) failed. catkin was neither found in the workspace nor in the CMAKE_PREFIX_PATH. One reason may be that no ROS setup.sh was sourced before.

 

到底应该怎么解决呢?