[Trilinos-Users] TPL libraries are not visible by Trilinos installed libraries
Chaomei Lo
chaomeilo at gmail.com
Mon May 5 17:42:07 MDT 2014
Dear Sir/Madam,
I am a new user of Trilinos. My previous post was being held cause " Post
by non-member to a members-only list". I would like to apologize if you
receive this message twice.
I would like to build shared library through using “-D
BUILD_SHARED_LIBS:BOOL=ON” in cmake, now I am not sure if that is all I
need to create Trilinos shared library, because I got this following
warning message when I compiled the application code that used Trilinos,
and it caused error when I ran the application.
*/usr/bin/ld: warning: libmkl_rt.so, needed by
/people/me/trilinos-11.6.1/trilinos-11.6.1_Install/lib/libanasazitpetra.so,
not found (try using -rpath or -rpath-link)*
In ~/trilinos-11.6.1/trilinos-11.6.1_Install/include, I found these two
lines in below from file “Makefile.export.Anasazi” and
“Makefile.export.Trilinos”. Were the “-Wl, rpath,” missing in front of
the
“/share/apps/intel/composer_xe_2013.3.163/mkl/lib/intel64/libmkl_rt.so”
?
However these Makefile.export.* file were generated automatically by
CMake, please advise me how to fix it to have “libmkl_rt.so” be visible for
Trilinos shared libraries. Also please notice there are three repeated
“libmkl_rt.so” in these lines, please help me understand why.
-----This is extracted from Makefile.export.Anasazi file
-----------------------------------------------------------------------------------
## List of required TPLs
Anasazi_TPL_LIBRARIES=
/share/apps/intel/composer_xe_2013.3.163/mkl/lib/intel64/libmkl_rt.so
/share/apps/intel/composer_xe_2013.3.163/mkl/lib/intel64/libmkl_rt.so
/share/apps/intel/composer_xe_2013.3.163/mkl/lib/intel64/libmkl_rt.so
------This is from Makefile.export.Trilinos file
------------------------------------------------------------------------------
## The project tpl libraries
Trilinos_TPL_LIBRARIES= /share/apps/Trilinos/11.4.3/lib/libamd.a
/share/apps/Trilinos/11.4.3/lib/libumfpack.a
/share/apps/Trilinos/11.4.3/lib/libamd.a
/share/apps/intel/composer_xe_2013.3.163/mkl/lib/intel64/libmkl_rt.so
/share/apps/intel/composer_xe_2013.3.163/mkl/lib/intel64/libmkl_rt.so
/share/apps/intel/composer_xe_2013.3.163/mkl/lib/intel64/libmkl_rt.so
Thanks a lot !
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://software.sandia.gov/pipermail/trilinos-users/attachments/20140505/591f4743/attachment.html>
More information about the Trilinos-Users
mailing list