diff --git a/README b/README index bd9c0c9a..df10200a 100644 --- a/README +++ b/README @@ -106,6 +106,17 @@ Windows version The published version uses named event for server/client synchronization. Named pipes are used for server/client communications. A PortAudio (V19) based driver is used. It allows to access either MME, DirectSound or ASIO supported cards. + +To cross compile using mingw, do the following in the top folder: + +ARCH=x86_64-w64-mingw32.shared # e.g. + +PKGCONFIG=$ARCH-pkg-config CC=$ARCH-gcc CXX=$ARCH-g++ ./waf configure --platform=win32 + +PKGCONFIG=$ARCH-pkg-config CC=$ARCH-gcc CXX=$ARCH-g++ ./waf build -v + + + The binary elements are : - jackd.exe : the JACK server diff --git a/common/jack/systemdeps.h b/common/jack/systemdeps.h index f316aeb7..33ea6c38 100644 --- a/common/jack/systemdeps.h +++ b/common/jack/systemdeps.h @@ -60,6 +60,10 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. #if defined(_WIN32) && !defined(__CYGWIN__) && !defined(GNU_WIN32) + #ifdef __MINGW32__ + # include // mingw gives warning if we include windows.h before winsock2.h + #endif + #include #ifdef _MSC_VER /* Microsoft compiler */