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 compile on windows #6

Closed
TailyFair opened this issue Aug 26, 2019 · 4 comments
Closed

Does not compile on windows #6

TailyFair opened this issue Aug 26, 2019 · 4 comments
Labels
platform:windows type:bug Something isn't working

Comments

@TailyFair
Copy link

TailyFair commented Aug 26, 2019

Compilation fails on Windows 10.
Windows 10 Pro 1903
stable-x86_64-pc-windows-msvc (default)
rustc 1.37.0 (eae3437df 2019-08-13)

   Compiling rx v0.1.0 (https://github.com/cloudhead/rx#af68f1f3)
error[E0433]: failed to resolve: could not find `BaseDirectories` in `xdg`
  --> C:\Users\User\.cargo\git\checkouts\rx-bc40bbadcd2c4422\af68f1f\src\lib.rs:79:26
   |
79 |     let base_dirs = xdg::BaseDirectories::with_prefix("rx")?;
   |                          ^^^^^^^^^^^^^^^ could not find `BaseDirectories` in `xdg`

error[E0412]: cannot find type `BaseDirectories` in module `xdg`
   --> C:\Users\User\.cargo\git\checkouts\rx-bc40bbadcd2c4422\af68f1f\src\session.rs:248:21
    |
248 |     base_dirs: xdg::BaseDirectories,
    |                     ^^^^^^^^^^^^^^^ not found in `xdg`

error[E0412]: cannot find type `BaseDirectories` in module `xdg`
   --> C:\Users\User\.cargo\git\checkouts\rx-bc40bbadcd2c4422\af68f1f\src\session.rs:331:25
    |
331 |         base_dirs: xdg::BaseDirectories,
    |                         ^^^^^^^^^^^^^^^ not found in `xdg`

error: aborting due to 3 previous errors

Some errors have detailed explanations: E0412, E0433.
For more information about an error, try `rustc --explain E0412`.
error: failed to compile `rx v0.1.0 (https://github.com/cloudhead/rx#af68f1f3)`, intermediate artifacts can be found at `C:\Users\User\AppData\Local\Temp\cargo-installGlInKN`

Similar issue found in todotxt-rs/effitask#8 (comment)

@cloudhead
Copy link
Owner

Thanks, looks like I'll have to switch to the directories crate.

@cloudhead cloudhead added type:bug Something isn't working platform:windows labels Aug 27, 2019
@cloudhead
Copy link
Owner

Hey I've switched to the directories crate - do you mind trying this out again with master? Note that you have to specify two features at the moment: --features winit,dx12 for example.

@TailyFair
Copy link
Author

It compiles now :)

@cloudhead
Copy link
Owner

Cool, I'll close this - feel free to open another issue if something else doesn't work on windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform:windows type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants