ros - kinetic failed to catkin_make
hello ! help me please . you had tested in ros-kinetic? it can't catkin_make successfully!!!!
@josephduchesne
Test/src/flatland-master/flatland_server/thirdparty/Box2D/Dynamics/Joints/b2MouseJoint.cpp:54:13: error: no match for ‘operator!=’ (operand types are ‘const b2Vec2’ and ‘b2Vec2’) if (target != m_targetA) ^ flatland-master/flatland_server/thirdparty/Box2D/CMakeFiles/flatland_Box2D.dir/build.make:127: recipe for target 'flatland-master/flatland_server/thirdparty/Box2D/CMakeFiles/flatland_Box2D.dir/Dynamics/Joints/b2MouseJoint.cpp.o' failed make[2]: *** [flatland-master/flatland_server/thirdparty/Box2D/CMakeFiles/flatland_Box2D.dir/Dynamics/Joints/b2MouseJoint.cpp.o] Error 1
/home/hantewin/Test/src/flatland-master/flatland_server/thirdparty/Box2D/Dynamics/Joints/b2WheelJoint.cpp:363:45: error: no ‘float32 b2WheelJoint::GetJointLinearSpeed() const’ member function declared in class ‘b2WheelJoint’ float32 b2WheelJoint::GetJointLinearSpeed() const ^ /home/hantewin/Test/src/flatland-master/flatland_server/thirdparty/Box2D/Dynamics/Joints/b2WheelJoint.cpp:384:39: error: no ‘float32 b2WheelJoint::GetJointAngle() const’ member function declared in class ‘b2WheelJoint’ float32 b2WheelJoint::GetJointAngle() const ^ /home/hantewin/Test/src/flatland-master/flatland_server/thirdparty/Box2D/Dynamics/Joints/b2WheelJoint.cpp:391:46: error: no ‘float32 b2WheelJoint::GetJointAngularSpeed() const’ member function declared in class ‘b2WheelJoint’ float32 b2WheelJoint::GetJointAngularSpeed() const ^
I've tried to replicate this in a ros-kinetic docker container, but the build completes successfully for me (fresh install):
Docker command: (using the osrf xenial container)
docker run --rm -it --privileged --net=host --ipc=host -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY -v $HOME/.Xauthority:/home/$(id -un)/.Xauthority -e XAUTHORITY=/home/$(id -un)/.Xauthority -e DOCKER_USER_NAME=$(id -un) -e DOCKER_USER_ID=$(id -u) -e DOCKER_USER_GROUP_NAME=$(id -gn) -e DOCKER_USER_GROUP_ID=$(id -g) -e ROS_IP=127.0.0.1 ros:kinetic-ros-base-xenial
(note: --rm will delete the container when you close it, which is great for testing, but not so great for work)
Inside the container:
mkdir flatland_ws_xenial
mkdir src
cd src/
git clone https://github.com/avidbots/flatland.git
source /opt/ros/kinetic/setup.bash
rosdep init
rosdep update --rosdistro=kinetic
cd ../
rosdep install --from-paths src --ignore-src -r -y
catkin_make
Can you provide any additional information about your OS and compiler version? The output from the following command should be enough:
cat /etc/issue; gcc -v 2>&1 | tail -n 1
In my case, inside the container I get:
Ubuntu 16.04.7 LTS \n \l
gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.12)
root@root-System-Product-Name:~$ cat /etc/issue; gcc -v 2>&1 | tail -n 1Ubuntu 16.04.7 LTS \n \l
gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.12)