Cmake : CMAKE_MAKE_PROGRAM is not set
Cmake : CMAKE_MAKE_PROGRAM is not set
我正在尝试构建openCv,我以前从未构建过任何东西。
我在 C:\MinGW 中安装了 gcc,ftp://ftp.equation.com/gcc/gcc-7.1.0-64.exe现在,当我在命令行中键入"gcc --version"时,我得到了一个awnser。
然后我从 https://cmake.org/安装了 CMAKE
我运行GUI并选择了我的源文件夹,然后在发生错误时点击"配置"。
根据我的研究,我应该在我的路径中有"mingw64-make",这不是因为在命令行中键入它时产生"无法识别"
我用UltraSearch搜索我的驱动器,它只是返回了这个:
Name Path Size Last Change File Type
x86_64-w64-mingw32-c++.exe C:MinGWbin 1,10 MB 11/10/2017 .exe (Application)
x86_64-w64-mingw32-g++.exe C:MinGWbin 1,10 MB 11/10/2017 .exe (Application)
x86_64-w64-mingw32-gcc-7.1.0.exe C:MinGWbin 1,10 MB 11/10/2017 .exe (Application)
x86_64-w64-mingw32-gcc-ar.exe C:MinGWbin 75,00 KB 11/10/2017 .exe (Application)
x86_64-w64-mingw32-gcc-nm.exe C:MinGWbin 74,50 KB 11/10/2017 .exe (Application)
x86_64-w64-mingw32-gcc-ranlib.exe C:MinGWbin 74,50 KB 11/10/2017 .exe (Application)
x86_64-w64-mingw32-gcc.exe C:MinGWbin 1,10 MB 11/10/2017 .exe (Application)
x86_64-w64-mingw32-gfortran.exe C:MinGWbin 1,10 MB 11/10/2017 .exe (Application)
所以看起来这个 mingw64-make 在最新的 gcc 版本中不存在,我该怎么办?
谢谢。
make
工具(如 mingw32-make)是一个额外的程序,它不是编译器的一部分,但有时与编译器捆绑在一起。在您的情况下,它不是,您必须明确地获得它。
我建议使用 msys2 环境,因为它可以轻松访问您需要的所有内容(包括 Ninja 构建系统 - 一个替代)。
从MINGW64壳安装通过例如 pacman -S mingw-w64-x86_64-{toolchain,cmake,ninja}
.
然后使用 cmake -G Ninja …
.
你也会有mingw32-make.exe
,但没有充分的理由不在忍者与CMake一起使用。
或者,您可以获取 Visual Studio 的副本并使用NMake Makefiles…
或Visual Studio…
生成器。
相关文章:
- Directx 11 - CompileFromFile() is not compiling
- Centos7 g++ "to_string is not in a member of std"
- 将成员函数作为构造函数参数调用时出错 "Variable is not a type name"
- reference_wrapper导致"incomplete type is not allowed"
- 结构中的错误"Incomplete type is not allowed"
- "Called Object Type is Not a Function or Pointer" 与 typedef 和类
- 无法创建 DLL:获取 DLL "is not a valid Win32 application"
- Atom gpp编译器给出"'C:UsersadminUser' is not recognized as an internal or..."错误
- 当我编译XG-Bosst时,出现错误"error: 'Split' is not a member of 'xgboost::common' ……"
- C++ DLL 运行时错误"abc.dll is not a valid WIN32 application" 。请帮助解决这个问题
- 如何修复 eigen3 中的'non-type template argument is not a constant expression'?
- 我的代码应该接受一个数字,并返回字母等级或"Grade is not valid"但 else 语句不起作用
- 如何修复此错误"the value of 'x1' is not usable in a constant expression"?static_assert
- 加载安全区图像"A device attached to the system is not functioning"
- 巴泽尔中的错误"name 'new_local_repository' is not defined"
- 如何修复 SDL2 "GLSL 3.30 is not supported"错误
- 函数模板(它是类模板的成员)的显式专用化会产生"partial specialization is not allowed"错误,为什么?
- 为什么"an inherited constructor is not a candidate for initialization from an expression of the same or
- CGAL 绘制函数在 Visual Studio 中给出'CGAL_USE_BASIC_VIEWER is not defined'错误
- "OpenCV Error: The function/feature is not implemented"安卓应用程序