670
Comment:
|
← Revision 3 as of 2007-10-12 03:51:18 ⇥
1064
|
Deletions are marked like this. | Additions are marked like this. |
Line 9: | Line 9: |
4. Make sure subversion is installed | 4. Make sure subversion is installed, and check out the repository |
Line 11: | Line 11: |
5. svn co svn+ssh://hannah@contact.mpi-sb.mpg.de/KM/ir/SVN/autocompletion | {{{ svn co svn+ssh://hannah@contact.mpi-sb.mpg.de/KM/ir/SVN/autocompletion }}} |
Line 13: | Line 15: |
6. make startCompletionServer | 5. Now compilation of the main program |
Line 15: | Line 17: |
Many errors!! E.g.: MinGW does not support pthreads, no fseeko / ftello, missing regex.h, ... | {{{ make startCompletionServer }}} |
Line 17: | Line 21: |
7. Download the three headers files pthread.h, sched.h, semaphore.h from ftp://sourceware.org/pub/pthreads-win32/dll-latest, and also download the lib (the one with E in the name, E = exception) | will give many errors!! E.g.: MinGW does not support pthreads, no fseeko / ftello, missing regex.h, ... |
Line 19: | Line 23: |
8. Compile with -Dfeeko=fseek -Dftello=ftell -Duseconds_t=size_t | 7. Download the following files (header files + lib) from ftp://sourceware.org/pub/pthreads-win32/dll-latest |
Line 21: | Line 25: |
9. | {{{ 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 }}} |
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