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

Problem with gdk-sys #1

Closed
rpruizc opened this issue May 17, 2023 · 4 comments
Closed

Problem with gdk-sys #1

rpruizc opened this issue May 17, 2023 · 4 comments

Comments

@rpruizc
Copy link

rpruizc commented May 17, 2023

Hello team,
I currently need help implementing the aptabase plugin with tauri. This error message can explain it better than I can:

Updating crates.io index
error: failed to select a version for gdk-sys.
... required by package webkit2gtk v0.19.1
... which satisfies dependency webkit2gtk = "^0.19.1" of package tauri v2.0.0-alpha.8
... which satisfies dependency tauri = "^2.0.0-alpha.8" of package xyz v0.0.1 (/xyz)
versions that meet the requirements ^0.16.0 are: 0.16.0

the package gdk-sys links to the native library gdk-3, but it conflicts with a previous package which links to gdk-3 as well:
package gdk-sys v0.15.1
... which satisfies dependency ffi = "^0.15.1" of package gdk v0.15.4
... which satisfies dependency gdk = "^0.15.0" of package webkit2gtk v0.18.2
... which satisfies dependency webkit2gtk = "^0.18.2" of package tauri-runtime-wry v0.13.0
... which satisfies dependency tauri-runtime-wry = "^0.13.0-alpha.4" of package tauri v2.0.0-alpha.8
... which satisfies dependency tauri = "^2.0.0-alpha.8" of package xyz v0.0.1 (/xyz)
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 ='gdk-sys' value. For more information, see https://doc.rust-lang.org/cargo/reference/resolver.html#links.

failed to select a version for gdk-sys which could resolve this conflict

I would appreciate any pointers to figure it out, as this error occurs after updating my Cargo.toml file.

Thanks!

@goenning
Copy link
Member

Hey @rpruizc

That's because this plugin does not yet support tauri v2 as it's still in alpha. But let me see what I can do, I might be able to release an alpha version of this plugin as well.

@rpruizc
Copy link
Author

rpruizc commented May 17, 2023

Awesome, thank you. I am not using alpha in production yet, but we are developing heavily with it. I'll be happy to supply any insights from my work with aptabase on alpha tauri

@goenning
Copy link
Member

goenning commented May 17, 2023

I'll keep support for alpha on a branch like they do with the official plugins, so try this:

tauri-plugin-aptabase = { git = "https://github.com/aptabase/tauri-plugin-aptabase", branch = "next" }

@rpruizc
Copy link
Author

rpruizc commented May 17, 2023

Up and running! 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

2 participants