Open wiiznokes opened 1 year ago
I'm trying to get all of the examples to work for my multi-size text PR, and I've encountered this issue compiling on Windows 10.
I've done some investigation:
libcosmic
pins a forked version of iced
(containing iced_winit
).iced_winit
also separately pins a forked version of winit
.iced_winit
expects a winit = "0.28"
-like API
// essentially: winit::window::WindowBuilder::with_parent_window(self, parent: Option<RawWindowHandle>)
winit
is a winit = "0.27"
-like API
// essentially: type HWND = isize; <winit::window::WindowBuilder as winit::platform::windows::WindowBuilderExtWindows>::with_parent_window(self, parent: HWND)
https://github.com/pop-os/winit/blob/iced/src/platform/windows.rs#L15
I tried to get the example running on Windows 10. The commit that is currently used for libcosmic
is e3f30a1
which is from August 16th. I used the latest revision and am now getting a different error:
error[E0433]: failed to resolve: use of undeclared crate or module `freedesktop_icons`
--> C:\Users\asdf\.cargo\git\checkouts\libcosmic-b367e32ffc370f4f\470b966\src\widget\icon\named.rs:51:34
|
51 | let mut lookup = freedesktop_icons::lookup(name)
| ^^^^^^^^^^^^^^^^^ use of undeclared crate or module `freedesktop_icons`
freedesktop-icons
is listed as a Unix dependency in Cargo.toml
. I tried compiling it on windows but got this error:
error[E0432]: unresolved import `xdg::BaseDirectories`
--> C:\Users\asdf\.cargo\registry\src\index.crates.io-6f17d22bba15001f\freedesktop-icons-0.2.4\src\theme\paths.rs:7:5
|
7 | use xdg::BaseDirectories;
| ^^^^^^^^^^^^^^^^^^^^ no `BaseDirectories` in the root
That's as far down the rabbit hole I went, as xdg
looks to be another Unix-specific crate. This issue created by another Windows user also mentions xdg::BaseDirectories
.
platform: Windows 10