Skip to content

Error when compiling on Windows #8

@AlexisHuvier

Description

@AlexisHuvier

Hey, i want to use rust-qt but when i launch a basic example i have this error :

CMake Error at CMakeLists.txt:5 (project):
  The CMAKE_CXX_COMPILER:

    C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.25.28610/bin/Hostx64/x64/cl.exe

  is not a full path to an existing compiler tool.

  To use the NMake generator with Visual C++, cmake must be run from a shell
  that can use the compiler cl from the command line.  This environment is
  unable to invoke the cl compiler.  To fix this problem, run cmake from the
  Visual Studio Command Prompt (vcvarsall.bat).

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.


[2020-04-06T23:19:15Z ERROR ritual_common::errors] Error:
[2020-04-06T23:19:15Z ERROR ritual_common::errors]    command failed with exit code: 1: "cmake" "-Wno-dev" "C:\\Users\\LavaPower\\.cargo\\registry\\src\\mygithub.libinneed.workers.dev-1ecc6299db9ec823\\qt_ui_tools-0.5.0\\c_lib" "-G" "NMake Makefiles" "-DRITUAL_LIBRARY_TYPE=STATIC" "-DRITUAL_CPP_LIB_VERSION=51300" "-DRITUAL_INCLUDE_PATH=D:/Qt/5.13.0/msvc2017_64/include;D:/Qt/5.13.0/msvc2017_64/include\\QtUiTools;D:/Qt/5.13.0/msvc2017_64/include\\QtCore;D:/Qt/5.13.0/msvc2017_64/include\\QtGui;D:/Qt/5.13.0/msvc2017_64/include\\QtWidgets" "-DRITUAL_LIBRARY_PATH=D:/Qt/5.13.0/msvc2017_64/lib" "-DRITUAL_FRAMEWORK_PATH=" "-DRITUAL_LINKED_LIBS=Qt5UiTools;Qt5Core;Qt5Gui;Qt5Widgets" "-DRITUAL_LINKED_FRAMEWORKS=" "-DRITUAL_COMPILER_FLAGS=" "-DRITUAL_QT=1" "-DRITUAL_QT=1" "-DRITUAL_QT=1" "-DRITUAL_QT=1" "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_INSTALL_PREFIX=D:\\Programmation\\Rust\\lycos_novation\\target\\debug\\build\\qt_ui_tools-371e25d1510ccec1\\out\\c_lib_install"

Thanks.

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