Ubuntu 16.04 | petscsys.h, slepceps.h error !!!

89 views
Skip to first unread message

Tom Mathew

unread,
Jan 10, 2018, 6:03:35 AM1/10/18
to fenics-support
Hello
I just installed fenics and was trying some examples from the collection on internet. Python files are running fine but while making the .cpp files I am getting this error

[ 50%] Building CXX object CMakeFiles/demo_poisson.dir/main.cpp.o
In file included from /usr/include/dolfin/common/dolfin_common.h:9:0,
                 from /usr/include/dolfin.h:10,
                 from /home/tomathew/Work/learn/fenics/c++/poisson/main.cpp:34:
/usr/include/dolfin/common/types.h:24:22: fatal error: petscsys.h: No such file or directory
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

____________________

I tried including the petsc directory (/usr/lib/petsc/____) to the include_directories in CMakeLists.txt, then the same error occurred this time but for slepceps.h

Can anyone please suggest how to fix this problem ?

Thanks in advance
Tom Mathew
Reply all
Reply to author
Forward
0 new messages