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

Cannot start example #2

Open
azlekov opened this issue Jul 10, 2024 · 1 comment
Open

Cannot start example #2

azlekov opened this issue Jul 10, 2024 · 1 comment

Comments

@azlekov
Copy link

azlekov commented Jul 10, 2024

In a newly created project I have added the dependency and copy uvc_example.dart, but when I start it, it gives me:

Syncing files to device macOS...
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: uvc: libusb dynamic library not found: Invalid argument(s): Failed to load dynamic library '/Users/azlekov/Library/Containers/app.dodi.uvcPoc/Data/libusb-1.0.27/libusb-1.0.0.dylib': dlopen(/Users/azlekov/Library/Containers/app.dodi.uvcPoc/Data/libusb-1.0.27/libusb-1.0.0.dylib, 0x0001): tried: '/Users/azlekov/Library/Containers/app.dodi.uvcPoc/Data/libusb-1.0.27/libusb-1.0.0.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/azlekov/Library/Containers/app.dodi.uvcPoc/Data/libusb-1.0.27/libusb-1.0.0.dylib' (no such file), '/Users/azlekov/Library/Containers/app.dodi.uvcPoc/Data/libusb-1.0.27/libusb-1.0.0.dylib' (no such file)
#0      UvcLib._loadLibrary (package:uvc/src/uvc_lib.dart:127:7)
#1      new UvcLib (package:uvc/src/uvc_lib.dart:22:19)
#2      main (package:uvc_poc/main.dart:4:15)
#3      _runMain.<anonymous closure> (dart:ui/hooks.dart:301:23)
#4      _delayEntrypointInvocation.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:297:19)
#5      _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:184:12)

I'm using Mac Studio M1

What I'm doing wrong?

And a question, is there a way to capture image from UVC camera with this library?

@larryaasen
Copy link
Owner

Thanks for trying out uvc. It does not support image capture at this time.

As for the error, I am not sure why it cannot find the libusb library. I will have to investigate this more.

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

2 participants