something icon indicating copy to clipboard operation
something copied to clipboard

MSYS build error.

Open etoshapovalov opened this issue 5 years ago • 2 comments

Steps to reproduce:

  • Follow quick start tutorial
  • Error comes up on line: set __MINGW32__=1 && mingw32-make -B

Errors i found:

  • With default MSYS installation mingw32-make can't be found. (That problem can simply be fixed, if you would specify the full path to executable. Like: /mingw64/bin/mingw32-make)
  • After that, when you try to build the executable that error pops out: https://pastebin.com/t8btSMZ0

Personally, i don't know what happens for this error to happen. I didn't found any cc1.exe in msys/mingw installation folder, but i found cc.exe in /mingw64/bin/. Maybe that's just a typo?

etoshapovalov avatar Sep 28 '20 13:09 etoshapovalov

Personally I don't use MSYS2 shell to compile. It's just useful to install packages. But then it's easer to use Command Prompt (cmd.exe or Powershell). You just have to add MinGW to PATH, so everything has access to mingw32-make, C-compiler (cc.exe) and pkg-config. For example:

set PATH=%PATH%;\path\to\msys64\mingw64\bin

Also you might need to set CXX environment variable to c++ compiler, for example:

set CXX=\path\to\msys64\mingw64\bin\g++.exe

kolumb avatar Sep 28 '20 15:09 kolumb

@etoshapovalov hey! Have you tried the things suggested by @kolumb? Did they work for you?

rexim avatar Oct 05 '20 12:10 rexim