Extra packages needed to compile guide example on Linux Mint
Opened this issue · 1 comments
dfockler commented
When following the guide instructions I needed the python3-distutils
package as well as
sudo apt-get install libxcb-xfixes0-dev libxcb-shapes0-dev libxcb-render0-dev libx11-xcb-dev
in order to get the project to build. After this I was able to run the example. Below is the error and system specs
[ 4%] Generate tables based on the SPIR-V XML registry.
spirv-tools/source/CMakeFiles/core_tables.dir/build.make:72: recipe for target 'spirv-tools/generators.inc' failed
CMakeFiles/Makefile2:476: recipe for target 'spirv-tools/source/CMakeFiles/core_tables.dir/all' failed
Makefile:129: recipe for target 'all' failed
--- stderr
Traceback (most recent call last):
File "/home/daniel/.cargo/registry/src/github.com-1ecc6299db9ec823/shaderc-sys-0.6.1/build/spirv-tools/utils/generate_registry_tables.py", line 19, in <module>
import distutils.dir_util
ModuleNotFoundError: No module named 'distutils.dir_util'
make[2]: *** [spirv-tools/generators.inc] Error 1
make[1]: *** [spirv-tools/source/CMakeFiles/core_tables.dir/all] Error 2
make: *** [all] Error 2
thread 'main' panicked at '
command did not execute successfully, got: exit code: 2
build script failed, must exit now', /home/daniel/.cargo/registry/src/github.com-1ecc6299db9ec823/cmake-0.1.42/src/lib.rs:861:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
warning: build failed, waiting for other jobs to finish...
error: build failed
and
"/home/daniel/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-ebe4001ded7f33e7.rlib" "-Wl,-Bdynamic" "-ldl" "-ldl" "-lxcb" "-lxcb" "-lxcb" "-lxcb" "-lxcb-render" "-lxcb-shape" "-lxcb-xfixes" "-ldl" "-lutil" "-lutil" "-ldl" "-lrt" "-lpthread" "-lgcc_s" "-lc" "-lm" "-lrt" "-lpthread" "-lutil" "-lutil"
= note: /usr/bin/ld: cannot find -lxcb
/usr/bin/ld: cannot find -lxcb
/usr/bin/ld: cannot find -lxcb
/usr/bin/ld: cannot find -lxcb
/usr/bin/ld: cannot find -lxcb-render
/usr/bin/ld: cannot find -lxcb-shape
/usr/bin/ld: cannot find -lxcb-xfixes
collect2: error: ld returned 1 exit status
error: aborting due to previous error
error: could not compile `nannou`.
Linux Mint 19.2
Linux Kernel 4.15
Rust 1.39.0
Let me know if I can provide more info. Thanks!
mitchmindtree commented
Thanks for the report!