{"action":"created","issue":{"url":"https://api.github.com/repos/mavlink/mavros/issues/391","labels_url":"https://api.github.com/repos/mavlink/mavros/issues/391/labels{/name}","comments_url":"https://api.github.com/repos/mavlink/mavros/issues/391/comments","events_url":"https://api.github.com/repos/mavlink/mavros/issues/391/events","html_url":"https://github.com/mavlink/mavros/pull/391","id":107822171,"number":391,"title":"Mavros library depends on mavros_msgs headers","user":{"login":"jonbinney","id":1538056,"avatar_url":"https://avatars.githubusercontent.com/u/1538056?v=3","gravatar_id":"","url":"https://api.github.com/users/jonbinney","html_url":"https://github.com/jonbinney","followers_url":"https://api.github.com/users/jonbinney/followers","following_url":"https://api.github.com/users/jonbinney/following{/other_user}","gists_url":"https://api.github.com/users/jonbinney/gists{/gist_id}","starred_url":"https://api.github.com/users/jonbinney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonbinney/subscriptions","organizations_url":"https://api.github.com/users/jonbinney/orgs","repos_url":"https://api.github.com/users/jonbinney/repos","events_url":"https://api.github.com/users/jonbinney/events{/privacy}","received_events_url":"https://api.github.com/users/jonbinney/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mavlink/mavros/labels/build%20error","name":"build error","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-22T23:20:57Z","updated_at":"2015-09-22T23:59:44Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mavlink/mavros/pulls/391","html_url":"https://github.com/mavlink/mavros/pull/391","diff_url":"https://github.com/mavlink/mavros/pull/391.diff","patch_url":"https://github.com/mavlink/mavros/pull/391.patch"},"body":"Adding this dependency makes sure that mavros_msgs message headers are generated before the mavros library is built, since it needs those headers.\r\n\r\nOtherwise you get intermittent build errors when building using multiple catkin_make threads, such as:\r\n```\r\n[  4%] Building CXX object third_party/mavros/mavros/CMakeFiles/mavros.dir/src/lib/uas_data.cpp.o\r\nIn file included from /home/odroid/ros/src/third_party/mavros/mavros/include/mavros/utils.h:21:0,\r\n                 from /home/odroid/ros/src/third_party/mavros/mavros/src/lib/uas_data.cpp:18:\r\n/home/odroid/ros/src/third_party/mavros/mavros_msgs/include/mavros_msgs/mavlink_convert.h:17:33: fatal error: mavros_msgs/Mavlink.h: No such file or directory\r\n #include <mavros_msgs/Mavlink.h>\r\n                                 ^\r\ncompilation terminated.\r\n```"},"comment":{"url":"https://api.github.com/repos/mavlink/mavros/issues/comments/142456742","html_url":"https://github.com/mavlink/mavros/pull/391#issuecomment-142456742","issue_url":"https://api.github.com/repos/mavlink/mavros/issues/391","id":142456742,"user":{"login":"vooon","id":1023568,"avatar_url":"https://avatars.githubusercontent.com/u/1023568?v=3","gravatar_id":"","url":"https://api.github.com/users/vooon","html_url":"https://github.com/vooon","followers_url":"https://api.github.com/users/vooon/followers","following_url":"https://api.github.com/users/vooon/following{/other_user}","gists_url":"https://api.github.com/users/vooon/gists{/gist_id}","starred_url":"https://api.github.com/users/vooon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vooon/subscriptions","organizations_url":"https://api.github.com/users/vooon/orgs","repos_url":"https://api.github.com/users/vooon/repos","events_url":"https://api.github.com/users/vooon/events{/privacy}","received_events_url":"https://api.github.com/users/vooon/received_events","type":"User","site_admin":false},"created_at":"2015-09-22T23:59:44Z","updated_at":"2015-09-22T23:59:44Z","body":"Hmm, i'm never got this error. Perhaps because `catkin` builds `<depend>` before."}}