Closed furqan-habibi closed 6 years ago
I finally managed to make it build successfully. The steps are as follows:
$ genjava_message_artifacts -p tango_ros_messages
Generating message artifacts for:
['tango_ros_messages']
FAILURE: Build failed with an exception.
Could not find org.ros.rosjava_messages:std_msgs:0.5.11. Searched in the following locations: file:/home/kaigi/tango_ros_ws/devel/share/maven/org/ros/rosjava_messages/std_msgs/0.5.11/std_msgs-0.5.11.pom file:/home/kaigi/tango_ros_ws/devel/share/maven/org/ros/rosjava_messages/std_msgs/0.5.11/std_msgs-0.5.11.jar
devel/share/maven/org/ros/rosjava_messages/std_msgs/0.5.11
and build tango_ros_messages again.Errors << tango_ros_messages:symlink /home/kaigi/tango_ros_ws/logs/tango_ros_messages/build.symlink.000.log
Warning: Cannot symlink from /home/kaigi/tango_ros_ws/devel/.private/tango_ros_messages/share/maven/org/ros/rosjava_messages/tango_ros_messages/maven-metadata.xml to existing file /home/kaigi/tango_ros_ws/devel/share/maven/org/ros/rosjava_messages/tango_ros_messages/maven-metadata.xml
Warning: Source hash: 304162665fe48b6f38537f737a45475a
Warning: Dest hash: d3bbe18cef3ab68bd05b0bbdc9bf9b51
Warning: Cannot symlink from /home/kaigi/tango_ros_ws/devel/.private/tango_ros_messages/share/maven/org/ros/rosjava_messages/tango_ros_messages/maven-metadata.xml.sha1 to existing file /home/kaigi/tango_ros_ws/devel/share/maven/org/ros/rosjava_messages/tango_ros_messages/maven-metadata.xml.sha1
Warning: Source hash: 31fddb7cf15f9c659221d69f108b19dd
Warning: Dest hash: 290f3ece23c29c11ea9cbd5893bc0c67
Though I can build the app successfully, this seems like a very hacky way to do it. If someone from the development team can help investigate this I'd be really thankful. However I know you guys are busy in the development cycle right now so keep up the hard work and I love what you guys are doing.
Cheers.
@furqan-habibi Thanks for the kind words.
I think your issue was indeed related to the new classes of the tango_ros_messages
package. I guess what really solved the problem was deleting the tango_ros_messages.jar
and rebuilding.
Today we released the new version of the tango_ros_messages
package. So the app now depends on org.ros.rosjava_messages:tango_ros_messages:2.0.0
(instead of 1.0.0).
As a consequence, if you pull the latest changes from master, you might get some issues again with this dependency while building.
The solution we found for this problem is as follow:
cd ~/tango_ros_ws/
rm -r build/ devel/
catkin build --no-jobserver --verbose
source ~/tango_ros_ws/devel/setup.bash
and in the same terminal restart Android Studio
I hope this helps.
I have done all the build steps as written, but end up with a build fail. I have built successfully in the past (~version 1.1). The error messages are as follows:
It looks like some newer class (LoadOccupancyGrid etc.) in tango_ros_messages is not detected by the compiler. I am not quite sure but there might be a connection with the fact that tango_ros_messages maven repository is still serving the old (1.0.0) version. https://github.com/rosjava/rosjava_mvn_repo/tree/master/org/ros/rosjava_messages/tango_ros_messages