Skip to content

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

@hasezoey

Description

@hasezoey

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:

Related

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