amethyst / grumpy_visitors

🧙‍♂️🧙‍♀️ A prototype of a top-down EvilInvasion-like 2D arcade/action (with co-op!)
https://mvlabat.github.io/
MIT License
77 stars 13 forks source link

Doesnt compile on Linux #60

Open Nutomic opened 4 years ago

Nutomic commented 4 years ago

I wanted to give this project a try, but the client throws errors in the build. It seems like I need to install some libraries, would be nice if you could provide a full list of dependencies.

$ cargo build -p gv_server
Finished dev [unoptimized + debuginfo] target(s) in 1.02s
$ cargo -Z features=itarget build -p gv_client
Compiling shaderc-sys v0.5.1
Compiling gfx-backend-vulkan v0.3.3
Compiling imgui-winit-support v0.2.1
error: could not find native static library `SPIRV-Tools-opt`, perhaps an -L flag is missing?

Compiling shaderc v0.5.1
error: aborting due to previous error

The following warnings were emitted during compilation:

warning: Checking for system installed libraries.  Use --features = build-from-source to disable this behavior
warning: Found SPIRV.  Linking libSPIRV & libglslang

error: could not compile `shaderc-sys`.

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed
mvlabat commented 4 years ago

Hey, sorry it took me a while to answer. Are you on Arch? There's a fix in shaderc-sys that should help you. Unfortunately, Amethyst and rendy aren't on that version of shaderc yet (if I haven't missed anything).

https://github.com/google/shaderc-rs/commit/69adfd69a3435b5ac4ef4d131fccb884520414aa

I'll keep this issue open to track the update to a newer version of Amethyst, once the fix is available there.