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

windows support? #40

Open
davehorner opened this issue Jan 20, 2024 · 1 comment
Open

windows support? #40

davehorner opened this issue Jan 20, 2024 · 1 comment

Comments

@davehorner
Copy link

no font-kit/fontconfig on windows.

      Adding show-image v0.13.1 to dev-dependencies.
             Features:
             + macros
             + show-image-macros
             - doc-only
             - full
             - image
             - log
             - nightly
             - png
             - raqote
             - save
             - tch
             - tinyfiledialogs
    Updating crates.io index
error: failed to select a version for `yeslogic-fontconfig-sys`.
    ... required by package `font-kit v0.11.0`
    ... which satisfies dependency `font-kit = "^0.11.0"` of package 
versions that meet the requirements `^3.0.0` are: 3.2.0, 3.1.0, 3.0.1, 3.0.0

the package `yeslogic-fontconfig-sys` links to the native library `fontconfig`, but it conflicts with a previous package which links to `fontconfig` as well:
package `servo-fontconfig-sys v5.1.0`
    ... which satisfies dependency `servo-fontconfig-sys = "^5.1.0"` of package `servo-fontconfig v0.5.1`
    ... which satisfies dependency `servo-fontconfig = "^0.5.1"` of package `crossfont v0.5.0`
    ... which satisfies dependency `crossfont = "^0.5.0"` of package `sctk-adwaita v0.4.1`
    ... which satisfies dependency `sctk-adwaita = "^0.4.1"` of package `winit v0.27.3`
    ... which satisfies dependency `winit = "^0.27.3"` of package `show-image v0.13.1`
    ... which satisfies dependency `show-image = "^0.13.1"` of package `rust_mpv v0.1.0 (C:\w\rust_mpv)`
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 ='yeslogic-fontconfig-sys' value. For more information, see https://doc.rust-lang.org/cargo/reference/resolver.html#links.

failed to select a version for `yeslogic-fontconfig-sys` which could resolve this conflict
@davehorner
Copy link
Author

davehorner commented Jan 20, 2024

testing in show-image-rs repo.

set LIBTORCH_USE_PYTORCH=1
set LIBTORCH_BYPASS_VERSION_CHECK=1

I had to update tch dep to in Cargo.toml to 0.14.0 to get it to work and now I'm on to trying to figure out the best way to surface torch_cpu.dll and c10.dll from the pytorch libtorch if that is possible. tch feature is in full. I just clone'd and would have thought the default would not require libtorch to get started.

so I guess with some more work, it appears it might work. I'm not sure why I'm getting the font issue when using it from outside show-image-rs repo.

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