Ask Your Question
0

cmake error upon catkin make

asked 2015-06-04 23:53:15 -0500

c123 gravatar image

I'm new to the software, I was doing the following tutorial ( http://wiki.ros.org/hector_quadrotor/... ) and got a cmake error, I'm not sure how to " Add the installation prefix of "hardware_interface" to CMAKE_PREFIX_PATH" as it suggests, how can I fix it?

Full terminal text:

user@ubuntu:~$ mkdir ~/hector_quadrotor_tutorial
user@ubuntu:~$ cd ~/hector_quadrotor_tutorial
user@ubuntu:~/hector_quadrotor_tutorial$ wstool init src https://raw.github.com/tu-darmstadt-ros-pkg/hector_quadrotor/hydro-devel/tutorials.rosinstall
Using initial elements from: https://raw.github.com/tu-darmstadt-ros-pkg/hector_quadrotor/hydro-devel/tutorials.rosinstall
Writing /home/user/hector_quadrotor_tutorial/src/.rosinstall
[hector_quadrotor] Fetching https://github.com/tu-darmstadt-ros-pkg/hector_quadrotor.git (version hydro-devel) to /home/user/hector_quadrotor_tutorial/src/hector_quadrotor
Cloning into '/home/user/hector_quadrotor_tutorial/src/hector_quadrotor'...
remote: Counting objects: 2851, done.
remote: Total 2851 (delta 0), reused 0 (delta 0), pack-reused 2851
Receiving objects: 100% (2851/2851), 726.82 KiB | 332.00 KiB/s, done.
Resolving deltas: 100% (1758/1758), done.
Checking connectivity... done.
[hector_quadrotor] Done.
[hector_slam] Fetching https://github.com/tu-darmstadt-ros-pkg/hector_slam.git (version catkin) to /home/user/hector_quadrotor_tutorial/src/hector_slam
Cloning into '/home/user/hector_quadrotor_tutorial/src/hector_slam'...
remote: Counting objects: 1827, done.
remote: Total 1827 (delta 0), reused 0 (delta 0), pack-reused 1827
Receiving objects: 100% (1827/1827), 338.44 KiB | 236.00 KiB/s, done.
Resolving deltas: 100% (1112/1112), done.
Checking connectivity... done.
[hector_slam] Done.
[hector_localization] Fetching https://github.com/tu-darmstadt-ros-pkg/hector_localization.git (version catkin) to /home/user/hector_quadrotor_tutorial/src/hector_localization
Cloning into '/home/user/hector_quadrotor_tutorial/src/hector_localization'...
remote: Counting objects: 2620, done.
remote: Total 2620 (delta 0), reused 0 (delta 0), pack-reused 2620
Receiving objects: 100% (2620/2620), 3.69 MiB | 1.22 MiB/s, done.
Resolving deltas: 100% (1948/1948), done.
Checking connectivity... done.
[hector_localization] Done.
[hector_gazebo] Fetching https://github.com/tu-darmstadt-ros-pkg/hector_gazebo.git (version hydro-devel) to /home/user/hector_quadrotor_tutorial/src/hector_gazebo
Cloning into '/home/user/hector_quadrotor_tutorial/src/hector_gazebo'...
remote: Counting objects: 1499, done.
remote: Total 1499 (delta 0), reused 0 (delta 0), pack-reused 1499
Receiving objects: 100% (1499/1499), 2.08 MiB | 789.00 KiB/s, done.
Resolving deltas: 100% (950/950), done.
Checking connectivity... done.
[hector_gazebo] Done.
[hector_models] Fetching https://github.com/tu-darmstadt-ros-pkg/hector_models.git (version hydro-devel) to /home/user/hector_quadrotor_tutorial/src/hector_models
Cloning into '/home/user/hector_quadrotor_tutorial/src/hector_models'...
remote: Counting objects: 630, done.
remote: Total 630 (delta 0), reused 0 (delta 0), pack-reused 630
Receiving objects: 100% (630/630), 207.65 KiB | 199.00 KiB/s, done.
Resolving deltas: 100% (414/414), done.
Checking connectivity... done.
[hector_models] Done.

update complete.
user@ubuntu:~/hector_quadrotor_tutorial$ catkin_make
Base path: /home/user/hector_quadrotor_tutorial
Source space: /home/user/hector_quadrotor_tutorial/src
Build space: /home/user/hector_quadrotor_tutorial/build
Devel space: /home/user/hector_quadrotor_tutorial/devel
Install space: /home/user/hector_quadrotor_tutorial/install
Creating symlink "/home/user/hector_quadrotor_tutorial/src/CMakeLists.txt" pointing to "/opt/ros/indigo/share/catkin/cmake/toplevel.cmake"
####
#### Running command: "cmake /home/user/hector_quadrotor_tutorial/src -DCATKIN_DEVEL_PREFIX=/home/user/hector_quadrotor_tutorial/devel -DCMAKE_INSTALL_PREFIX=/home/user/hector_quadrotor_tutorial/install -G Unix Makefiles" in "/home/user/hector_quadrotor_tutorial/build"
####
-- The C compiler identification is GNU 4.8.2
-- The CXX compiler identification is GNU 4.8.2 ...
(more)
edit retag flag offensive close merge delete

Comments

1

The tutorial you linked has two options: Install binary packages and Install from source. Any particular reason you cannot install the binary pkgs? That would remove the need to build everything locally with catkin_make.

gvdhoorn gravatar image gvdhoorn  ( 2015-06-05 02:08:10 -0500 )edit

Btw, the solution to your issue is to make sure you have all dependencies of the hector_quadrotor_controller pkg installed (using rosdep install .. fi). But if you install the binary versions, that would all be a non-issue, as all dependencies are already taken care of.

gvdhoorn gravatar image gvdhoorn  ( 2015-06-05 05:32:06 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-06-08 07:12:38 -0500

c123 gravatar image

updated 2015-06-08 07:13:01 -0500

I just used the binary versions, thanks for the help.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-06-04 23:51:25 -0500

Seen: 138 times

Last updated: Jun 08 '15