tonlib-rs icon indicating copy to clipboard operation
tonlib-rs copied to clipboard

About cmake dependency

Open mateolafalce opened this issue 1 year ago • 4 comments

when I cargo doc --open

error: failed to run custom build command for `tonlib-sys v2023.6.4`

Caused by:
  process didn't exit successfully: `/home/mateo/dev/tonlib-rs/target/debug/build/tonlib-sys-994866a1b0655f77/build-script-build` (exit status: 101)
  --- stdout
  cargo:rerun-if-changed=ton/CMakeLists.txt
  cargo:rerun-if-changed=build.rs
  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/mateo/dev/tonlib-rs/target/debug/build/tonlib-sys-5b8db5a86e9b2676/out/build" && CMAKE_PREFIX_PATH="" "cmake" "-Wdev" "--debug-output" "/home/mateo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tonlib-sys-2023.6.4/ton" "-DTON_ONLY_TONLIB=ON" "-DBUILD_SHARED_LIBS=OFF" "-DCMAKE_JOB_POOLS=compile_threads=1" "-DCMAKE_INSTALL_PREFIX=/home/mateo/dev/tonlib-rs/target/debug/build/tonlib-sys-5b8db5a86e9b2676/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=Debug" "-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON" "-DTON_ONLY_TONLIB=true" "-DBUILD_SHARED_LIBS=false" "-Wno-dev"

  --- stderr
  thread 'main' panicked at /home/mateo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cmake-0.1.50/src/lib.rs:1098:5:

  failed to execute command: No such file or directory (os error 2)
  is `cmake` not installed?

  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..

Is it a good idea to specify in the README any comment for developers to install CMake?

mateolafalce avatar Jan 25 '24 00:01 mateolafalce