CMAKE_MAKE_PROGRAM not found

后端 未结 16 2732
无人共我
无人共我 2020-12-01 02:29

I have reached the end of my rope with CMake; it has so much potential, but I cannot seem to make it find the basic system tools (i.e. make) in order to functio

相关标签:
16条回答
  • 2020-12-01 02:57

    I had the exact same problem when I tried to compile OpenCV with Qt Creator (MinGW) to build the .a static library files.

    For those that installed Qt 5.2.1 for Windows 32-bit (MinGW 4.8, OpenGL, 634 MB), this problem can be fixed if you add the following to the system's environment variable Path:

    C:\Qt\Qt5.2.0\Tools\mingw48_32\bin
    
    0 讨论(0)
  • 2020-12-01 02:57

    I tried to use CMake to build GammaRay for Qt on Windows with mingw. So, I had the Qt installed. And I had the same problem as other users here.

    The approach that worked for me is launching cmake-gui from Qt build prompt (a shortcut created by Qt installer in "Start Menu\All programs\Qt{QT_VERSION}" folder).

    0 讨论(0)
  • 2020-12-01 02:58

    I have two suggestions:

    1. Do you have make in your %PATH% environment variable? On my system, I need to add %MINGW_DIR%\bin to %PATH%.

    2. Do you have make installed? Depending on your mingw installation, it can be a separate package.

    3. Last resort: Can you pass the full path to make on the commandline? cmake -D"CMAKE_MAKE_PROGRAM:PATH=C:/MinGW-32/bin/make.exe" ..\Source

    0 讨论(0)
  • 2020-12-01 02:58

    I’ve just solved the same problem. I had MinGW with GCC and G++ installed but not make. This command helped me:

    mingw-get.exe install mingw32-make
    

    After running it, clear CMake cache (delete the CMakeCache.txt file in the CMake's working directory) and run CMake again.

    0 讨论(0)
  • 2020-12-01 02:58

    I had the same problem which is solved using the following:

    Try to rename all the folders to not to be more than 8 characters and without spaces.

    0 讨论(0)
  • 2020-12-01 02:59

    In the GUI, select the "Advanced" checkbox. It should now show several entries below. Rename your mingw32-make.exe file to make.exe (you can just make a copy) and set the CMAKE_MAKE_PROGRAM filepath variable to the location of said file.

    0 讨论(0)
提交回复
热议问题