Are you sure you need X11? Are you sure this worked with wx 3.0.3? If yes, you may want to open a ticket at http://trac.wxwidgets.org

This is probably a configuration that hardly anyone ever tests, so it's possible that it becomes broken unnoticed.

Yeah, there is an official Cygwin package for 3.0.3 that was built with --with-x11, and I built it too to make sure I'd (at least sort of) set things up right. I'll have a look at doing that, but I'm thinking it's probably something with my configuration to be honest. The cygwin-provided package used a bunch of patches to build, but they don't seem to help me with wxwidgets-3.0.4.

I can live with bugs, I just want to get it built to be honest. I've been trying on and off for a while now.

Configured wxWidgets 3.0.4 for `i686-pc-cygwin'
Which GUI toolkit should wxWidgets use? x11
Should wxWidgets be compiled into single library? no
Should wxWidgets be linked as a shared library? yes
Should wxWidgets support Unicode? yes (using wchar_t)
What level of wxWidgets compatibility should be enabled?
wxWidgets 2.6 no
wxWidgets 2.8 yes
Which libraries should wxWidgets use?
STL no
jpeg sys
png sys
regex builtin
tiff sys
xpm yes
zlib sys
expat sys
libmspack no
sdl no

As you can see, I'm doing 32-bit, which might not be helping. I am also using mesa. Are you having more luck with the 64-bit version of Cygwin?

wxWidgets git master needed the below command to build wx base library; still building core and the other libs.
Edit: Just error-ed out with new error building wx core lib. The error looks to be 64 bit only issue.

Cygwin (Native GCC) should be able to build three wx toolkits
wxGTK
wxX11
wxMotif

Once, I get all three of them to build using Cygwin 32 bit.
I will create the updated documentation and do a Pull Request.
By then, I will likely know if it is a real wxWidgets 3.1.x 64 bit build issue and will likely report that problem as part of the PR for Cygwin documentation.

So, I've now had some time to mess about with this again. I was just getting to make a cygport file, but after the upgrade I just did to cygwin, the openGL libraries aren't being found any more. I have no idea why, because they're all still there, but the build options that were working before have now stopped working.

It seems okay if I disable openGL. Are there any repercussions for doing that?