Getting error: slepceps.h: No such file or directory

6 months ago by
After downloading: PETSc and SLEPc from source, I installed fenics using the same procedure shown here:

After that I tried to run the poisson C++ example as shown here:

And when I run make I get:
[ 50%] Building CXX object CMakeFiles/demo_poisson.dir/main.cpp.o
In file included from /usr/include/dolfin/la/dolfin_la.h:53:0,
from /usr/include/dolfin.h:22,
from /home/alex/fenicsfiles/3dprinting/cpp/main.cpp:34:
/usr/include/dolfin/la/SLEPcEigenSolver.h:25:22: fatal error: slepceps.h: No such file or directory
#include <slepceps.h>
compilation terminated.
CMakeFiles/demo_poisson.dir/build.make:62: recipe for target 'CMakeFiles/demo_poisson.dir/main.cpp.o' failed
make[2]: *** [CMakeFiles/demo_poisson.dir/main.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/demo_poisson.dir/all' failed
make[1]: *** [CMakeFiles/demo_poisson.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

Does that mean I have to install fenics from source?
What are the recommended latest stable libraries?
Is there a program that can install fenics automatically with all its dependencies?
(I would rather not use docker because I have other C++ libraries that I have to use in the same fenics C++ files)

Thank you,
Community: FEniCS Project

1 Answer

6 months ago by
try to have a look at the second comment to
by adding those two lines to the UseDOLFIN.cmake in /usr/share/dolfin/cmake (or a similar path)

Please login to add an answer/comment or follow this question.

Similar posts:
Search »