Description:
Issue came up and the build failed with error
unknown type name 'CONDITION VARIABLE' CONDITION VARIABLE native_cond; when using mingw32;
i686-w64-mingw32;
x86_64-w64-mingw32;
environments. W64 project claimed to actually know the CONDITION VARIABLE.
However, the cmake config is not working for those environments. Many people claim unresolved problems when using mysql-connector-c with mingw. When using cygwin, some succeeded in building a static lib out of the dll, but these steps will not work with the mingw environments on linux when crosscompiling.
Thanks for looking at this issue/feature request! Many people struggled to do a compilation with mingw from source and because of that, there is no crosscompiling solution out there. Many projects fail because of this problem.
How to repeat:
Any cross compilation environment for windows on unix machines using mingw such as:
mingw32;
i686-w64-mingw32;
x86_64-w64-mingw32;
I need libmysql to be added to mxe (www.mxe.cc). MXE (M cross environment) is a Makefile that compiles a cross compiler and cross compiles many free libraries.
For a quick and detailed repeat, please check the private comment.