[Trilinos-Users] TPL libraries are not visible by Trilinos installed libraries

Lo, Chaomei c.lo at pnnl.gov
Mon May 5 16:24:40 MDT 2014


Dear Sir/Madam,

I am a new user of Trilinos.  I would like to build shared library through using "-D BUILD_SHARED_LIBS:BOOL=ON" in cmake. However, 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.
Chaomei
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://software.sandia.gov/pipermail/trilinos-users/attachments/20140505/9fc5544f/attachment.html>


More information about the Trilinos-Users mailing list