Trouble Shooting Guide

Here you find answers to some frequently asked questions.

For more, please visit our Questions & Answers page: https://mercurydpm.atlassian.net/wiki/display/CQ..


General

I created a new code, but I cannot build it

Sometimes cmake does not detect new codes being created and hence it does not automatically add the new file to the build targets. To fix this problem simply type

make rebuild_cache

Many tests fail when running 'make fulltest' (on Mac)

The latest update of the Mac compiler suite causes MercuryDPM tests to fail when the optimisation flag -O3 is used. We recommend Mac users to compile in Debug mode (change CMAKE_BUILD_TYPE to Debug in cmake-gui), or switch to the compile flag -O2 in Release mode.

MercuryDPM is installed correctly. However, when executing make fullTest, not all tests pass.

#Test...

[CMakeFiles/fullTest.dir/build.make:61: CMakeFiles/fullTest] Error 2

[CMakeFiles/Makefile2:1466: CMakeFiles/fullTest.dir/all] Error 2

[CMakeFiles/Makefile2:1473: CMakeFiles/fullTest.dir/rule] Error 2

[Makefile:129: fullTest] Error 2


This is caused by a python version that does not work correctly with MercuryDPM.


Python 3.8 could possibly not work, Python 3.7 can be installed using the command


sudo apt-get install python3.7


After reloading your CMake project, all tests should pass.

CLion-related problems

How do I compile the codes in the USER directory?

You can only turn on the full USER directory. To do so in CLion, add "-DMercury_BUILD_USER_DIR=ON" in the CLion preferences, see this screenshot.

XBalls-related problems

X11 is found but .xballs files cannot be opened (on Mac)

This is only a problem if you upgraded your mac from OSX 10.8 to a version after 10.8. This would have required you to install XQuartz to get X11 to work. However, this leaves you will two versions of X11 installed and cmake find the old non working versions by default.

To fix this turn in cmake turn on advance mode click the X11 tab and change all the locations to start /opt/X11 not /local/X11 is will be currently stated.

X11_XRES_INCLUDE_PATH or X11_XRES_LIB not found

You are missing the X11_XRes library; in Ubuntu, you can install them by opening a terminal and type

sudo apt-get install libxres-dev

X11_XT_INCLUDE_PATH or X11_XT_LIB not found

You are missing the X11_Xt library; in Ubuntu, you can install them by opening a terminal and typing (note, both of these X11 libraries are required)

sudo apt-get install libxt-dev

sudo apt-get install libxpm-dev

Many tests fail when running 'make fulltest' (on Windows)