trouble building library Topic is solved

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
In need of some credit
In need of some credit
Posts: 7
Joined: Sat Feb 21, 2015 6:29 pm

trouble building library

Post by DarthVega7 » Sat Feb 21, 2015 6:32 pm

Hey guys,

I'm getting this error every time I try to build the wxWidgets library:

Code: Select all

C:\SourceCode\Libraries\wxWidgets3.0\build\msw>C:\MinGW\bin\mingw32-make.exe -f
gcc -c -o gcc_mswuddll\wxregex_regcomp.o -g -O0 -mthreads  -DHAVE_W32API_H -DNDE
BUG -I..\..\include -I..\..\lib\gcc_dll\mswud -D__WXMSW__  -D_UNICODE   -MTgcc_m
swuddll\wxregex_regcomp.o -MFgcc_mswuddll\wxregex_regcomp.o.d -MD -MP ../../src/
'gcc' is not recognized as an internal or external command,
operable program or batch file.
makefile.gcc:5698: recipe for target 'gcc_mswuddll\wxregex_regcomp.o' failed
mingw32-make: *** [gcc_mswuddll\wxregex_regcomp.o] Error 1

Can't get richer than this
Can't get richer than this
Posts: 726
Joined: Mon Apr 30, 2012 11:07 pm

Re: trouble building library

Post by Manolo » Sat Feb 21, 2015 6:55 pm

The compiler needs to find several files. You can achieve it by adding mingwcompiler/bin folder to the path:
C:\SourceCode\Libraries\wxWidgets3.0\build\msw>mingw32-make.exe -f makefile.gcc BUILD=debug SHARED=1 MONOLITHIC=1 UNICODE=1

Notice that I have not used SHELL=CMD.exe (what do you need this?) nor CXXFLAGS=-fno-keep-inline-dllexport (used by TDM-GCC, but not really need for official MinGW-32).

Super wx Problem Solver
Super wx Problem Solver
Posts: 421
Joined: Fri Nov 03, 2006 2:00 pm

Re: trouble building library

Post by stahta01 » Sun Feb 22, 2015 8:29 pm

I told him about "SHELL=CMD.exe" on another site. It helps if you have sh.exe in your path.
I added PATH=C:\MinGW\bin;%PATH% to the post and they must have missed the edit.

Tim S.

Post Reply