Error message from configure

187 views
Skip to first unread message

David Crocker

unread,
Aug 20, 2018, 8:08:13 AM8/20/18
to wx-dev
Hi, I am trying to build a MSW configuration of wxWidgets 3.1.1 using MinGW. I normally use Visual Studio for Windows builds, but the third-party project I am building uses GCC extensions to C++, so it needs a MinGW or Cygwin build instead.

First I installed mingw-w64 but unfortunately that doesn't include a command shell, so I was unable to run the 'configure' script to generate the necessary include files. So then I installed MSYS2 which is supposed to be mingw-w64 along with tools. I opened a MSYS2 shell in the wxWidgets folder and ran ../configure --disable-shared. This was the result:

>>
David@Admin MSYS /c/Eclipse/bossa/wxWidgets-3.1.1
$ ./configure --disable-shared
configure: loading site script /etc/config.site
checking build system type... x86_64-pc-msys
checking host system type... x86_64-pc-msys
configure: WARNING: *** System type x86_64-pc-msys is unknown, assuming generic Unix and continuing nevertheless.
configure: WARNING: *** Please report the build results to wx-...@googlegroups.com.
checking for toolkit... x11
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/c/Eclipse/bossa/wxWidgets-3.1.1':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details

David@Admin MSYS /c/Eclipse/bossa/wxWidgets-3.1.1
<<

So I am reporting the build results here as requested in the message.

What is the correct way to do a MSW build using gcc these days? Once I have the configuration sorted out, I plan to use Eclipse (which has support for MINGW) as the build environment.

Maarten Bent

unread,
Aug 20, 2018, 8:12:19 AM8/20/18
to wx-...@googlegroups.com
Hi,

You need to use the MinGW shell (MSYS2 MinGW 64-bit), not the MSYS2 shell.
And make sure all required packages are installed, I think you need at least msys2-devel and mingw-w64-x86_64-toolchain.

Maarten
--
To unsubscribe, send email to wx-dev+un...@googlegroups.com
or visit http://groups.google.com/group/wx-dev


Vadim Zeitlin

unread,
Aug 20, 2018, 7:31:05 PM8/20/18
to wx-...@googlegroups.com
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
Reply all
Reply to author
Forward
0 new messages