Great news, Windows users: The recent Windows 10 Anniversary update features a bash shell that can run linux software directly on Windows. This allows you to install MercuryDPM on Windows machines, without the use of an emulator or a virtual machine. Here's how you can install MercuryDPM on Windows 10:
Minimum Requirements (see below for installation instructions)
- Compiler with c++11 features
- Note, version 4.7 of gcc claims to have C++11 feature. However, the implementation is incomplete and this version of MercuryDPM will not work under this version.
- gcc 4.8 is minimum version for gcc family of compliers.
- svn (subversion) version above 1.7
- cmake version 2.8 or higher
- doxygen (optional: used for creating the documentation while building your source code)
- X11 server (optional, but recommended, as it is used for basic visualisation)
For Windows 10 users:
Please make sure you have the latest version (at least the anniversary update 2-8-2016) and also use a 64 bit version of windows 10.
Activate Bash for Windows 10
- Search for " Windows Update settings"
- Go to " For developers"
- Activate "Developer mode"
- Close the app and open "Control Panel" -> "Programs" -> "Turn Windows features on or off"
- Enable "Windows Subsystem for Linux (Beta)" and click OK (you will be prompted to reboot. Click "Restart now" to install Bash)
- After reboot search for "bash" in the start menu and open the program
- The first time it will ask to accept the terms of service and will ask to create a username and password. If you're not familiar with the linux environment, this password is needed for most sudo (i.e., administrator) commands.
- You now have bash and all linux commands available at your computer. To start in linux mode just open the " Bash on Ubuntu on Windows " program. (Your windows files are under /mnt)
If you prefer to work from your windows files from start, it is also possible to enter from the CMD prompt by typing bash
- For visual programs an X11 server is needed. We recommend the Xming X server, available at https://sourceforge.net/projects/xming.
Download that program and follow the default installation instructions
- Start up the Xming program from the start menu. There should be now a X logo in the notification bar at the bottom left corner of your screen. Mouseover to see the address of the X11 display. (default case 0.0)
- Head to the terminal (Step 8)
- Use the following commands to get several packages required for MercuryDPM (enter your password and type 'Y' to accept the installation).
sudo apt-get install subversion
sudo apt-get install cmake-qt-gui
sudo apt-get install g++
sudo apt-get install build-essential
sudo apt-get install libx11-dev libxt-dev libxres-dev libxtst-dev
sudo apt-get install doxygen
- Tip: You can paste each command into the command window by right-clicking the title bar:
For using the cmake graphical user interface as well as Xballs or other visual programs, connection with the X11 server has to be established:
Type "export DISPLAY=localhost:0.0" (mind the capitals)
(if your adress from step 10 is different from 0.0 change the number)
- Now we will install MercuryDPM. Create a directory called "MercuryDPM", at a location of your choice, by typing
- To get into the directory, type
- Once in the folder MercuryDPM, download or check out the beta version of the DPM source by typing
Type 'p' during the process to permanently allow the svn to connect to the MercuryDPM server.
The above command downloads the MercuryDPM source code into the folder named "MercurySource"
- In the current folder, i.e. MercuryDPM, create another directory called "MercuryBuild"
- Get into the folder "MercuryBuild" by typing
- Assuming cmake is successfully installed, goto directory "MercuryBuild" in order to create the executables from the source code. Do it by typing
- A GUI pops up on your screen as in the picture shown below. Make sure option "Grouped" is selected and "Advanced" is selected
- After clicking on "Configure", the following window appears on your screen
- Select "Unix makefiles" under specify the generator for this code
- Choose "Use default native compilers"
- Click on "Done"
- Search for CMAKE_CXX_COMPILER in the CMAKE menu and change its value to " to /usr/bin/g++", then click "Configure" again
- Optional: for documentation tick the box MAKE_BUILD_DOCUMENTATION, in the picture as shown below, before you click on configure.
- Click on "Generate" to create the make files and directory structure in "MercuryBuild" that is needed to build executables from the source files.
The building/installation progress is visible in the bottom panel of your cmake-gui window screen, as seen in the screenshot below.
- Any red line in the bottom panel, indicates that some package is missing or needs to be installed to have a successful "configure". In that case, click on the "Advanced" option to see exactly where the issue is or contact any of the MercuryDPM team of developers.
- Once configured for the first time, under the group named 'CMAKE' type 'Release' at 'CMAKE_BUILD_TYPE'. See the picture above.
- To check if successfully installed, go to your build directory "MercuryBuild" using the terminal and type
This command builds all the source files in the directory "MercurySource" and creates the executables in the MercuryBuild directory. Then it runs several executables to test if MercuryDPM is installed correctly.
- If all the tests have passed, MercuryDPM is successfully installed on your machine.
- Please note: When using Xballs for make sure you have the Xming X11 server running (step 10) and are connected to the server (step 13) otherwise the visualisation will NOT work.
MercuryDPM mailing list