FEniCS in C++: Missing header ufc.h when building in new source tree

4 months ago by
I just installed FEniCS after several days of compiling code and am ready to get started! I am only interested in using the C++ functionality for now.

I have already followed all the instructions on compiling and installing from source and believe I have done everything necessary. My DOLFIN installation is based in my user directory under ~/software/fenics. I have pip installed the Python-based modules. The demos appear to work flawlessly. And yet, when I was ready to try my hand at coding my own "hello, world" program, I get the following error:

In file included from /home/eprice/software/fenics/include/dolfin/mesh/Facet.h:28:0,
                 from /home/eprice/software/fenics/include/dolfin/mesh/dolfin_mesh.h:19,
                 from /home/eprice/software/fenics/include/dolfin.h:10,
                 from main.cpp:1:
/home/eprice/software/fenics/include/dolfin/mesh/Cell.h:34:17: fatal error: ufc.h: No such file or directory
 #include <ufc.h>​

So something is missing from the local installation. I found the required file in "ffc/ffc/backends/ufc/ufc.h" under my FEniCS source tree, but it seems unusual to need to include anything out of the install tree. Have I missed a step somewhere? Shouldn't this file (and its friends) be in the install tree already?

Community: FEniCS Project
This may suggest better locale for question:
written 4 months ago by jwinkle  
I have the same issue with the docker image quay.io/fenicsproject/stable:latest, which is used in my CI for a long time and suddenly started failing. As I would assume that this is not such an uncommon use-case it might be reasonable to post the answer here.
written 4 weeks ago by lubkoll  
Please login to add an answer/comment or follow this question.

Similar posts:
Search »