Building Mantid on CentOS 7 virtual machine

I’m experiencing issues with building Mantid on virtualbox, whereby i cannot complete the configuration stage in cmake.

I am getting the following errors on CentOS 7 when configuring in cmake version 3.14.6 and Ninja as generator:

CMake Error in /home/osboxes/dev/mdev/CMakeFiles/CMakeTmp/CMakeLists.txt:
Target “cmTC_ff04d” requires the language dialect “CXX17” (with compiler
extensions), but CMake does not know the compile flags to use to enable it.

CMake Error at /usr/share/cmake3/Modules/CheckSymbolExists.cmake:100 (try_compile):
Failed to generate test project build system.
Call Stack (most recent call first):
/usr/share/cmake3/Modules/CheckCXXSymbolExists.cmake:52 (__CHECK_SYMBOL_EXISTS_IMPL)
/usr/share/cmake3/Modules/FindQt4.cmake:756 (CHECK_CXX_SYMBOL_EXISTS)
CMakeLists.txt:115 (find_package)

i have installed the latest mantid-developer package via yum.

is there anything i’m missing?

Hi,

We now require a compiler with C++17 suppor. On CentOS 7 we use an scl package to bring in gcc 7. Can you install devtoolset-7-gcc-c++ and then follow the instruction at the end of the list here and wrap the cmake3 call. You can then build as normal with ninja without the scl command.