Compiling on Os X
materialjan opened this issue · comments
materialjan commented
Hello and first of all thank you for releasing this, this is fantastic.
I have trouble compiling on os x:
When I do cargo install --path=.
I get :
MacBook:texture-synthesis-master-2 macbook$ cargo install --path=.
error: found a virtual manifest at `/Users/macbook/Desktop/Downloads/texture-synthesis-master-2/Cargo.toml` instead of a package manifest
Or if I try to run the example :
cargo run --release -- --out out/01.jpg generate imgs/1.jpg
...
Compiling indicatif v0.12.0
Compiling texture-synthesis v0.6.0 (/Users/macbook/Desktop/Downloads/texture-synthesis-master-2/lib)
error: enum variants on type aliases are experimental
--> lib/src/lib.rs:198:13
|
198 | Self::Ignore => true,
| ^^^^^^^^^^^^
error: enum variants on type aliases are experimental
--> lib/src/lib.rs:224:13
|
224 | Self::Ignore => true,
| ^^^^^^^^^^^^
error: enum variants on type aliases are experimental
--> lib/src/errors.rs:62:13
|
62 | Self::Image(ie) => write!(f, "{}", ie),
| ^^^^^^^^^^^^^^^
error: enum variants on type aliases are experimental
--> lib/src/errors.rs:63:13
|
63 | Self::InvalidRange(ir) => write!(f, "{}", ir),
| ^^^^^^^^^^^^^^^^^^^^^^
error: enum variants on type aliases are experimental
--> lib/src/errors.rs:64:13
|
64 | Self::SizeMismatch(sm) => write!(f, "{}", sm),
| ^^^^^^^^^^^^^^^^^^^^^^
error: enum variants on type aliases are experimental
--> lib/src/errors.rs:65:13
|
65 | Self::ExampleGuideMismatch(examples, guides) => {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: enum variants on type aliases are experimental
--> lib/src/errors.rs:80:13
|
80 | Self::Io(io) => write!(f, "{}", io),
| ^^^^^^^^^^^^
error: enum variants on type aliases are experimental
--> lib/src/errors.rs:81:13
|
81 | Self::UnsupportedOutputFormat(fmt) => {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: enum variants on type aliases are experimental
--> lib/src/errors.rs:84:13
|
84 | Self::NoExamples => write!(
| ^^^^^^^^^^^^^^^^
error: enum variants on type aliases are experimental
--> lib/src/errors.rs:97:9
|
97 | Self::Image(ie)
| ^^^^^^^^^^^
error: enum variants on type aliases are experimental
--> lib/src/errors.rs:103:9
|
103 | Self::Io(io)
| ^^^^^^^^
error: enum variants on type aliases are experimental
--> lib/src/utils.rs:28:9
|
28 | Self::Path(path.as_ref())
| ^^^^^^^^^^
error: aborting due to 12 previous errors
error: Could not compile `texture-synthesis`.
warning: build failed, waiting for other jobs to finish...
error: build failed
I'm on OS 10.13.6
and installed rust like this :
curl https://sh.rustup.rs -sSf | sh
Jake Shadle commented
Oh no! I'll update the README, but you need to use cargo install --path=cli
to install via cargo. Also you need at least Rust 1.37.0 to compile this project, you can update your rust versions by running rustup update stable
materialjan commented
Great that worked, thank you !