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


292
views
0
9 months ago by
Alex  
After downloading: PETSc and SLEPc from source, I installed fenics using the same procedure shown here:
https://fenicsproject.org/qa/13536/compile_extension_module-gives-error-petscsys-directory

After that I tried to run the poisson C++ example as shown here:
https://fenicsproject.org/olddocs/dolfin/1.4.0/cpp/demo/index.html

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,
Alex
Community: FEniCS Project

1 Answer


0
9 months ago by
Hi,
try to have a look at the second comment to
https://bitbucket.org/fenics-project/dolfin/issues/855/docker-fenics-20171-error-when-including
by adding those two lines to the UseDOLFIN.cmake in /usr/share/dolfin/cmake (or a similar path)

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

Similar posts:
Search »