Skip to content

missing dependency in readme #21

Description

@Axlefublr

when building, got this error:

~/r/forks/woomer 󱕅 cargo r
   --snip--
   Compiling drm v0.12.0
error: failed to run custom build command for `raylib-sys v5.5.1`

Caused by:
  process didn't exit successfully: `/home/axlefublr/r/forks/woomer/target/debug/build/raylib-sys-cc7f832341a14dcc/build-script-build` (exit status: 101)
  --- stdout
  cargo:rerun-if-changed=build.rs
  cargo:rerun-if-changed=./binding/binding.h
  CMAKE_TOOLCHAIN_FILE_x86_64-unknown-linux-gnu = None
  CMAKE_TOOLCHAIN_FILE_x86_64_unknown_linux_gnu = None
  HOST_CMAKE_TOOLCHAIN_FILE = None
  CMAKE_TOOLCHAIN_FILE = None
  CMAKE_GENERATOR_x86_64-unknown-linux-gnu = None
  CMAKE_GENERATOR_x86_64_unknown_linux_gnu = None
  HOST_CMAKE_GENERATOR = None
  CMAKE_GENERATOR = None
  CMAKE_PREFIX_PATH_x86_64-unknown-linux-gnu = None
  CMAKE_PREFIX_PATH_x86_64_unknown_linux_gnu = None
  HOST_CMAKE_PREFIX_PATH = None
  CMAKE_PREFIX_PATH = None
  CMAKE_x86_64-unknown-linux-gnu = None
  CMAKE_x86_64_unknown_linux_gnu = None
  HOST_CMAKE = None
  CMAKE = None
  running: cd "/home/axlefublr/r/forks/woomer/target/debug/build/raylib-sys-120b017da6b16820/out/build" && CMAKE_PREFIX_PATH="" LC_ALL="C" "cmake" "/home/axlefublr/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/raylib-sys-5.5.1/./raylib" "-DCMAKE_BUILD_TYPE=Debug" "-DBUILD_EXAMPLES=OFF" "-DCMAKE_BUILD_TYPE=Debug" "-DSUPPORT_BUSY_WAIT_LOOP=OFF" "-DSUPPORT_FILEFORMAT_JPG=ON" "-DUSE_WAYLAND=ON" "-DUSE_EXTERNAL_GLFW=ON" "-DOPENGL_VERSION=3.3" "-DSUPPORT_SCREEN_CAPTURE=ON" "-DSUPPORT_GIF_RECORDING=ON" "-DPLATFORM=Desktop" "-DCMAKE_INSTALL_PREFIX=/home/axlefublr/r/forks/woomer/target/debug/build/raylib-sys-120b017da6b16820/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_ASM_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_ASM_COMPILER=/usr/bin/cc"
  -- The C compiler identification is GNU 14.2.1
  -- The CXX compiler identification is GNU 14.2.1
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Check for working C compiler: /usr/bin/cc - skipped
  -- Detecting C compile features
  -- Detecting C compile features - done
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Check for working CXX compiler: /usr/bin/c++ - skipped
  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  -- Performing Test COMPILER_HAS_THOSE_TOGGLES
  -- Performing Test COMPILER_HAS_THOSE_TOGGLES - Success
  -- Testing if -Werror=pointer-arith can be used -- compiles
  -- Testing if -Werror=implicit-function-declaration can be used -- compiles
  -- Testing if -fno-strict-aliasing can be used -- compiles
  -- Configuring incomplete, errors occurred!

  --- stderr
  CMake Error at cmake/GlfwImport.cmake:3 (find_package):
    By not providing "Findglfw3.cmake" in CMAKE_MODULE_PATH this project has
    asked CMake to find a package configuration file provided by "glfw3", but
    CMake did not find one.

    Could not find a package configuration file provided by "glfw3" (requested
    version 3.4) with any of the following names:

      glfw3Config.cmake
      glfw3-config.cmake

    Add the installation prefix of "glfw3" to CMAKE_PREFIX_PATH or set
    "glfw3_DIR" to a directory containing one of the above files.  If "glfw3"
    provides a separate development package or SDK, be sure it has been
    installed.
  Call Stack (most recent call first):
    src/CMakeLists.txt:43 (include)



  thread 'main' panicked at /home/axlefublr/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cmake-0.1.54/src/lib.rs:1119:5:

  command did not execute successfully, got: exit status: 1

  build script failed, must exit now
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...

That went away when I installed glfw-wayland and glfw on arch. I think it will be a good idea to add to the list of dependencies in the readme!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions