Steps:
1. Download MinGW from http://www.mingw.org
2. Put C:\opt\MinWG\bin in the path before C:\opt\cygwin\bin
3. Open a windows cmd shell
4. Make sure subversion is installed, and check out the repository
svn co svn+ssh://hannah@contact.mpi-sb.mpg.de/KM/ir/SVN/autocompletion
5. Now compilation of the main program
make startCompletionServer
will give many errors!! E.g.: MinGW does not support pthreads, no fseeko / ftello, missing regex.h, ...
7. Download the following files (header files + lib) from ftp://sourceware.org/pub/pthreads-win32/dll-latest
pthread.h sched.h semaphore.h libpthreadGCE2.a (the E stands for exception)
8. Add the following redefinitions to the g++ options + the path where to find the above header files
-Dfeeko=fseek -Dftello=ftell -Duseconds_t=size_t -I.
9. Change the socket includes in CompletionServer.h to
#ifdef __MINGW32__ #include <winsock.h> #else #include <netinet/in.h> /* for sockets */ #include <arpa/inet.h> #endif