ritual icon indicating copy to clipboard operation
ritual copied to clipboard

Request for better errors when command is not available (cmake)

Open hasezoey opened this issue 2 years ago • 0 comments

I tried to run the examples, and it failed with the message:

[2021-12-24T21:04:44Z ERROR ritual_common::errors] Error:
[2021-12-24T21:04:44Z ERROR ritual_common::errors]    failed to run command: "cmake" "-Wno-dev" "/home/hasezoey/.local/cargo/registry/src/github.com-1ecc6299db9ec823/qt_ui_tools-0.5.0/c_lib" "-DRITUAL_LIBRARY_TYPE=STATIC" "-DRITUAL_CPP_LIB_VERSION=51400" "-DRITUAL_INCLUDE_PATH=/usr/include/qt;/usr/include/qt/QtUiTools;/usr/include/qt/QtCore;/usr/include/qt/QtGui;/usr/include/qt/QtWidgets" "-DRITUAL_LIBRARY_PATH=/usr/lib" "-DRITUAL_FRAMEWORK_PATH=" "-DRITUAL_LINKED_LIBS=Qt5UiTools;Qt5Core;Qt5Gui;Qt5Widgets" "-DRITUAL_LINKED_FRAMEWORKS=" "-DRITUAL_COMPILER_FLAGS=-std=gnu++11 -fPIC" "-DRITUAL_QT=1" "-DRITUAL_QT=1" "-DRITUAL_QT=1" "-DRITUAL_QT=1" "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_INSTALL_PREFIX=/home/hasezoey/Downloads/examples/target/release/build/qt_ui_tools-91426dae0c77750f/out/c_lib_install"
[2021-12-24T21:04:44Z ERROR ritual_common::errors]    No such file or directory (os error 2)

Which is not great, after some time trying to read through the whole command and checking the directories that are mentioned, i finally noticed that i didnt have cmake installed on my system.
So i would request to add a error saying something like Command "cmake" is not installed on your system.

environment:

  • qt_core (example crate for this error) at 0.5.0
  • rust (stable) at 1.41.0 (from https://github.com/rust-qt/examples/)
  • linux (manjaro 21.2)

Related

  • #104

hasezoey avatar Dec 24 '21 21:12 hasezoey