CMake Error: Could not find module Findcatkin_simple.cmake

asked 2016-08-01 02:26:41 -0600

percy_liu gravatar image

I downloaded the whole project from BitBucket and didn't change anything before I compiled the project. The error was

CMake Error at ocs_control_system/type_moveit/CMakeLists.txt:4 (find_package): 
Could not find module Findcatkin_simple.cmake or a configuration file for package catkin_simples.

Adjust CMAKE_MODULE_PATH to find Findcatkin_simple.cmake or set catkin_simple_DIR to the directory containing a CMake configuration file for catkin_simple. The file will have one of the following names:

 catkin_simpleConfig.cmake
 catkin_simple-config.cmake


CMake Error at ocs_control_system/type_moveit/CMakeLists.txt:6 (catkin_simple):
Unknown CMake command "catkin_simple".

-- Configuring incomplete, errors occurred!
Invoking "cmake" failed

The CMakeLists.txt mentioned was

cmake_minimum_required(VERSION 2.8.3)
project(type_moveit)

find_package(catkin_simple REQUIRED)

catkin_simple()

cs_install()
install(DIRECTORY launch DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION})
install(DIRECTORY config DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION})

cs_export()

How could I solve this problem? Thanks a lot!

edit retag flag offensive close merge delete