crumblingstatue / mpv-egui-musicplayer

Small personal music player wrapping mpv
3 stars 1 forks source link

Build Issue in regards to Clock.cpp #1

Open gulfalaska opened 2 months ago

gulfalaska commented 2 months ago

I downloaded the libary

gh repo clone crumblingstatue/mpv-egui-musicplayer

Compiled

cargo run

Then I got this,

   Compiling blocking v1.6.1
   Compiling digest v0.10.7
The following warnings were emitted during compilation:

warning: sfml@0.21.0: CSFML/src/System/Clock.cpp:1:10: fatal error: SFML/System/Clock.hpp: No such file or directory
warning: sfml@0.21.0:     1 | #include <SFML/System/Clock.hpp>
warning: sfml@0.21.0:       |          ^~~~~~~~~~~~~~~~~~~~~~~
warning: sfml@0.21.0: compilation terminated.

error: failed to run custom build command for `sfml v0.21.0 (https://github.com/jeremyletang/rust-sfml.git#f44519b1)`

Caused by:
  process didn't exit successfully: `/home/sirvon/DEV/mpv-egui-musicplayer/target/debug/build/sfml-7e7327b95adb5077/build-script-build` (exit status: 1)
  --- stdout
  cargo:rerun-if-changed=CSFML
  cargo:rerun-if-env-changed=SFML_INCLUDE_DIR
  cargo:rerun-if-env-changed=SFML_LIBS_DIR
  cargo:rerun-if-env-changed=SFML_STATIC
  OUT_DIR = Some(/home/sirvon/DEV/mpv-egui-musicplayer/target/debug/build/sfml-dcb4cce6dfa7519a/out)
  TARGET = Some(x86_64-unknown-linux-gnu)
  OPT_LEVEL = Some(2)
  HOST = Some(x86_64-unknown-linux-gnu)
  cargo:rerun-if-env-changed=CXX_x86_64-unknown-linux-gnu
  CXX_x86_64-unknown-linux-gnu = None
  cargo:rerun-if-env-changed=CXX_x86_64_unknown_linux_gnu
  CXX_x86_64_unknown_linux_gnu = None
  cargo:rerun-if-env-changed=HOST_CXX
  HOST_CXX = None
  cargo:rerun-if-env-changed=CXX
  CXX = None
  cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
  RUSTC_WRAPPER = None
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some(true)
  CARGO_CFG_TARGET_FEATURE = Some(fxsr,sse,sse2)
  cargo:rerun-if-env-changed=CXXFLAGS_x86_64-unknown-linux-gnu
  CXXFLAGS_x86_64-unknown-linux-gnu = None
  cargo:rerun-if-env-changed=CXXFLAGS_x86_64_unknown_linux_gnu
  CXXFLAGS_x86_64_unknown_linux_gnu = None
  cargo:rerun-if-env-changed=HOST_CXXFLAGS
  HOST_CXXFLAGS = None
  cargo:rerun-if-env-changed=CXXFLAGS
  CXXFLAGS = None
  OUT_DIR = Some(/home/sirvon/DEV/mpv-egui-musicplayer/target/debug/build/sfml-dcb4cce6dfa7519a/out)
  cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  CARGO_CFG_TARGET_FEATURE = Some(fxsr,sse,sse2)
  cargo:rerun-if-env-changed=CXXFLAGS_x86_64-unknown-linux-gnu
  CXXFLAGS_x86_64-unknown-linux-gnu = None
  cargo:rerun-if-env-changed=CXXFLAGS_x86_64_unknown_linux_gnu
  CXXFLAGS_x86_64_unknown_linux_gnu = None
  cargo:rerun-if-env-changed=HOST_CXXFLAGS
  HOST_CXXFLAGS = None
  cargo:rerun-if-env-changed=CXXFLAGS
  CXXFLAGS = None
  cargo:warning=CSFML/src/System/Clock.cpp:1:10: fatal error: SFML/System/Clock.hpp: No such file or directory
  cargo:warning=    1 | #include <SFML/System/Clock.hpp>
  cargo:warning=      |          ^~~~~~~~~~~~~~~~~~~~~~~
  cargo:warning=compilation terminated.

  --- stderr

  error occurred: Command "c++" "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-4" "-fno-omit-frame-pointer" "-m64" "-I" "CSFML/src/" "-Wall" "-Wextra" "--std=c++17" "-DCSFML_SYSTEM_EXPORTS" "-DCSFML_AUDIO_EXPORTS" "-DCSFML_WINDOW_EXPORTS" "-DCSFML_GRAPHICS_EXPORTS" "-o" "/home/sirvon/DEV/mpv-egui-musicplayer/target/debug/build/sfml-dcb4cce6dfa7519a/out/866679ff7d72c01b-Clock.o" "-c" "CSFML/src/System/Clock.cpp" with args c++ did not execute successfully (status code exit status: 1).
crumblingstatue commented 2 months ago

Hi, this application requires the native library SFML to be installed. See https://github.com/jeremyletang/rust-sfml?tab=readme-ov-file#requirements