3 ms·
Couldn't run the example on Ubuntu 16.10 Would appreciate anyone's help to get it running: ~/dev/rust/pathfinder$ cargo run --release --example lorem-ipsum -
by sushidev 10y ago
Couldn't run the example on Ubuntu 16.10
Would appreciate anyone's help to get it running:
~/dev/rust/pathfinder$ cargo run --release --example lorem-ipsum -- resources/tests/nimbus-sans/NimbusSanL-Regu.ttf
Downloading clap v2.20.3
Downloading image v0.12.3
Downloading bencher v0.1.2
Downloading quickcheck v0.4.1
Downloading semver v0.2.3
Downloading glfw-sys v3.2.1
Downloading enum_primitive v0.1.1
Downloading nom v1.2.4
Downloading cmake v0.1.20
Downloading gcc v0.3.43
Downloading vec_map v0.6.0
Downloading unicode-segmentation v1.1.0
Downloading ansi_term v0.9.0
Downloading unicode-width v0.1.4
Downloading term_size v0.2.2
Downloading strsim v0.6.0
Downloading gif v0.9.0
Downloading glob v0.2.11
Downloading png v0.6.2
Downloading scoped_threadpool v0.1.7
Downloading jpeg-decoder v0.1.11
Downloading color_quant v1.0.0
Downloading lzw v0.10.0
Downloading inflate v0.1.1
Downloading deflate v0.7.4
Downloading adler32 v0.3.0
Downloading rayon v0.6.0
Downloading deque v0.3.1
Downloading num_cpus v1.2.1
Downloading env_logger v0.3.5
Downloading regex v0.1.80
Downloading aho-corasick v0.5.3
Downloading thread_local v0.2.7
Downloading regex-syntax v0.3.9
Downloading memchr v0.1.11
Downloading utf8-ranges v0.1.3
Downloading thread-id v2.0.0
Compiling adler32 v0.3.0
Compiling utf8-ranges v0.1.3
Compiling ansi_term v0.9.0
Compiling color_quant v1.0.0
Compiling term_size v0.2.2
Compiling enum_primitive v0.1.1
Compiling lzw v0.10.0
Compiling scoped_threadpool v0.1.7
Compiling bencher v0.1.2
Compiling winapi-build v0.1.1
Compiling inflate v0.1.1
Compiling unicode-width v0.1.4
Compiling unicode-segmentation v1.1.0
Compiling glob v0.2.11
Compiling nom v1.2.4
Compiling gif v0.9.0
Compiling num-integer v0.1.32
Compiling rand v0.3.15
Compiling memchr v0.1.11
Compiling aho-corasick v0.5.3
Compiling regex-syntax v0.3.9
Compiling deflate v0.7.4
Compiling gcc v0.3.43
Compiling semver v0.2.3
Compiling strsim v0.6.0
Compiling deque v0.3.1
Compiling winapi v0.2.8
Compiling num_cpus v1.2.1
Compiling vec_map v0.6.0
Compiling lord-drawquaad v0.1.0 (https://github.com/pcwalton/lord-drawquaad.git#171a2507)
Compiling num-iter v0.1.32
Compiling kernel32-sys v0.2.2
Compiling clap v2.20.3
Compiling num-complex v0.1.35
Compiling thread-id v2.0.0
Compiling thread_local v0.2.7
Compiling num-bigint v0.1.35
Compiling rayon v0.6.0
Compiling cmake v0.1.20
Compiling jpeg-decoder v0.1.11
Compiling num-rational v0.1.35
Compiling num v0.1.36
Compiling glfw-sys v3.2.1
error: failed to run custom build command for `glfw-sys v3.2.1`
process didn't exit successfully: `/home/mich/dev/rust/pathfinder/target/release/build/glfw-sys-66de5311db1a83bd/build-script-build` (exit code: 101)
--- stdout
running: "cmake" "/home/mich/.cargo/registry/src/github.com-1ecc6299db9ec823/glfw-sys-3.2.1/." "-DGLFW_BUILD_EXAMPLES=OFF" "-DGLFW_BUILD_TESTS=OFF" "-DGLFW_BUILD_DOCS=OFF" "-DCMAKE_INSTALL_PREFIX=/home/mich/dev/rust/pathfinder/target/release/build/glfw-sys-79c50ef4a5edfcd6/out" "-DCMAKE_C_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_C_COMPILER=/usr/bin/cc" "-DCMAKE_CXX_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_CXX_COMPILER=/usr/bin/c++" "-DCMAKE_BUILD_TYPE=Release"
-- The C compiler identification is GNU 6.2.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Could NOT find Vulkan (missing: VULKAN_LIBRARY VULKAN_INCLUDE_DIR)
-- Using X11 for window creation
-- Configuring incomplete, errors occurred!
See also "/home/mich/dev/rust/pathfinder/target/release/build/glfw-sys-79c50ef4a5edfcd6/out/build/CMakeFiles/CMakeOutput.log".
See also "/home/mich/dev/rust/pathfinder/target/release/build/glfw-sys-79c50ef4a5edfcd6/out/build/CMakeFiles/CMakeError.log".
--- stderr
CMake Error at /usr/share/cmake-3.5/Modules/FindX11.cmake:439 (message):
Could not find X11
Call Stack (most recent call first):
CMakeLists.txt:192 (find_package)
thread 'main' panicked at '
command did not execute successfully, got: exit code: 1
build script failed, must exit now', /home/mich/.cargo/registry/src/github.com-1ecc6299db9ec823/cmake-0.1.20/src/lib.rs:573
note: Run with `RUST_BACKTRACE=1` for a backtrace.
Build failed, waiting for other jobs to finish...
error: build failed
- pcwalton 10y agoLooks like you're missing the X11 development packages.
- sushidev 10y agoThanks! ran this: sudo apt-get install xorg-dev and then this: sudo apt-get install freeglut3 freeglut3-dev libglew1.5 libglew1.5-dev libglu1-mesa libglu1-mesa-dev libgl1-mesa-glx libgl1-mesa-dev And that fixed the problem
- deleted 10y ago[deleted]
- mastax 10y agopcwalton is right, but specifically, you should install `libglfw3-dev` (which depends on `libx11-6`).
- eridius 10y agoBTW if you prefix lines with 2 spaces you get unformatted text including newlines
- sushidev 10y agoThanks for the advice. Edited comment with double-space prefix.
- adwhit 10y agoYou need glfw3. sudo apt-get install libglfw3 libglfw3-dev