Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

Does not compile because of glium #28

Open
Bixilon opened this issue May 16, 2020 · 3 comments · May be fixed by #30
Open

Does not compile because of glium #28

Bixilon opened this issue May 16, 2020 · 3 comments · May be fixed by #30

Comments

@Bixilon
Copy link

Bixilon commented May 16, 2020

Expected Behavior 🤔

Compile and run

Current Behavior 😔

It does not compile:

error: failed to select a version for `glium`.
    ... required by package `litecraft v0.1.0 (/home/moritz/Litecraft)`
versions that meet the requirements `*` are: 0.26.0-alpha3

the package `litecraft` depends on `glium`, with features: `icon_loading` but `glium` does not have these features.


failed to select a version for `glium` which could resolve this conflict

Steps to Reproduce 😱

  1. git clone https://github.com/KernelFreeze/Litecraft.git
  2. cargo run

Context (Environment) 🤨

Kubuntu 20.4 with rustc 1.43.0 (4fb7144ed 2020-04-20)

@Juliaria08
Copy link

Juliaria08 commented Jun 1, 2020

The same
On win 64

@TecnaGamer
Copy link

Same on macOS

@iceiix
Copy link

iceiix commented Dec 28, 2020

The problem seems to be how these local dependencies are specified, somehow picking up version * instead of the git repo. Replacing these sections in Cargo.toml:

[dependencies.conrod]
git = "https://github.com/Litecrafty/conrod"
features = ["glium", "winit"]

[dependencies.glium]
git = "https://github.com/Litecrafty/glium"
features = ["icon_loading"]

with this syntax:

conrod = { git = "https://github.com/Litecrafty/conrod", features = ["glium", "winit"] }
glium = { git = "https://github.com/Litecrafty/glium", features = ["icon_loading"] }

fixes the "glium, with features: icon_loadingbutglium` does not have these features." error, but then it hits: #21

iceiix added a commit to iceiix/Litecraft that referenced this issue Dec 28, 2020
@iceiix iceiix linked a pull request Dec 28, 2020 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants