Building wxWidgets under MinGW/MSYS for use with Eclipse

Lars Uffmann aral at nurfuerspam.de
Mon May 5 02:16:19 PDT 2008



Vadim Zeitlin wrote:
> This is because the real wx-config is created by configure. If you don't
> use configure for building wx, you can't use wx-config. Of course, if you
> do have MSYS anyhow nothing prevents you from using configure to build wx
> (instead of "make -f makefile.gcc").

Thanks a lot, that's what I get for following directions too closely and 
not thinking of the obvious thing to do :)
./configure and make worked just fine.

Now the only problem I have is that it seems the backticks are not 
supported with eclipse & MinGW g++
Namely, g++ `wx-config --cxxflags` does not expand the wx-config, but 
instead complains about
  g++: `wx-config: No such file or directory
  cc1plus.exe: error: unrecognized command line option "-fcxxflags`"

Solution(?): I just played around a bit and found that I can just use a 
different toolchain - Using the "Linux GCC"-toolchain instead of "MinGW 
GCC", my build process accepts the backticks and produces an executable 
just as it should.

Does anyone happen to know of any troubles I am going to be running 
into, using the Linux GCC toolchain under WinXP SP2 & Eclipse & 
wxWidgets? I am ignorant of the differences between the two, except for 
that one appears to be working with backticks and the other doesn't. 
 From my understanding, Linux GCC toolchain would be the very same GCC 
compiler that I installed with MinGW (for MSYS doesn't come with it's 
own), and the only difference would be that Eclipse invokes it using the 
MSYS shell instead of via mingw32-gcc.exe. Or am I missing something?

Best Regards,

    Lars


More information about the wx-users mailing list