calebwin / emu

The write-once-run-anywhere GPGPU library for Rust
https://calebwin.github.io/emu
MIT License
1.59k stars 53 forks source link

Unable to run on Ubuntu 20.04 due to python command #43

Closed vadixidav closed 4 years ago

vadixidav commented 4 years ago

Hey! I noticed that when I tried to run the basic example that I was unable to. The reason seems to be that it runs the python command. Unfortunately, on my system (Ubuntu 20.04), I didn't have this command set, as I only had python3. I got around this by using update-alternatives as per this documentation.

Here is the error I got:

cargo run --features glsl-compile --release --example basic
   Compiling shaderc-sys v0.6.2
The following warnings were emitted during compilation:

warning: Checking for system installed libraries.  Use --features = build-from-source to disable this behavior
warning: System installed library not found.  Falling back to build from source

error: failed to run custom build command for `shaderc-sys v0.6.2`

Caused by:
  process didn't exit successfully: `/home/vax/code/emu/target/release/build/shaderc-sys-53b173bc91346eab/build-script-build` (exit code: 101)
--- stdout
cargo:warning=Checking for system installed libraries.  Use --features = build-from-source to disable this behavior
cargo:warning=System installed library not found.  Falling back to build from source

--- stderr
thread 'main' panicked at '

couldn't find required command: "python"

', /home/vax/.cargo/registry/src/github.com-1ecc6299db9ec823/shaderc-sys-0.6.2/build/cmd_finder.rs:50:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
calebwin commented 4 years ago

Thanks for posting an issue for this! It seems like this has to do with the way shaderc gets compiled. Since there's a work-around I'm going to close this.