Message generation fails after JADE update
Hello.
This morning I apt-get update
and upgrade
my Linux (14.04 Xubuntu).
After this, catkin_make
is not able to generate header files for a custom message of mine anymore.
It worked before and I have all the necessary dependencies and message-generations set up.
After googling around here is what I tried but what was unsuccessful:
catkin_make clean #of course
catkin_make -j1 #Some reported that it would help to build one "jobbed"
Looking for my CustomMessage works:
rosmsg show my_package/CustomMessage
When I search in the devel/include/my_package
I find no headerfile.
My Error that I get while building is, because the header file was not generated:
In file included from /home/username/catkin_ws/src/my_package/src/MyProgramm.cpp:1:0:
/home/username/catkin_ws/src/my_package/src/MyProgramm.h:5:37: fatal error: my_package/CustomMessage.h: No such file or directory
#include "my_package/CustomMessage.h"
I want to stress out that this worked before. I even reverted the git repo of my catkin_ws
to a previous state (where the header files were build correctly) and it does not work anymore.
Somehow the update of JADE is responsible for this, which is why I now show you, what was updated. Please help me.
Note: The only message that my custom message depends on is geometry_msgs/Pose
.
//EDIT:
So before the update log here my package.xml and CMakeList. I changed my packagename (my_package), my message (Custom_Message.msg) and my cpp file (MyProgram):
package.xml:
<?xml version="1.0"?>
<package>
<name>my_package</name>
<version>0.0.1</version>
<description>The my_package package</description>
<maintainer email="blabla">name</maintainer>
<license>TODO</license>
<buildtool_depend>catkin</buildtool_depend>
<build_depend>roscpp</build_depend>
<build_depend>std_msgs</build_depend>
<build_depend>roscpp_serialization</build_depend>
<build_depend>geometry_msgs</build_depend>
<build_depend>message_generation</build_depend>
<run_depend>roscpp</run_depend>
<run_depend>std_msgs</run_depend>
<run_depend>roscpp_serialization</run_depend>
<run_depend>geometry_msgs</run_depend>
<run_depend>message_runtime</run_depend>
<export>
</export>
</package>
CMakeList.txt:
cmake_minimum_required(VERSION 2.8.3)
project(my_package)
find_package(catkin REQUIRED COMPONENTS
roscpp
std_msgs
geometry_msgs
roscpp_serialization
hector_quadrotor_gazebo
message_generation
)
add_message_files(
FILES
CustomMessage.msg
)
generate_messages(
DEPENDENCIES
geometry_msgs
)
catkin_package(
CATKIN_DEPENDS roscpp_serialization message_runtime
)
include_directories(
${catkin_INCLUDE_DIRS}
)
add_executable(my_package src/MyProgramm.cpp)
target_link_libraries(my_package
${catkin_LIBRARIES}
)
I am sorry for this mess, but I don't know any other way.
Preparing to unpack .../python-oneconf_0.3.7.14.04.1_all.deb ...^M
Unpacking python-oneconf (0.3.7.14.04.1) over (0.3.7) ...^M
Preparing to unpack .../ros-jade-cv-bridge_1.11.9-0trusty-20151130-0054-+0000_amd64.deb ...^M
Unpacking ros-jade-cv-bridge (1.11.9-0trusty-20151130-0054-+0000) over (1.11.8-0trusty-20151110-1415-+0000) ...^M
Preparing to unpack .../ros-jade-image-geometry_1.11.9-0trusty-20151130-0101-+0000_amd64.deb ...^M
Unpacking ros-jade-image-geometry (1.11.9-0trusty-20151130-0101-+0000) over (1.11.8-0trusty-20151110-0900-+0000) ...^M
Preparing to unpack .../ros-jade-camera-calibration_1.12.14-0trusty-20151130-2000-+0000_amd64.deb ...^M
Unpacking ros-jade-camera-calibration (1.12.14-0trusty-20151130-2000-+0000) over (1.12.14-0trusty-20151110-1420-+0000) ...^M
Preparing to unpack .../ros-jade-camera-calibration-parsers_1.11.8-0trusty-20151130-0157-+0000_amd64.deb ...^M
Unpacking ros-jade-camera-calibration-parsers (1.11.8-0trusty-20151130-0157-+0000) over (1.11.7-0trusty-20151110-0900-+0000) ...^M
Preparing to unpack .../ros-jade-image-transport_1.11.8-0trusty-20151130-0226-+0000_amd64.deb ...^M
Unpacking ros-jade-image-transport (1.11.8-0trusty-20151130-0226-+0000) over (1.11.7-0trusty-20151110-1410-+0000) ...^M
Preparing to unpack .../ros-jade-camera-info-manager_1.11.8-0trusty-20151130-0237-+0000_amd64.deb ...^M
Unpacking ros-jade-camera-info-manager ...
I know you think this is a update issues, but the most common cause for issues like this is missing dependencies in your CMakeLists. Can you please edit your question to include your CMakeLists.txt, so that we can rule out any issues there?
I updated my post to include my CMakeList and package.xml