CMAKE_MAKE_PROGRAM not found

后端 未结 16 2733
无人共我
无人共我 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 03:14

    Recently i had the same problem (Compiling OpenCV with CMake and Qt/MinGW on WIN764)

    And I think I solve this including on my environment variable PATH (through Control Panel\All Control Panel Items\System\Advanced Sytem Settings) with the %MINGW_DIR%\bin and %CMAKE_DIR%/bin

    Furthermore, I installed cmake2.8 on an easy directory (without blanks on it)

    0 讨论(0)
  • 2020-12-01 03:18

    I had to add the follow lines to my windows path to fix this. CMAKE should set the correct paths on install otherwise as long as you check the box. This is likely to be a different solution depending on the myriad of versions that are possible to install.

    C:\msys64\mingw32\bin
    C:\msys64\mingw64\bin
    
    0 讨论(0)
  • 2020-12-01 03:20

    I have tried to install the missing packages. Installing the toolchain and restarting CLion solved all in my case:

    pacman -S mingw-w64-x86_64-cmake mingw-w64-x86_64-extra-cmake-modules
    pacman -S mingw-w64-x86_64-make
    pacman -S mingw-w64-x86_64-gdb
    pacman -S mingw-w64-x86_64-toolchain
    
    0 讨论(0)
  • 2020-12-01 03:20

    It seems everybody has different solution. I solved my problem like:

    When I install 64bit mingw it installed itself to : "C:\Program Files\mingw-w64\x86_64-5.1.0-posix-seh-rt_v4-rev0\mingw64\bin"

    Eventhough mingw-make.exe was under the path above, one invalid charecter or long path name confused CMake. I try to add path to environment path, try to give CMAKE as paramater it didn't work for me .

    Finally I moved complex path of mingw-w64 to "C:/mingw64", than set the environment path, restarted CMake. Problem solved for me .

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