About running catkin_make

Hi.
I copied a repository from github and when i try to build i get this error:

m@u:~/suruiha-ws$ catkin_make
Base path: /home/m/suruiha-ws
Source space: /home/m/suruiha-ws/src
Build space: /home/m/suruiha-ws/build
Devel space: /home/m/suruiha-ws/devel
Install space: /home/m/suruiha-ws/install
####
#### Running command: "make cmake_check_build_system" in "/home/m/suruiha-ws/build"
####
####
#### Running command: "make -j4 -l4" in "/home/m/suruiha-ws/build"
####
[ 20%] Built target uav_ground_control
[ 30%] Building CXX object suruiha_gazebo_plugins/CMakeFiles/iris_controller.dir/src/iris_controller.cpp.o
[ 40%] Building CXX object suruiha_gazebo_plugins/CMakeFiles/zephyr_controller.dir/src/zephyr_controller.cpp.o
[ 50%] Building CXX object suruiha_gazebo_plugins/CMakeFiles/zephyr_controller.dir/src/joint_control.cpp.o
[ 60%] Building CXX object suruiha_gazebo_plugins/CMakeFiles/zephyr_controller.dir/src/util.cpp.o
/home/m/suruiha-ws/src/suruiha_gazebo_plugins/src/joint_control.cpp: In member function ‘void gazebo::JointControl::SetPosition(double, gazebo::common::Time)’:
/home/m/suruiha-ws/src/suruiha_gazebo_plugins/src/joint_control.cpp:50:44: error: ‘class gazebo::physics::Joint’ has no member named ‘Position’
     const double currentPos = this->joint->Position(0);
                                            ^
suruiha_gazebo_plugins/CMakeFiles/zephyr_controller.dir/build.make:86: recipe for target 'suruiha_gazebo_plugins/CMakeFiles/zephyr_controller.dir/src/joint_control.cpp.o' failed
make[2]: *** [suruiha_gazebo_plugins/CMakeFiles/zephyr_controller.dir/src/joint_control.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/home/m/suruiha-ws/src/suruiha_gazebo_plugins/src/iris_controller.cpp: In member function ‘virtual void gazebo::IrisController::UpdateStates()’:
/home/m/suruiha-ws/src/suruiha_gazebo_plugins/src/iris_controller.cpp:221:44: error: ‘class gazebo::physics::World’ has no member named ‘SimTime’
      common::Time currTime = this->world_->SimTime();
                                            ^
/home/m/suruiha-ws/src/suruiha_gazebo_plugins/src/iris_controller.cpp:226:52: error: ‘class gazebo::physics::Model’ has no member named ‘WorldPose’
        ignition::math::Pose3d pose = this->model_->WorldPose();
                                                    ^
/home/m/suruiha-ws/src/suruiha_gazebo_plugins/src/iris_controller.cpp: In member function ‘void gazebo::IrisController::CalculateRotors(double, double, double, double, gazebo::common::Time)’:
/home/m/suruiha-ws/src/suruiha_gazebo_plugins/src/iris_controller.cpp:252:40: error: ‘class gazebo::physics::Model’ has no member named ‘WorldPose’
  ignition::math::Pose3d pose = model_->WorldPose();
                                        ^
/home/m/suruiha-ws/src/suruiha_gazebo_plugins/src/zephyr_controller.cpp: In member function ‘virtual void gazebo::ZephyrController::UpdateStates()’:
/home/m/suruiha-ws/src/suruiha_gazebo_plugins/src/zephyr_controller.cpp:119:44: error: ‘class gazebo::physics::World’ has no member named ‘SimTime’
      common::Time currTime = this->world_->SimTime();
                                            ^
/home/m/suruiha-ws/src/suruiha_gazebo_plugins/src/zephyr_controller.cpp:124:52: error: ‘class gazebo::physics::Model’ has no member named ‘WorldPose’
        ignition::math::Pose3d pose = this->model_->WorldPose();
                                                    ^
/home/m/suruiha-ws/src/suruiha_gazebo_plugins/src/zephyr_controller.cpp: In member function ‘void gazebo::ZephyrController::CalculateJoints(double, double, double, gazebo::common::Time)’:
/home/m/suruiha-ws/src/suruiha_gazebo_plugins/src/zephyr_controller.cpp:152:47: error: ‘class gazebo::physics::Model’ has no member named ‘WorldPose’
   ignition::math::Pose3d pose = this->model_->WorldPose();
                                               ^
suruiha_gazebo_plugins/CMakeFiles/iris_controller.dir/build.make:62: recipe for target 'suruiha_gazebo_plugins/CMakeFiles/iris_controller.dir/src/iris_controller.cpp.o' failed
make[2]: *** [suruiha_gazebo_plugins/CMakeFiles/iris_controller.dir/src/iris_controller.cpp.o] Error 1
CMakeFiles/Makefile2:1606: recipe for target 'suruiha_gazebo_plugins/CMakeFiles/iris_controller.dir/all' failed
make[1]: *** [suruiha_gazebo_plugins/CMakeFiles/iris_controller.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
suruiha_gazebo_plugins/CMakeFiles/zephyr_controller.dir/build.make:62: recipe for target 'suruiha_gazebo_plugins/CMakeFiles/zephyr_controller.dir/src/zephyr_controller.cpp.o' failed
make[2]: *** [suruiha_gazebo_plugins/CMakeFiles/zephyr_controller.dir/src/zephyr_controller.cpp.o] Error 1
CMakeFiles/Makefile2:481: recipe for target 'suruiha_gazebo_plugins/CMakeFiles/zephyr_controller.dir/all' failed
make[1]: *** [suruiha_gazebo_plugins/CMakeFiles/zephyr_controller.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j4 -l4" failed

How can i solve this?
I know that the code is working, i saw it in the video of the person who shares it.
So something missing in my computer or i am doing something wrong.
Thanks…

Thanks for your question. However we ask that you please ask questions on http://answers.ros.org following our support guidelines: http://wiki.ros.org/Support

ROS Discourse is for news and general interest discussions. ROS Answers provides a forum which can be filtered by tags to make sure the relevant people can find and/or answer the question, and not overload everyone with hundreds of posts.

If you’d like you can reply with a link to your answers.ros.org question, but in the future please start there. And I’d strongly recommend that you include some more details about how to reproduce your issue. It looks like you are using incompatible versions of code so you’ll need to explain explicitly what versions of code your running on your system and in your workspace.