WizQTClient
WizQTClient copied to clipboard
教程中“若出现错误:No CMAKE_CXX_COMPILER could be found”,下面那两个参数到底填在哪?
The CMAKE_C_COMPILER: %{Compiler:Executable:C} is not a full path and was not found in the PATH. Tell CMake where to find the compiler by setting either the environment variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH.
The CMAKE_CXX_COMPILER: %{Compiler:Executable:Cxx} is not a full path and was not found in the PATH. 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.
点击「项目」,打开「构建设置」,在 CMake 构建目录中添加以下两个参数,重新构建即可: -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
打开只有填“键值对”的地方啊?
到底怎么填啊?
填写键值对 key: CMAKE_CXX_COMPILER value: clang++ 如果是用的QtCreator来编译,也可以在QtCreator的偏好设置 Build&Run,Kits中指定C和C++的编译器