Gabriel Asman
Gabriel Asman

Reputation: 181

How do I use GMake on Windows

I've downloaded the source files for the TBB libraries, with the intent to build them and link them into my CMake project. The readme file says "type 'gmake' in this directory to build and test."

My question is - how do I run gmake on a Windows machine. The solution in this answer didn't work for me. This is what I get:

Errors

Upvotes: 1

Views: 2533

Answers (1)

Alexandr Konovalov
Alexandr Konovalov

Reputation: 578

From the log I see that make unable to find Microsoft compiler cl.exe. To fix this, you must use one of the "Visual Studio command prompt"-s, those are cmd with environments targeted to command-line tools.

If you use MigGW by chance, the command should be make compiler=gcc. In this case, path environment variable should contain path to MigGW.

Upvotes: 2

Related Questions