Cannot compile wxwidgets via mingw, after the install.txt file that comes with the zip file

I am trying to compile wxwidgets. I compile with mingw32 and follow the install.txt file that comes with the zip file, but when I compile it, it gives me these errors.

  if not exist gcc_mswd mkdir gcc_mswd
 process_begin: CreateProcess (NULL, -c "if not exist gcc_mswd mkdir gcc_mswd", ...) failed.
 make (e = 2): The system cannot find the file specified.
 mingw32-make: [gcc_mswd] Error 2 (ignored)
 if not exist .. \ .. \ lib \ gcc_lib mkdir .. \ .. \ lib \ gcc_lib
 process_begin: CreateProcess (NULL, -c "if not exist .. \ .. \ lib \ gcc_lib mkdir .. \ .. \ lib \ gcc_lib", ...) failed.
 make (e = 2): The system cannot find the file specified.
 mingw32-make: *** [.. \ .. \ lib \ gcc_lib] Error 2

Any help is appreciated.

PS: I use mingw32-make if that matters.

+7
source share
5 answers

According to the wxWiki manual , it seems that the error is caused by the fact that you have MSYS in the PATH environment variable, and this is all confusing. He suggests either compiling MSYS or removing it from PATH and making sure your mingw installation path is in PATH.

+5
source

what I also found was that the other things in my PATH ended up with / bin. therefore mingw could not find its components. what I did was delete everything else from my PATH (and a lot of things broke that I will fix later), I have a backup copy of PATH :)). solves this problem. you can also try placing the mingw path in your PATH, so it doesn't look anymore - I haven't tried it yet.

+4
source

Do you also have MSYS installed? If so, try the MSYS make version; Mingw32-make is known to have flaws in some respects. (This is just a suggestion, I don’t know if this really will solve this problem.)

+3
source

I had mksnt (another * nix-like shell) on my PATH and the same problem was observed. Removed from PATH, and MinGW now creates wxWidgets 2.8.12.

+3
source

Thanks for the previous answers. I had the same problem that was caused by the presence of Git - Bash in the PATH variable: C: \ Program Files (x86) \ Git \ bin; After removing from PATH everything worked

+1
source

All Articles