grumpy_visitors icon indicating copy to clipboard operation
grumpy_visitors copied to clipboard

Doesnt compile on Linux

Open Nutomic opened this issue 5 years ago • 1 comments

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

Nutomic avatar Sep 06 '20 16:09 Nutomic

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.

vladbat00 avatar Sep 30 '20 08:09 vladbat00