← Back to team overview

dolfin team mailing list archive

Re: [Question #156058]: ARMADILLO_TEST_RUNS

 

Question #156058 on DOLFIN changed:
https://answers.launchpad.net/dolfin/+question/156058

    Status: Open => Answered

Johannes Ring proposed the following answer:
The problem now is that the Armadillo library needs to be linked to the
gfortran library. You can do this by adding the following two lines
after line 33 in the FindArmadillo.cmake file that you downloaded from
the DOLFIN development repository:

    find_library(GFORTRAN_LIBRARY gfortran)
    list(APPEND ARMADILLO_LIBRARIES "${GFORTRAN_LIBRARY}")

Then try to configure DOLFIN with cmake again. If it still doesn't find
Armadillo, try to run the following command:

    gfortran -print-file-name=libgfortran.so

This should print out the path to the gfortran library. When I run that
command I get this output:

    /usr/lib/gcc/i486-linux-gnu/4.4.3/libgfortran.so

Then, replace the "find_library" line you added in FindArmadillo.cmake
with this:

    find_library(GFORTRAN_LIBRARY gfortran
        PATHS /usr/lib/gcc/i486-linux-gnu/4.4.3)

Make sure to substitute "/usr/lib/gcc/i486-linux-gnu/4.4.3" with the
path you got in the output from running the gfortran command above.

-- 
You received this question notification because you are a member of
DOLFIN Team, which is an answer contact for DOLFIN.