{"action":"created","issue":{"url":"https://api.github.com/repos/intel-ros/realsense/issues/303","repository_url":"https://api.github.com/repos/intel-ros/realsense","labels_url":"https://api.github.com/repos/intel-ros/realsense/issues/303/labels{/name}","comments_url":"https://api.github.com/repos/intel-ros/realsense/issues/303/comments","events_url":"https://api.github.com/repos/intel-ros/realsense/issues/303/events","html_url":"https://github.com/intel-ros/realsense/issues/303","id":293507147,"number":303,"title":"catkin_make link against librealsense2","user":{"login":"a1lu","id":5518716,"avatar_url":"https://avatars0.githubusercontent.com/u/5518716?v=4","gravatar_id":"","url":"https://api.github.com/users/a1lu","html_url":"https://github.com/a1lu","followers_url":"https://api.github.com/users/a1lu/followers","following_url":"https://api.github.com/users/a1lu/following{/other_user}","gists_url":"https://api.github.com/users/a1lu/gists{/gist_id}","starred_url":"https://api.github.com/users/a1lu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a1lu/subscriptions","organizations_url":"https://api.github.com/users/a1lu/orgs","repos_url":"https://api.github.com/users/a1lu/repos","events_url":"https://api.github.com/users/a1lu/events{/privacy}","received_events_url":"https://api.github.com/users/a1lu/received_events","type":"User","site_admin":false},"labels":[{"id":736212650,"url":"https://api.github.com/repos/intel-ros/realsense/labels/ROS%20Wrapper%202","name":"ROS Wrapper 2","color":"d44df2","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-02-01T12:10:51Z","updated_at":"2018-03-13T11:59:05Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\nI tried to build librealsense2 and realsense_ros_camera in the same catkin workspace.\r\nSince I did not install librealsense2 before I got an error during catkin_make in CMakeLists.txt:28:\r\n\r\n```\r\nfind_package(realsense2)\r\nif(NOT realsense2_FOUND)\r\n    message(FATAL_ERROR \"\\n\\n Intel RealSense SDK 2.0 is missing, please install it from https://github.com/IntelRealSense/librealsense/releases\\n\\n\")\r\nendif()\r\n```\r\n\r\nI checked the available catkin variables, found librealsense2 in CATKIN_ORDERED_PACKAGES and created an workaround that works for me:\r\n\r\n```\r\nlist(FIND CATKIN_ORDERED_PACKAGES \"librealsense2\" RealsenseInCatkin)\r\nif(RealsenseInCatkin EQUAL -1)\r\n    find_package(realsense2)\r\n    if(NOT realsense2_FOUND)\r\n        message(FATAL_ERROR \"\\n\\n Intel RealSense SDK 2.0 is missing, please install it from https://github.com/IntelRealSense/librealsense/releases\\n\\n\")\r\n    endif()\r\nendif()\r\n```\r\n\r\nCan you reproduce this and is there a better solution to fix this?\r\n\r\nBest regards\r\n"},"comment":{"url":"https://api.github.com/repos/intel-ros/realsense/issues/comments/372641218","html_url":"https://github.com/intel-ros/realsense/issues/303#issuecomment-372641218","issue_url":"https://api.github.com/repos/intel-ros/realsense/issues/303","id":372641218,"user":{"login":"stwirth","id":1481786,"avatar_url":"https://avatars0.githubusercontent.com/u/1481786?v=4","gravatar_id":"","url":"https://api.github.com/users/stwirth","html_url":"https://github.com/stwirth","followers_url":"https://api.github.com/users/stwirth/followers","following_url":"https://api.github.com/users/stwirth/following{/other_user}","gists_url":"https://api.github.com/users/stwirth/gists{/gist_id}","starred_url":"https://api.github.com/users/stwirth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stwirth/subscriptions","organizations_url":"https://api.github.com/users/stwirth/orgs","repos_url":"https://api.github.com/users/stwirth/repos","events_url":"https://api.github.com/users/stwirth/events{/privacy}","received_events_url":"https://api.github.com/users/stwirth/received_events","type":"User","site_admin":false},"created_at":"2018-03-13T11:59:05Z","updated_at":"2018-03-13T11:59:05Z","author_association":"NONE","body":"I just ran into the same issue and @a1lu's workaround worked for me. It would be nice to get this fixed upstream!"}}
{"actor":{"display_login":"stwirth"}}