<p dir="ltr">Hi,</p>
<p dir="ltr">I think you are looking for fixup_bundle if you are missing DLLs at install. There's no real need to look for the DLLs yourself.</p>
<p dir="ltr">Lectem </p>
<br><div class="gmail_quote"><div dir="ltr">Le sam. 28 oct. 2017 à 08:18, Hendrik Sattler <<a href="mailto:post@hendrik-sattler.de">post@hendrik-sattler.de</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
looking at the location of the gnat static library, it seems to be a compiler library like libm. You usually do not use find_package on those but directly use -lgnat and the compiler knows how to find it. Requesting static linking will also work then.<br>
<br>
HS<br>
<br>
<br>
Am 28. Oktober 2017 05:38:19 MESZ schrieb "Alan W. Irwin" <<a href="mailto:irwin@beluga.phys.uvic.ca" target="_blank">irwin@beluga.phys.uvic.ca</a>>:<br>
>On 2017-10-27 22:31+0200 Marco Atzeri wrote:<br>
><br>
>> On 27/10/2017 09:32, Alan W. Irwin wrote:<br>
>>> I am pretty sure there are a non-zero number of CMake users here who<br>
>>> have had CMake experience finding dll's on Cygwin (since it appears<br>
>>> from the quote below that import libraries can be replaced by dll's<br>
>>> for the purposes of linking on that platform).  So if you are one<br>
>with<br>
>>> such experience, I would really appreciate an answer to (or commment<br>
>>> on) the specific question below concerning finding cyggnat-6.dll on<br>
>>> Cygwin or if you prefer to frame your response to the more general<br>
>>> question of finding dll's on that platform, that would be great as<br>
>>> well.<br>
>>><br>
>>> Alan<br>
>><br>
>> using the import library is the standard way for linking,<br>
>> looking for the shared library is surely unusual.<br>
>><br>
>> I am not a user of ADA, but the import libraries seems<br>
>> the one on /usr/lib/gcc/x86_64-pc-cygwin/6.4.0/adalib/<br>
><br>
>Hi Marco:<br>
><br>
>Thanks for your input to the discussion.<br>
><br>
>I believe you are referring to<br>
>/usr/lib/gcc/x86_64-pc-cygwin/6.4.0/adalib/libgnat.a<br>
><br>
>(at least that appears to be the only library candidate I can come up<br>
>with<br>
>by searching for the RE<br>
><br>
>"usr/lib/gcc/x86_64-pc-cygwin/6.4.0/adalib/.*gnat"<br>
><br>
>using the <<a href="http://cygwin.com/cgi-bin2/package-grep.cgi" rel="noreferrer" target="_blank">http://cygwin.com/cgi-bin2/package-grep.cgi</a>> package search<br>
>engine.)<br>
><br>
>Our understanding is the Cygwin naming convention for the various<br>
>kinds of libraries would be (in the gnat library case)<br>
><br>
>dll               cyggnat-6.dll<br>
>import library    libgnat-6.dll.a<br>
>static library    libgnat.a<br>
><br>
>If you use the above search engine to search for the RE "gnat.*dll" it<br>
>only finds the above dll and no corresponding import library.<br>
><br>
>We are pretty sure from its name that libgnat.a is just a static<br>
>library. Anyhow, when we link our test_ada library against libgnat.a<br>
>that link does appear to work, but afterward when linking Ada<br>
>executables against our Ada library (which involves a gnatlink step<br>
>with hidden link to one form of the gnat library but likely also<br>
>cyggnat-6.dll) we get multiple symbol definition errors. That linking<br>
>inconsistency does not happen if we link our Ada library against<br>
>cyggnat-6.dll so it appears that is the library CMake needs to find in<br>
>this case.<br>
><br>
>Which neatly ( :-) ) leads back to my original question which is what<br>
>is the<br>
>best CMake logic to find that dll?<br>
><br>
>Alan<br>
><br>
>__________________________<br>
>Alan W. Irwin<br>
><br>
>Astronomical research affiliation with Department of Physics and<br>
>Astronomy,<br>
>University of Victoria (<a href="http://astrowww.phys.uvic.ca" rel="noreferrer" target="_blank">astrowww.phys.uvic.ca</a>).<br>
><br>
>Programming affiliations with the FreeEOS equation-of-state<br>
>implementation for stellar interiors (<a href="http://freeeos.sf.net" rel="noreferrer" target="_blank">freeeos.sf.net</a>); the Time<br>
>Ephemerides project (<a href="http://timeephem.sf.net" rel="noreferrer" target="_blank">timeephem.sf.net</a>); PLplot scientific plotting<br>
>software package (<a href="http://plplot.sf.net" rel="noreferrer" target="_blank">plplot.sf.net</a>); the libLASi project<br>
>(<a href="http://unifont.org/lasi" rel="noreferrer" target="_blank">unifont.org/lasi</a>); the Loads of Linux Links project (<a href="http://loll.sf.net" rel="noreferrer" target="_blank">loll.sf.net</a>);<br>
>and the Linux Brochure Project (<a href="http://lbproject.sf.net" rel="noreferrer" target="_blank">lbproject.sf.net</a>).<br>
>__________________________<br>
><br>
>Linux-powered Science<br>
>__________________________<br>
>--<br>
><br>
>Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
><br>
>Please keep messages on-topic and check the CMake FAQ at:<br>
><a href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
><br>
>Kitware offers various services to support the CMake community. For<br>
>more information on each offering, please visit:<br>
><br>
>CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
>CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
>CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/training.html</a><br>
><br>
>Visit other Kitware open-source projects at<br>
><a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
>Follow this link to subscribe/unsubscribe:<br>
><a href="http://public.kitware.com/mailman/listinfo/cmake" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/cmake</a><br>
<br>
--<br>
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.<br>
--<br>
<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/cmake" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/cmake</a></blockquote></div>