{"action":"created","issue":{"url":"https://api.github.com/repos/code-iai/iai_kinect2/issues/9","labels_url":"https://api.github.com/repos/code-iai/iai_kinect2/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/code-iai/iai_kinect2/issues/9/comments","events_url":"https://api.github.com/repos/code-iai/iai_kinect2/issues/9/events","html_url":"https://github.com/code-iai/iai_kinect2/issues/9","id":46710172,"number":9,"title":"Install on Ubuntu 14.04","user":{"login":"davetcoleman","id":561060,"avatar_url":"https://avatars.githubusercontent.com/u/561060?v=3","gravatar_id":"","url":"https://api.github.com/users/davetcoleman","html_url":"https://github.com/davetcoleman","followers_url":"https://api.github.com/users/davetcoleman/followers","following_url":"https://api.github.com/users/davetcoleman/following{/other_user}","gists_url":"https://api.github.com/users/davetcoleman/gists{/gist_id}","starred_url":"https://api.github.com/users/davetcoleman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davetcoleman/subscriptions","organizations_url":"https://api.github.com/users/davetcoleman/orgs","repos_url":"https://api.github.com/users/davetcoleman/repos","events_url":"https://api.github.com/users/davetcoleman/events{/privacy}","received_events_url":"https://api.github.com/users/davetcoleman/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2014-10-24T07:12:01Z","updated_at":"2015-01-15T12:03:16Z","closed_at":"2014-10-28T01:38:12Z","body":"I am having problems installing the dependencies - I'm taking notes to improve the documentation but please help me figure it out...\r\n\r\nFirst install basic dependencies: \r\n\r\n    sudo apt-get install libusb-dev libturbojpeg opencl-headers \r\n\r\nThen install\r\n\r\n    git clone https://github.com/wiedemeyer/libfreenect2.git\r\n    cd libfreenect2/depends\r\n    sh install_ubuntu.sh\r\n\r\n    # might be required:\r\n    sudo ln -s /usr/lib/x86_64-linux-gnu/libturbojpeg.so.0.0.0 /usr/lib/x86_64-linux-gnu/libturbojpeg.so\r\n\r\n    # continue:\r\n    cd ../examples/protonect/\r\n    cmake CMakeLists.txt\r\n    make && sudo make install\r\n\r\nBut then I get the error \r\n\r\n```\r\nLinking C shared library /home/dave/ros/ws_base/src/libfreenect2/examples/protonect/lib/libglfw.so\r\n[ 46%] Built target glfw\r\nLinking CXX executable bin/generate_resources_tool\r\n[ 48%] Built target generate_resources_tool\r\n[ 51%] Generating src/resources.inc\r\nScanning dependencies of target freenect2\r\n[ 53%] Building CXX object CMakeFiles/freenect2.dir/src/transfer_pool.cpp.o\r\nIn file included from /home/dave/ros/ws_base/src/libfreenect2/examples/protonect/src/transfer_pool.cpp:27:0:\r\n/home/dave/ros/ws_base/src/libfreenect2/examples/protonect/include/libfreenect2/usb/transfer_pool.h:30:20: fatal error: libusb.h: No such file or directory\r\n #include <libusb.h>\r\n                    ^\r\ncompilation terminated.\r\n```\r\n\r\nIt appears it is looking for a directoy that does not exist in the CMakeLists.txt:\r\n\r\n```\r\nINCLUDE_DIRECTORIES(\"${DEPENDS_DIR}/libusb/include/libusb-1.0/\")\r\n```\r\nBecause libusb has been renamed to libusb_src in the repo. Also, there does not appear to be any include subfolder in that libusb_src folder.\r\n\r\nI have double checked that I have the following Ubuntu packages installed:\r\n\r\n- libusb-0.1-4\r\n- libusb-1.0.0\r\n- libusb-1.0.0-dev\r\n- libusb-1.0-doc\r\n- libusb-dev\r\n- libusbmuxd2\r\n\r\nAny help is appreciated! \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/code-iai/iai_kinect2/issues/comments/70076318","html_url":"https://github.com/code-iai/iai_kinect2/issues/9#issuecomment-70076318","issue_url":"https://api.github.com/repos/code-iai/iai_kinect2/issues/9","id":70076318,"user":{"login":"DrFuzzy","id":2931532,"avatar_url":"https://avatars.githubusercontent.com/u/2931532?v=3","gravatar_id":"","url":"https://api.github.com/users/DrFuzzy","html_url":"https://github.com/DrFuzzy","followers_url":"https://api.github.com/users/DrFuzzy/followers","following_url":"https://api.github.com/users/DrFuzzy/following{/other_user}","gists_url":"https://api.github.com/users/DrFuzzy/gists{/gist_id}","starred_url":"https://api.github.com/users/DrFuzzy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DrFuzzy/subscriptions","organizations_url":"https://api.github.com/users/DrFuzzy/orgs","repos_url":"https://api.github.com/users/DrFuzzy/repos","events_url":"https://api.github.com/users/DrFuzzy/events{/privacy}","received_events_url":"https://api.github.com/users/DrFuzzy/received_events","type":"User","site_admin":false},"created_at":"2015-01-15T12:03:16Z","updated_at":"2015-01-15T12:03:16Z","body":"I have set the device permissions. Nope, same issue with sudo:\r\n\r\ndelk@Darwin:~/libfreenect2/examples/protonect$ sudo ./bin/Protonect\r\n[sudo] password for delk: \r\n[Freenect2Impl] enumerating devices...\r\n[Freenect2Impl] 11 usb devices connected\r\n[Freenect2Impl] found valid Kinect v2 @2:4 with serial 503526742542\r\n[Freenect2Impl] found 1 devices\r\n[Freenect2DeviceImpl] opening...\r\n[UsbControl::claimInterfaces(IrInterfaceId)] failed! libusb error -6: LIBUSB_ERROR_BUSY\r\n[Freenect2DeviceImpl] closing...\r\n[Freenect2DeviceImpl] deallocating usb transfer pools...\r\n[Freenect2DeviceImpl] closing usb device...\r\n[Freenect2DeviceImpl] closed\r\n[Freenect2DeviceImpl] failed to open Kinect v2 @2:4!\r\nno device connected or failure opening the default one!\r\n\r\n"}}