{"action":"created","issue":{"url":"https://api.github.com/repos/mavlink/mavros/issues/508","repository_url":"https://api.github.com/repos/mavlink/mavros","labels_url":"https://api.github.com/repos/mavlink/mavros/issues/508/labels{/name}","comments_url":"https://api.github.com/repos/mavlink/mavros/issues/508/comments","events_url":"https://api.github.com/repos/mavlink/mavros/issues/508/events","html_url":"https://github.com/mavlink/mavros/issues/508","id":133798133,"number":508,"title":"Fail to build mavros on Raspberry pi from source","user":{"login":"sputnick1124","id":8843309,"avatar_url":"https://avatars.githubusercontent.com/u/8843309?v=3","gravatar_id":"","url":"https://api.github.com/users/sputnick1124","html_url":"https://github.com/sputnick1124","followers_url":"https://api.github.com/users/sputnick1124/followers","following_url":"https://api.github.com/users/sputnick1124/following{/other_user}","gists_url":"https://api.github.com/users/sputnick1124/gists{/gist_id}","starred_url":"https://api.github.com/users/sputnick1124/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sputnick1124/subscriptions","organizations_url":"https://api.github.com/users/sputnick1124/orgs","repos_url":"https://api.github.com/users/sputnick1124/repos","events_url":"https://api.github.com/users/sputnick1124/events{/privacy}","received_events_url":"https://api.github.com/users/sputnick1124/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mavlink/mavros/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":31,"created_at":"2016-02-15T19:32:14Z","updated_at":"2016-02-16T15:35:55Z","closed_at":null,"body":"I am trying to install mavros from source as described in the README. I added mavlink and mavros to my rosinstall file and tried to proceed from there, but it complained about some undefined packages (control_toolbox and some others) for  OS[debian]. I added mavros_extras to the rosinstall file and `rosdep install` ...blah... did not complain anymore.\r\n\r\nRunning catkin build, however, fails after building almost all of the packages when it gets to mavros.\r\n\r\n```\r\n ./build_env.sh /usr/bin/make -j1\r\n[  0%] Built target mavros_msgs_generate_messages_cpp\r\n[ 27%] Built target mavros\r\n[ 30%] Built target gcs_bridge\r\n[ 33%] Built target mavros_node\r\n[ 36%] Building CXX object CMakeFiles/mavros_plugins.dir/src/plugins/sys_status.cpp.o\r\n/home/pixhawk/mr_catkin_ws/src/mavros/mavros/src/plugins/sys_status.cpp: In member function ‘void mavplugin::SystemStatusPlugin::autopilot_version_cb(const ros::TimerEvent&)’:\r\n/home/pixhawk/mr_catkin_ws/src/mavros/mavros/src/plugins/sys_status.cpp:698:26: error: ‘MAV_CMD_REQUEST_AUTOPILOT_CAPABILITIES’ was not declared in this scope\r\n    cmd.request.command = MAV_CMD_REQUEST_AUTOPILOT_CAPABILITIES;\r\n                          ^\r\nCMakeFiles/mavros_plugins.dir/build.make:77: recipe for target 'CMakeFiles/mavros_plugins.dir/src/plugins/sys_status.cpp.o' failed\r\nmake[2]: *** [CMakeFiles/mavros_plugins.dir/src/plugins/sys_status.cpp.o] Error 1\r\nCMakeFiles/Makefile2:1016: recipe for target 'CMakeFiles/mavros_plugins.dir/all' failed\r\nmake[1]: *** [CMakeFiles/mavros_plugins.dir/all] Error 2\r\nMakefile:127: recipe for target 'all' failed\r\nmake: *** [all] Error 2\r\n```\r\n\r\n\r\nI see that this issue has come up before (#240) but I am not running ubuntu, so the package referenced in that solution (even the armhf build) does not install on the Pi.\r\n\r\nIf it helps, the version number recorded in `mavlink.pc` is 2016.2.5.\r\n\r\nI don't think I'm forging new roads by installing mavros on a RPi. Is there some known resolution to this hurdle? It appears that `MAV_CMD_REQUEST_AUTOPILOT_CAPABILITIES` is supposed to be an `enum`. Could I just stick its definition/declaration in a header file somewhere to fix the issue?"},"comment":{"url":"https://api.github.com/repos/mavlink/mavros/issues/comments/184733055","html_url":"https://github.com/mavlink/mavros/issues/508#issuecomment-184733055","issue_url":"https://api.github.com/repos/mavlink/mavros/issues/508","id":184733055,"user":{"login":"sputnick1124","id":8843309,"avatar_url":"https://avatars.githubusercontent.com/u/8843309?v=3","gravatar_id":"","url":"https://api.github.com/users/sputnick1124","html_url":"https://github.com/sputnick1124","followers_url":"https://api.github.com/users/sputnick1124/followers","following_url":"https://api.github.com/users/sputnick1124/following{/other_user}","gists_url":"https://api.github.com/users/sputnick1124/gists{/gist_id}","starred_url":"https://api.github.com/users/sputnick1124/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sputnick1124/subscriptions","organizations_url":"https://api.github.com/users/sputnick1124/orgs","repos_url":"https://api.github.com/users/sputnick1124/repos","events_url":"https://api.github.com/users/sputnick1124/events{/privacy}","received_events_url":"https://api.github.com/users/sputnick1124/received_events","type":"User","site_admin":false},"created_at":"2016-02-16T15:35:54Z","updated_at":"2016-02-16T15:35:54Z","body":"For the sake of documentation, my `mavros.rosinstall` file.\r\n[mavros.rosinstall.txt](https://github.com/mavlink/mavros/files/132743/mavros.rosinstall.txt)\r\n"}}