On Mon, 20 Aug 2018 04:51:51 -0700 (PDT) David Crocker wrote:
DC> Hi, I am trying to build a MSW configuration of wxWidgets 3.1.1 using
DC> MinGW. I normally use Visual Studio for Windows builds, but the third-party
DC> project I am building uses GCC extensions to C++, so it needs a MinGW or
DC> Cygwin build instead.
Hello David,
FWIW I think Cygwin is a better solution if you want to use configure (and
I do think that using configure is preferable to using makefile.gcc too).
While Cygwin has its problems, it's still a more consistent and stable
environment than various MinGW ones and you can perfectly well use more up
to date MinGW-w64 as a cross-compiler from Cygwin, as I do.
DC> First I installed mingw-w64 but unfortunately that doesn't include a
DC> command shell, so I was unable to run the 'configure' script to generate
DC> the necessary include files. So then I installed MSYS2 which is supposed to
DC> be mingw-w64 along with tools. I opened a MSYS2 shell in the wxWidgets
DC> folder and ran ../configure --disable-shared. This was the result:
DC>
DC> >>
DC> David@Admin MSYS /c/Eclipse/bossa/wxWidgets-3.1.1
DC> $ ./configure --disable-shared
DC> configure: loading site script /etc/config.site
DC> checking build system type... x86_64-pc-msys
DC> checking host system type... x86_64-pc-msys
DC> configure: WARNING: *** System type x86_64-pc-msys is unknown, assuming
DC> generic Unix and continuing nevertheless.
DC> configure: WARNING: *** Please report the build results to
DC>
wx-...@googlegroups.com.
DC> checking for toolkit... x11
DC> checking for gcc... no
DC> checking for cc... no
DC> checking for cl.exe... no
DC> configure: error: in `/c/Eclipse/bossa/wxWidgets-3.1.1':
DC> configure: error: no acceptable C compiler found in $PATH
DC> See `config.log' for more details
DC>
DC> David@Admin MSYS /c/Eclipse/bossa/wxWidgets-3.1.1
DC> <<
DC>
DC> So I am reporting the build results here as requested in the message.
I'm afraid this is a generic error message from configure (which uses the
maintainers email address which is specified as wx-dev) and I don't know if
we can do anything about it. You should be able to find more details in
config.log
DC> What is the correct way to do a MSW build using gcc these days?
The 2 ways that are definitely supposed to work are:
1. Using Cygwin and configure.
2. Using plain MSYS with build\msw\makefile.gcc.
I _think_ it should also be possible to make configure work under some
MSYS environment somehow, but there are just too many of them, each
broken^H^H^H^H^H^H different in its own way, to ensure that all of them
work, I'm afraid.
Good luck!
VZ