Here are steps needed to set up a Windows machine as a Jenkins slave for the Pharo jenkins server.
- Make sure to switch the language setting to ENGLISH we all use standard US-layouts, the only layout you can program with. No French, no German and certainly no Swiss layout! And remind that all applications have to be installed in ENGLISH.
- Firstly install a decent browser and add a link to the browser to the windows task bar and make sure to change its interface language to ENGLISH
- Now open this very website in the newly installed web browser.
- Install a decent text editor, again add the link to the task bar
- Install a tool to unlock locked files in Windows. With jenkins running stuff on the windows slave that happens more often than you think. Whenever there is a problem of deleting files that are still opened somewhere, use the unlocker to close applications that still access those files.
- Install Oracle Java Runtime
- Download and install MinGW and MSYS, with C/C\+\+ compiler support To install mingw\+msys using a single, painless step, one should download latest installer. While installing grab a snack, drink a coffee and enjoy the view from your window.
- For simplicity install all packages (also MinGW-dev) for maximum compatibility
- Make sure you have MinGW (usually C:\MinGW\msys\1.0\bin) in the Path environment variable.
- Install a decent shell because the default shells do NOT have proper mouse interaction, even worse, copy paste wont work with keyboard shortcuts.
-
Install the following additional MinGW packages by running the following command in the MingGW Shell
1:
mingw-get install msys-unzip msys-wget msys-zip
- Download and install Git. During the installation, I choose the option "run git from from the windows command prompt".
- Optional: add git to the PATH variable so that you can see git from msys. To do this, add path to git for msys: Control panel -> System, then search for Environment Variables. There should be already: C:\Program Files\Git\cmd. Add C:\Program Files\Git\bin. Notice that the path may not be exactly C:\Program Files\Git but similar…
- Install CMake: during installation, in install options , make sure that you choose to add CMake to PATH.
- Checking : to check if everything is installed, open MSYS program (which should look like a UNIX terminal) and try to execute the different commands: git, make and cmake.
- Make sure to deactivate file indexing for the workspace (or in general due to slowing down file operations). To do so open the program "Indexing Options" from the start-menu and exclude or remove the workspace / all files from the indexed directories.
- Also you need to add:
1: 2: 3: |
#ifndef _MINGW_FLOAT_H_ #include_next <float.h> #endif |
in C:\MinGW\lib\gcc\mingw\32\4.6.1\include\float.h or C:\Program Files\MinGW\lib\gcc\mingw32\4.6.1\include\float.h. The version number, in this case 4.6.1, might be different in your case.
For details see http://marianopeck.wordpress.com/2011/04/10/building-the-vm-from-scratch-using-git-and-cmakevmmaker
Hide
No comments