Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install_dependencies.sh fails if uvcdynctrl not installed #57

Closed
NovoG93 opened this issue Jan 7, 2022 · 9 comments
Closed

install_dependencies.sh fails if uvcdynctrl not installed #57

NovoG93 opened this issue Jan 7, 2022 · 9 comments

Comments

@NovoG93
Copy link

NovoG93 commented Jan 7, 2022

Hello there,

the install_dependencies.sh from http://docs.luxonis.com/_static/install_dependencies.sh fails on line 127 UVC_DYN_INSTALLED=$(dpkg-query -W --showformat='${Status}\n' uvcdynctrl|grep "install ok installed") if uvcdynctrl is not installed on the system.

UVC_DYN_INSTALLED=$(dpkg-query -W --showformat='${Status}\n' uvcdynctrl|grep "install ok installed") returns 1 if it is not installed and with set -e in line 3 the code exists here.

@saching13
Copy link
Contributor

it's an assignment to variable. it shouldn't exit for that. Are you using bash shell ? and can I know the system specs ?

@roni-kreinin
Copy link
Contributor

I am getting the same issue on an RPI4B 4GB.If I install uvcdynctrl then I get this error:

CMake Error at cmake/XLink.cmake:26 (message):
  libusb is required
Call Stack (most recent call first):
  CMakeLists.txt:8 (include)


-- Configuring incomplete, errors occurred!
See also "/root/.hunter/_Base/9b4e732/f61e57a/90457df/Build/XLink/Build/XLink-Release-prefix/src/XLink-Release-build/CMakeFiles/CMakeOutput.log".
See also "/root/.hunter/_Base/9b4e732/f61e57a/90457df/Build/XLink/Build/XLink-Release-prefix/src/XLink-Release-build/CMakeFiles/CMakeError.log".
make[2]: *** [CMakeFiles/XLink-Release.dir/build.make:111: XLink-Release-prefix/src/XLink-Release-stamp/XLink-Release-configure] Error 1
make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/XLink-Release.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

[hunter ** FATAL ERROR **] Build step failed (dir: /root/.hunter/_Base/9b4e732/f61e57a/90457df/Build/XLink
[hunter ** FATAL ERROR **] [Directory:/tmp/depthai-core/cmake]

------------------------------ ERROR -----------------------------
    https://hunter.readthedocs.io/en/latest/reference/errors/error.external.build.failed.html
------------------------------------------------------------------

CMake Error at /root/.hunter/_Base/Download/Hunter/0.23.320/9b4e732/Unpacked/cmake/modules/hunter_error_page.cmake:12 (message):
Call Stack (most recent call first):
  /root/.hunter/_Base/Download/Hunter/0.23.320/9b4e732/Unpacked/cmake/modules/hunter_fatal_error.cmake:20 (hunter_error_page)
  /root/.hunter/_Base/Download/Hunter/0.23.320/9b4e732/Unpacked/cmake/modules/hunter_download.cmake:623 (hunter_fatal_error)
  /root/.hunter/_Base/Download/Hunter/0.23.320/9b4e732/Unpacked/cmake/modules/hunter_add_package.cmake:53 (hunter_download)
  cmake/depthaiDependencies.cmake:9 (hunter_add_package)
  CMakeLists.txt:134 (include)


-- Configuring incomplete, errors occurred!
See also "/tmp/depthai-core/build/CMakeFiles/CMakeOutput.log".

@saching13
Copy link
Contributor

@themarpe any idea on this ?

@themarpe
Copy link

@roni-kreinin regarding your issue - can you install libusb dev library using: sudo apt install libusb-1.0-0-dev
Does that resolve the issue for you?

@saching13 can you try reproducing the OP issue? If it shows up, would be a blocker in those cases.

@roni-kreinin
Copy link
Contributor

@themarpe Yes this fixes the issue. I do still get the warning that I shouldn't have uvcdynctrl installed however.

@themarpe
Copy link

@roni-kreinin great
We are fixing the install_dependencies.sh script, which should address the rest of this issue:)

@NovoG93
Copy link
Author

NovoG93 commented Jan 21, 2022

ou try reproducing the

Yes I aam using bash shell.

OS: Ubuntu 20.04

@themarpe
Copy link

@NovoG93 the script should be updated now (luxonis/depthai-python#483)
Let us know if it works for you

@Serafadam
Copy link
Collaborator

Closing due to inactivity, if you think this should remain open, please tag me in a comment here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants