{"action":"created","issue":{"url":"https://api.github.com/repos/ethz-asl/rovio/issues/32","labels_url":"https://api.github.com/repos/ethz-asl/rovio/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/ethz-asl/rovio/issues/32/comments","events_url":"https://api.github.com/repos/ethz-asl/rovio/issues/32/events","html_url":"https://github.com/ethz-asl/rovio/pull/32","id":126625286,"number":32,"title":"WIP: Update code so it can use OpenCV 3 libs","user":{"login":"TSC21","id":5048656,"avatar_url":"https://avatars.githubusercontent.com/u/5048656?v=3","gravatar_id":"","url":"https://api.github.com/users/TSC21","html_url":"https://github.com/TSC21","followers_url":"https://api.github.com/users/TSC21/followers","following_url":"https://api.github.com/users/TSC21/following{/other_user}","gists_url":"https://api.github.com/users/TSC21/gists{/gist_id}","starred_url":"https://api.github.com/users/TSC21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TSC21/subscriptions","organizations_url":"https://api.github.com/users/TSC21/orgs","repos_url":"https://api.github.com/users/TSC21/repos","events_url":"https://api.github.com/users/TSC21/events{/privacy}","received_events_url":"https://api.github.com/users/TSC21/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-14T10:33:53Z","updated_at":"2016-01-14T14:14:01Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ethz-asl/rovio/pulls/32","html_url":"https://github.com/ethz-asl/rovio/pull/32","diff_url":"https://github.com/ethz-asl/rovio/pull/32.diff","patch_url":"https://github.com/ethz-asl/rovio/pull/32.patch"},"body":"@bloesch, I updated the code so it can use OpenCV 3 libs/binaries. It already compiles but I get a seg fault when running any of the nodes. Using `gdb`, I get:\r\n```bash\r\nProgram received signal SIGSEGV, Segmentation fault.\r\n0x00007ffff6bb4282 in cv::Mat::copyTo(cv::_OutputArray const&) const () from /usr/lib/x86_64-linux-gnu/libopencv_core.so.2.4\r\n```\r\nThe above may be related to the fact that `libopencv-*2.4` is installed, but removing it breaks ROS install. If anyone has a recommendation on how to solve the symbolic link problem, I appreciate it, and everyone will benefit. It may be just a little detail in `CMakeLists.txt`, which I'm missing.\r\n\r\nRecommended: install OpenCV 3 by src. Seems like that the build doesn't link to `ros-<ros-distro>-opencv3`. If I remove `find_package(OpenCV REQUIRED)` and `target_link_libraries(${PROJECT_NAME} ... ${OpenCV_LIBS}`, it gets symbolic link errors during compile time."},"comment":{"url":"https://api.github.com/repos/ethz-asl/rovio/issues/comments/171654228","html_url":"https://github.com/ethz-asl/rovio/pull/32#issuecomment-171654228","issue_url":"https://api.github.com/repos/ethz-asl/rovio/issues/32","id":171654228,"user":{"login":"TSC21","id":5048656,"avatar_url":"https://avatars.githubusercontent.com/u/5048656?v=3","gravatar_id":"","url":"https://api.github.com/users/TSC21","html_url":"https://github.com/TSC21","followers_url":"https://api.github.com/users/TSC21/followers","following_url":"https://api.github.com/users/TSC21/following{/other_user}","gists_url":"https://api.github.com/users/TSC21/gists{/gist_id}","starred_url":"https://api.github.com/users/TSC21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TSC21/subscriptions","organizations_url":"https://api.github.com/users/TSC21/orgs","repos_url":"https://api.github.com/users/TSC21/repos","events_url":"https://api.github.com/users/TSC21/events{/privacy}","received_events_url":"https://api.github.com/users/TSC21/received_events","type":"User","site_admin":false},"created_at":"2016-01-14T14:14:01Z","updated_at":"2016-01-14T14:14:01Z","body":"> I compiled CV3 from source and compiled the dependent ROS packages from source.\r\n\r\nI've done the same earlier and it breaks. Have you tried this branch already and see how it goes?"}}