cmakelist.txt — Configuring incomplete, errors occurred

asked 2017-03-17 15:21:43 -0600

Tamercan gravatar image

I get the following error although I have installed ROS.i cloned this project from github

this is CmakeList.txt following.

cmake_minimum_required(VERSION 2.8.3)
project(ardrone_autonomy)

# Load catkin and all dependencies required for this package
find_package(catkin REQUIRED COMPONENTS
    roscpp
    image_transport
    sensor_msgs
    std_srvs
    tf
    camera_info_manager
    message_generation
    roslint
)

Sorry for my English.

-- Detecting CXX compile features - done
        CMake Error at CMakeLists.txt:5 (find_package):
          By not providing "Findcatkin.cmake" in CMAKE_MODULE_PATH this project has
          asked CMake to find a package configuration file provided by "catkin", but
          CMake did not find one.

          Could not find a package configuration file provided by "catkin" with any
          of the following names:

            catkinConfig.cmake
            catkin-config.cmake

          Add the installation prefix of "catkin" to CMAKE_PREFIX_PATH or set
edit retag flag offensive close merge delete

Comments

How did you install ROS, and what were the exact commands you used that resulted in the output you posted? Have you sourced the correct setup.bash before trying to build?

gvdhoorn gravatar imagegvdhoorn ( 2017-03-18 05:56:26 -0600 )edit

i have followed this video video

Tamercan gravatar imageTamercan ( 2017-03-18 06:28:25 -0600 )edit

Could you please summarise it by adding the commands you used? I don't have the time to watch your video.

gvdhoorn gravatar imagegvdhoorn ( 2017-03-18 08:03:10 -0600 )edit

i have followed these commands

sudo apt-get install ros-indigo-desktop-full
sudo rosdep init
rosdep update
echo "source /opt/ros/indigo/setup.bash" >> ~/.bashrc
source ~/.bashrc
sudo apt-get install python-rosinstall
sudo apt-get install python-catkin-tools
Tamercan gravatar imageTamercan ( 2017-03-18 08:16:52 -0600 )edit

Please Help Me

Tamercan gravatar imageTamercan ( 2017-03-19 05:41:44 -0600 )edit

When I had this issue in the past, it meant that whatever CMake was struggling with was not installed, so I would recommend to install catkin. This should already be installed, so you should try reinstalling ROS with the tutorials located here:

http://wiki.ros.org/ROS/Installation

corcorant gravatar imagecorcorant ( 2017-03-21 11:39:18 -0600 )edit