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