Open canadaduane opened 5 years ago
This looks like trying to build windows-specific code on a non-windows platform. That shouldn't be happening. What platform are you on? Are you setting any features explicitly?
I'm on Mac OS. I just checked the repo out and did "cargo build" in the root, so I'm not aware of setting any features.
On Fri, Jan 25, 2019 at 8:38 PM Raph Levien notifications@github.com wrote:
This looks like trying to build windows-specific code on a non-windows platform. That shouldn't be happening. What platform are you on? Are you setting any features explicitly?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/linebender/piet/issues/33#issuecomment-457798042, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAAgY7DBmAvOp4W-8u_seXq5ndZkCj4ks5vG83FgaJpZM4aT9tI .
Ah, got it. Building the workspace tries to build all the subcrates, including direct2d, which isn't going to work. What should work is cargo run --example basic-cairo
, assuming the Cairo prerequisites have been installed. We should probably update the README to reflect this.
We could also update the piet-direct2d crate so that nothing gets built on non-windows platforms.
Thanks, that's exactly what I was looking for.
On Fri, Jan 25, 2019 at 8:47 PM Raph Levien notifications@github.com wrote:
Ah, got it. Building the workspace tries to build all the subcrates, including direct2d, which isn't going to work. What should work is cargo run --example basic-cairo, assuming the Cairo prerequisites have been installed. We should probably update the README to reflect this.
We could also update the piet-direct2d crate so that nothing gets built on non-windows platforms.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/linebender/piet/issues/33#issuecomment-457798591, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAAgQgzAnpF-cZN2o-zAIkpDHbOWLDyks5vG8_igaJpZM4aT9tI .
Specifying default-members
in the workspace’s manifest could help: https://doc.rust-lang.org/cargo/reference/manifest.html#package-selection
I am (probably naively) trying to run "cargo build" on a fresh pull of
piet
and I'm seeing several errors in the build, e.g.:I assume that as a new user of rust I just don't know what I'm doing :)