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

does not work on raspberry pi 4 #85

Open
AndroidDesigner opened this issue Jan 19, 2023 · 0 comments
Open

does not work on raspberry pi 4 #85

AndroidDesigner opened this issue Jan 19, 2023 · 0 comments

Comments

@AndroidDesigner
Copy link

Hello.
I have a simple flutter project that works fine in my Ubuntu system.
But when I run the project in a raspberrypi 4, it shows the below error:

flutter: `quick_usb` threw an error: Invalid argument(s): Failed to load dynamic library '/usr/local/bin/lib/libusb-1.0.23.so': /usr/local/bin/lib/libusb-1.0.23.so: cannot open shared object file: No such file or directory. The app may not function as expected until you remove this plugin from pubspec.yaml
[ERROR:flutter/shell/common/shell.cc(93)] Dart Unhandled Exception: Invalid argument(s): Failed to load dynamic library '/usr/local/bin/lib/libusb-1.0.23.so': /usr/local/bin/lib/libusb-1.0.23.so: cannot open shared object file: No such file or directory, stack trace: #0      _open (dart:ffi-patch/ffi_dynamic_library_patch.dart:12:43)
#1      new DynamicLibrary.open (dart:ffi-patch/ffi_dynamic_library_patch.dart:23:12)
#2      QuickUsbLinux.registerWith (package:quick_usb/src/quick_usb_desktop.dart:35:37)
#3      _PluginRegistrant.register (file:///home/user1/Documents/project/.dart_tool/flutter_build/dart_plugin_registrant.dart:104:23)

also running dpkg -l libusb-1.0* shows the below answer:

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                   Version      Architecture Description
+++-======================-============-============-===================================================
ii  libusb-1.0-0:arm64     2:1.0.24-3   arm64        userspace USB programming library
ii  libusb-1.0-0-dev:arm64 2:1.0.24-3   arm64        userspace USB programming library development files
ii  libusb-1.0-doc         2:1.0.24-3   all          documentation for userspace USB programming

How can I solve the problem?
Thanks.

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

1 participant