This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Linking to boost

0 votes

I am having some trouble compiling dolfin. I have configured cmake using the command:

cmake -DCMAKE_CXX_COMPILER=mpic++ -DCMAKE_C_COMPILER=mpicc -DEIGEN3_INCLUDE_DIR=/usr/local/include/ -DDOLFIN_ENABLE_PYTHON=false -DDOLFIN_ENABLE_SPHINX=false ..

Which worked fine. I then use 'make' to compile. Everything complies fine except, dolfin cannot find the boost libraries. I think this is because my copy of boost is not in /usr/local or /usr/ or something standard like that. Is there an option to tell dolfin to look somewhere else for the boost libraries --- something like:

-DDOLFIN_BOOST_DIR=/path/to/boost/
asked Sep 27, 2016 by davisad FEniCS Novice (470 points)
edited Sep 28, 2016 by davisad

1 Answer

+1 vote
 
Best answer

Try -DBOOST_ROOT=/path/to/boost.

answered Sep 28, 2016 by johannr FEniCS Expert (17,350 points)
selected Sep 28, 2016 by davisad
...