On 06/15/2017 03:32 PM, Bruno Turcksin wrote:
The problem is that
Trilinos botched their TrilinosConfig.cmake. What we do is load the
TrilinosConfig.cmake to get their flags but if they don't put them in,
there is little we can do.
To be more specific: When the Trilinos cmake configuration builds the
Trilinos python interfaces, it forgets to either (i) record in the .so
file for that component of Trilinos that it depends on the python libs,
so that whenever you link with that .so the dynamic linker automatically
also pulls in the python libs, or (ii) record somewhere in the
TrilinosConfig.cmake that is installed along with the Trilinos libs that
whenever someone links with the Trilinos .so files that they *also* need
to link with the python libs.
There is little one can do to work around this: the deal.II cmake
configuration would have to figure out that Trilinos was configured to
include the python interfaces, and then it would have to figure out what
specific libraries the Trilinos .so files depend on. That's asking for
too much.
That's why Bruno is recommending this:
What I would do is to add the flags needed
myself. Edit the file
/trilinos_install_directory/lib/cmake/Trilinos/TrilinosConfig.cmake
and add the flag that you need in SET(Trilinos_CXX_COMPILER_FLAGS) or
SET(Trilinos_EXTRA_LD_FLAGS).
This would add to the *installed* Trilinos configuration the parts that
are missing, so that the deal.II cmake configuration files know what
else to link with.
Best
W.
--
------------------------------------------------------------------------
Wolfgang Bangerth email: bange...@colostate.edu
www: http://www.math.colostate.edu/~bangerth/
--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see
https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to dealii+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.