Skip to content

failed to run custom build command for projectm-sys v1.2.2 #12

@emilbratt

Description

@emilbratt

When running

cargo build

I get this output.

   Compiling projectm-sys v1.2.2
error: failed to run custom build command for `projectm-sys v1.2.2`

Caused by:
  process didn't exit successfully: `/home/emil/git/frontend-sdl-rust/target/debug/build/projectm-sys-f6c6180fc4978ce9/build-script-build` (exit status: 101)
  --- stdout
  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/emil/git/frontend-sdl-rust/target/debug/build/projectm-sys-90264b9af5a52445/out/build" && CMAKE_PREFIX_PATH="" LC_ALL="C" "cmake" "/home/emil/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/projectm-sys-1.2.2/libprojectM" "-DENABLE_PLAYLIST=ON" "-DBUILD_TESTING=OFF" "-DBUILD_EXAMPLES=OFF" "-DBUILD_SHARED_LIBS=OFF" "-DCMAKE_INSTALL_PREFIX=/home/emil/git/frontend-sdl-rust/target/debug/build/projectm-sys-90264b9af5a52445/out" "-DCMAKE_C_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_C_COMPILER=/usr/lib64/ccache/cc" "-DCMAKE_CXX_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_CXX_COMPILER=/usr/lib64/ccache/c++" "-DCMAKE_ASM_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_ASM_COMPILER=/usr/lib64/ccache/cc" "-DCMAKE_BUILD_TYPE=Debug"
  -- Git revision: 9fb93e9beec57179534d07db9beabc99430163fd
  -- Building for OpenGL Core Profile
  -- Configuring incomplete, errors occurred!

  --- stderr
  CMake Warning at CMakeLists.txt:108 (find_package):
    By not providing "FindprojectM-Eval.cmake" in CMAKE_MODULE_PATH this
    project has asked CMake to find a package configuration file provided by
    "projectM-Eval", but CMake did not find one.

    Could not find a package configuration file provided by "projectM-Eval"
    with any of the following names:

      projectM-EvalConfig.cmake
      projectm-eval-config.cmake

    Add the installation prefix of "projectM-Eval" to CMAKE_PREFIX_PATH or set
    "projectM-Eval_DIR" to a directory containing one of the above files.  If
    "projectM-Eval" provides a separate development package or SDK, be sure it
    has been installed.


  CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:233 (message):
    Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_glx_LIBRARY
    OPENGL_INCLUDE_DIR)
  Call Stack (most recent call first):
    /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:603 (_FPHSA_FAILURE_MESSAGE)
    /usr/share/cmake/Modules/FindOpenGL.cmake:579 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
    CMakeLists.txt:178 (find_package)



  thread 'main' panicked at /home/emil/.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

Looks like I am missing an OpenGL library, but I am not sure.

Hardware Information:

  • Hardware Model: Gigabyte Technology Co., Ltd. B450 AORUS ELITE
  • Memory: 32.0 GiB
  • Processor: AMD Ryzen™ 7 3700X × 16
  • Graphics: Intel® Arc™ A750 Graphics (DG2)
  • Disk Capacity: 480.1 GB

Software Information:

  • Firmware Version: F63
  • OS Name: Fedora Linux 42 (Workstation Edition)
  • OS Build: (null)
  • OS Type: 64-bit
  • GNOME Version: 48
  • Windowing System: Wayland
  • Kernel Version: Linux 6.14.9-300.fc42.x86_64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions