Closed Serif-7 closed 3 years ago
Have you tried what is suggested?
I think for your OS you would run sudo apt-get install libxrandr-dev
or perhaps xorg-dev
might have the headers.
@cloudhead
Here is the output when I ran the build command given in README.md (not the one on the site. I don't believe they are substantially different, though) This was after installing libxrandr-dev
error: failed to run custom build command for `glfw-sys v3.3.2`
Caused by:
process didn't exit successfully: `/home/daniel/src/rx/target/release/build/glfw-sys-26b6f559dd8ddb15/build-script-build` (exit code: 101)
--- stdout
running: "cmake" "/home/daniel/.cargo/registry/src/github.com-1ecc6299db9ec823/glfw-sys-3.3.2/." "-DGLFW_BUILD_EXAMPLES=OFF" "-DGLFW_BUILD_TESTS=OFF" "-DGLFW_BUILD_DOCS=OFF" "-DCMAKE_INSTALL_LIBDIR=lib" "-DCMAKE_INSTALL_PREFIX=/home/daniel/src/rx/target/release/build/glfw-sys-1bc049f465ed05b5/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 9.3.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
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- 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
-- Using X11 for window creation
-- Found X11: /usr/include
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Configuring incomplete, errors occurred!
See also "/home/daniel/src/rx/target/release/build/glfw-sys-1bc049f465ed05b5/out/build/CMakeFiles/CMakeOutput.log".
See also "/home/daniel/src/rx/target/release/build/glfw-sys-1bc049f465ed05b5/out/build/CMakeFiles/CMakeError.log".
--- stderr
CMake Error at CMakeLists.txt:211 (message):
Xinerama headers not found; install libxinerama development package
thread 'main' panicked at '
command did not execute successfully, got: exit code: 1
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: failed to compile `rx v0.4.0 (/home/daniel/src/rx)`, intermediate artifacts can be found at `/home/daniel/src/rx/target`
Caused by:
build failed
Now it conveniently tells me to install libxinerama-dev
. I do, and...
error: failed to run custom build command for `glfw-sys v3.3.2`
Caused by:
process didn't exit successfully: `/home/daniel/src/rx/target/release/build/glfw-sys-26b6f559dd8ddb15/build-script-build` (exit code: 101)
--- stdout
running: "cmake" "/home/daniel/.cargo/registry/src/github.com-1ecc6299db9ec823/glfw-sys-3.3.2/." "-DGLFW_BUILD_EXAMPLES=OFF" "-DGLFW_BUILD_TESTS=OFF" "-DGLFW_BUILD_DOCS=OFF" "-DCMAKE_INSTALL_LIBDIR=lib" "-DCMAKE_INSTALL_PREFIX=/home/daniel/src/rx/target/release/build/glfw-sys-1bc049f465ed05b5/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"
-- Using X11 for window creation
-- Configuring incomplete, errors occurred!
See also "/home/daniel/src/rx/target/release/build/glfw-sys-1bc049f465ed05b5/out/build/CMakeFiles/CMakeOutput.log".
See also "/home/daniel/src/rx/target/release/build/glfw-sys-1bc049f465ed05b5/out/build/CMakeFiles/CMakeError.log".
--- stderr
CMake Error at CMakeLists.txt:221 (message):
Xcursor headers not found; install libxcursor development package
thread 'main' panicked at '
command did not execute successfully, got: exit code: 1
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: failed to compile `rx v0.4.0 (/home/daniel/src/rx)`, intermediate artifacts can be found at `/home/daniel/src/rx/target`
Caused by:
build failed
Now I install `libxcursor-dev'. Same thing happens and it tells me to install 'libxi-dev'. Now it finally installs correctly.
Hope this was helpful.
Cool, I think proably xorg-dev
or something has all of those packages in one, that would have been more helpful to install. Glad you got it working though. I'll add something to the README.
Linux Mint 20 cmake 3.16.3 cargo 1.43
Build command was standard.