• Beta Update (Bug Fix CubeInsertionBoundaries)
    May 5th, 2017
    Read More …
  • Beta Update (New feature added)
    March 29th, 2017
    Read More …
  • Mercury @ Physics@Veldhoven
    January 18th, 2017
    Read More …


RSS Feed

Windows 10

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

  1. Search for " Windows Update settings"

  2. Go to " For developers"
  3. Activate "Developer mode"

  4. Close the app and open "Control Panel" -> "Programs" -> "Turn Windows features on or off"
  5. Enable "Windows Subsystem for Linux (Beta)" and click OK (you will be prompted to reboot. Click "Restart now" to install Bash)
  6. After reboot search for "bash" in the start menu and open the program

  7. 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.

  8. 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

  9. For visual programs an X11 server is needed. We recommend the Xming X server, available at
    Download that program and follow the default installation instructions
  10. 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)

  11. Head to the terminal (Step 8)
  12. 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
  13. Tip: You can paste each command into the command window by right-clicking the title bar:

  14. 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)
  15. Now we will install MercuryDPM. Create a directory called "MercuryDPM", at a location of your choice, by typing
    mkdir MercuryDPM
  16. To get into the directory, type
    cd MercuryDPM/
  17. Once in the folder MercuryDPM, download or check out the beta version of the DPM source by typing
    svn checkout MercurySource

    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"

  18. In the current folder, i.e. MercuryDPM, create another directory called "MercuryBuild"
    mkdir MercuryBuild
  19. Get into the folder "MercuryBuild" by typing
    cd MercuryBuild
  20. Assuming cmake is successfully installed, goto directory "MercuryBuild" in order to create the executables from the source code. Do it by typing
    cmake-gui ../MercurySource/
  21. A GUI pops up on your screen as in the picture shown below. Make sure option "Grouped" is selected and "Advanced" is selected

  22. After clicking on "Configure", the following window appears on your screen

    1. Select "Unix makefiles" under specify the generator for this code
    2. Choose "Use default native compilers"
    3. Click on "Done"
  23. Search for CMAKE_CXX_COMPILER in the CMAKE menu and change its value to " to /usr/bin/g++", then click "Configure" again

  24. Optional: for documentation tick the box MAKE_BUILD_DOCUMENTATION, in the picture as shown below, before you click on configure.

  25. 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.

    1. 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.
    2. Once configured for the first time, under the group named 'CMAKE' type 'Release' at 'CMAKE_BUILD_TYPE'. See the picture above.
  26. To check if successfully installed, go to your build directory "MercuryBuild" using the terminal and type
    make fullTest

    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.

  27. If all the tests have passed, MercuryDPM is successfully installed on your machine.
  28. 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