I resently started with MoFEM and I have problems running it on a HPC cluster using Singularity. (Docker is not supported on the cluster)
I started by pulling the MoFEM docker build using
singularity pull docker://likask/mofem-spack-build
But compiling a simple test file fails with this error:
$ singularity exec mofem-spack-build_latest.sif make
[ 50%] Building CXX object CMakeFiles/test_mofem.dir/test_mofem.cpp.o
/home/s-tomuel/mofem/test_mofem.cpp:1:10: fatal error: MoFEM.hpp: No such file or directory
1 | #include <MoFEM.hpp>
| ^~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/test_mofem.dir/build.make:63: CMakeFiles/test_mofem.dir/test_mofem.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/test_mofem.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
This is my CMakeLists.txt:
cmake_minimum_required(VERSION 3.10)
project(test_mofem)
add_executable(test_mofem test_mofem.cpp)
I am very new to this, so any help or hints toward to right direction is appreciated.