On Sun, Jan 30, 2011 at 2:48 PM, Andreas Pakulat <span dir="ltr"><<a href="mailto:apaku@gmx.de">apaku@gmx.de</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 30.01.11 13:43:13, Jack Poulson wrote:<br>
> Hello,<br>
><br>
> I am having a hard time figuring out what the appropriate method is for<br>
> getting cmake to find a library of the form /usr/lib/libgfortran.so.2.<br>
> Unfortunately, it is fairly common for /usr/lib/libgfortran.so not to exist.<br>
> I am fairly certain that forming /usr/lib/libgfortran.so as a symbolic link<br>
> would solve the problem, but I obviously cannot assume that the user has<br>
> administrator privileges.<br>
<br>
</div>Actually, noting having the .so or a symlink of that name suggests a<br>
broken installation. The 'pure' .so file is usually only included in the<br>
development packages, as its only necessary when building software<br>
against the shared library. Hence lacking that file, suggests that also<br>
headers are missing and possibly more things.<br>
<div class="im"><br></div></blockquote><div><br></div><div>I realize that this is _usually_ the case, but this is typical for gfortran installations and linking is successful if the .so.2 version is manually specified. I'm shooting for robustness.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">
> The find_library documentation for CMake 2.8 does not seem to specify how<br>
> NAMES can be used to specify the library extension. The following does not<br>
> find /usr/lib/libgfortran.so.2 when GFORTRAN_LIB_DIR_HINT is set to<br>
> /usr/lib:<br>
<br>
</div>You can't, your gfortran installation is not complete (in terms of<br>
linking to it), so fix that and then cmake will just fine the .so file.<br>
<br></blockquote><div><br></div><div>Again, it links just fine if the library is manually supplied. I am trying to make the build as portable as possible and needlessly requiring the user to have administrative rights does not help.</div>
<div><br></div><div>Jack</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
--<br>
You should emulate your heros, but don't carry it too far. Especially<br>
if they are dead.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br>