Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is this supposed to work on Ubuntu 18.04 #26

Closed
neilyoung opened this issue May 11, 2022 · 3 comments
Closed

Is this supposed to work on Ubuntu 18.04 #26

neilyoung opened this issue May 11, 2022 · 3 comments

Comments

@neilyoung
Copy link

because compilation fails:

    Blocking waiting for file lock on build directory
   Compiling soloud-sys v1.0.2
error: failed to run custom build command for `soloud-sys v1.0.2`

Caused by:
  process didn't exit successfully: `/home/decades/calibration/target/debug/build/soloud-sys-52d783e35b4127a6/build-script-main` (exit status: 101)
  --- stdout
  cargo:rerun-if-changed=build/android.rs
  cargo:rerun-if-changed=build/link.rs
  cargo:rerun-if-changed=build/main.rs
  cargo:rerun-if-changed=build/source.rs
  cargo:rerun-if-env-changed=CC
  cargo:rerun-if-env-changed=CXX
  cargo:rerun-if-env-changed=CFLAGS
  cargo:rerun-if-env-changed=CXXFLAGS
  cargo:rerun-if-changed=sys/CMakeLists.txt
  cargo:rerun-if-changed=sys/soloud_new.cpp
  cargo:rerun-if-changed=sys/soloud_derives.h
  cargo:rerun-if-changed=sys/soloud_derives.cpp
  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_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: "cmake" "/home/decades/.cargo/registry/src/github.com-1ecc6299db9ec823/soloud-sys-1.0.2/sys" "-G" "Ninja" "-DWITH_MINIAUDIO=ON" "-DCMAKE_EXPORT_COMPILE_COMMANDS=ON" "-DCMAKE_INSTALL_PREFIX=/home/decades/calibration/target/debug/build/soloud-sys-f91a35d357ff0bab/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" "-DCMAKE_BUILD_TYPE=Release"
  -- Configuring incomplete, errors occurred!
  See also "/home/decades/calibration/target/debug/build/soloud-sys-f91a35d357ff0bab/out/build/CMakeFiles/CMakeOutput.log".

  --- stderr
  fatal: Kein Git-Repository (oder irgendeines der Elternverzeichnisse): .git
  CMake Error at CMakeLists.txt:45 (add_compile_definitions):
    Unknown CMake command "add_compile_definitions".


  thread 'main' panicked at '
  command did not execute successfully, got: exit status: 1

  build script failed, must exit now', /home/decades/.cargo/registry/src/github.com-1ecc6299db9ec823/cmake-0.1.48/src/lib.rs:975:5
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

@MoAlyousef
Copy link
Owner

add_compile_definitions requires CMake 3.12. You might want to check what version you’re using.

@neilyoung
Copy link
Author

neilyoung commented May 11, 2022 via email

@neilyoung
Copy link
Author

neilyoung commented Oct 11, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants