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

How can i integrate libusb for windows for tauri application #5

Open
rizwan92 opened this issue Oct 4, 2022 · 2 comments
Open

How can i integrate libusb for windows for tauri application #5

rizwan92 opened this issue Oct 4, 2022 · 2 comments

Comments

@rizwan92
Copy link

rizwan92 commented Oct 4, 2022

i am facing few dependencies links with native binary issue please help

error: failed to select a version for `libusb1-sys`.
    ... required by package `rusb v0.9.1`
    ... which satisfies dependency `rusb = "^0.9.1"` of package `app v0.1.0 (C:\Users\irfan\Desktop\Mustafa\chikupos-software\src-tauri)`
versions that meet the requirements `^0.6.0` are: 0.6.4, 0.6.3, 0.6.2, 0.6.1, 0.6.0

the package `libusb1-sys` links to the native library `usb-1.0`, but it conflicts with a previous package which links to `usb-1.0` as well:
package `libusb1-sys v0.5.0`
    ... which satisfies dependency `libusb1-sys = "^0.5.0"` of package `rusb v0.8.1`
    ... which satisfies dependency `rusb = "^0.8.1"` of package `escpos-rs v0.3.1`
    ... which satisfies dependency `escpos-rs = "^0.3.1"` of package `app v0.1.0 (C:\Users\irfan\Desktop\Mustafa\chikupos-software\src-tauri)`
Only one package in the dependency graph may specify the same links value. This helps ensure that only one copy of a native library is linked in the final binary. Try to adjust your dependencies so that only one package uses the links ='libusb1-sys' value. For more information, see https://doc.rust-lang.org/cargo/reference/resolver.html#links.

failed to select a version for `libusb1-sys` which could resolve this conflict
[0] less-watch-compiler --config less-watcher.config.json exited with code 4294967295
--> Sending SIGTERM to other processes..
[1]  set PORT=3001 && react-scripts  start exited with code 1
🚀 A new version of Tauri CLI is available! [1.1.1]

@rizwan92
Copy link
Author

rizwan92 commented Oct 5, 2022

i am facing new issue

       Uncaught (in promise) Error: rusb error: Operation not supported or unimplemented on this platform

@odahcam
Copy link

odahcam commented Apr 4, 2023

I'd like to do the same, but I think based on this issue I can quit this lib.

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