user451498
user451498

Reputation:

can't compile wxwidgets through mingw, following install.txt that came with the zip file

I am trying to compile wxwidgets. I am compiling with mingw32 and am following the install.txt that came with the zip file, but when ever 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 am using mingw32-make if that makes a difference.

Upvotes: 7

Views: 1888

Answers (5)

Gustav-Gans
Gustav-Gans

Reputation: 395

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

Upvotes: 1

peter
peter

Reputation: 41

what i also found was that other stuff in my PATH ended with /BIN. so mingw could not find it's components. what i did was removed everything else from my PATH ( and broke lots of stuff i will fix later - i have my PATH backed up :) ). solves that problem. what you could also try is to place mingw path first in your PATH, so it doesn't look any further - i haven't tried it though.

Upvotes: 4

Moon
Moon

Reputation: 31

I had mksnt (another *nix-like shell) on my PATH and observed the same trouble. Removed it from PATH and MinGW is building wxWidgets 2.8.12 now.

Upvotes: 3

SteveL
SteveL

Reputation: 1821

According to the guide on the wxWiki it looks like the error is caused because you have MSYS in your PATH environment variable and that confuses everything. It suggests either compiling with MSYS or removing it from PATH and ensuring that your mingw installation path is in PATH.

Upvotes: 5

eriktous
eriktous

Reputation: 6649

Do you also have MSYS installed? If so, try the MSYS version of make; mingw32-make is known to be flawed in some respects. (This is just a suggestion; I don't know if it will actually solve this particular problem.)

Upvotes: 3

Related Questions