문제

After I generated Makefile with CMake I ran in MSYS:

msys>make

It launched cmd.exe within msys and started new make.exe process that did nothing. It's not a single case - every project that I try to build with CMake leads to this trap. What's wrong?

도움이 되었습니까?

해결책

MSYS and MinGW makefiles (as CMake understands it) is not the same. In this case I used to generate MSYS makefiles.

다른 팁

If you want to use MinGW compiler, I suggest you use MinGW shell prompt instead of MS cmd.exe. This ensure that several MinGW compiler specific environment variables are correctly set.

Then use "MinGW Makefiles" as generator and mingw32-make as make program.

If you use MSYS you must use "MSYS Makefiles" and the make program should be called simply make (if you have installed it correctly).

If you generate "MinGW Makefiles" and call make, the wrong make program is called. Specify explicitely mingw32-make.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top