<div>Eric,</div>
<div> </div>
<div>The reason I asked my original question was because a user of ours who was trying to install the project (using yum) was unable to install it (and it displayed the boost python library as a missing dependency). If I am building the boost libraries on my computer, would you suggest I just create another rpm with the missing dependency (or maybe all of the boost libraries?), or should I find it on one of the rpm sites and send that? Is it better if I do it myself, or use an rpm at one of those sites? I see the former as being easier for me as I expect that I may have to send these to several people, and I dont want the user to have to find things.</div>
<div> </div>
<div>Thanks for all of your helpful suggetsions.</div>
<div> </div>
<div>--Robert<br></div>
<div class="gmail_quote">On Sat, Feb 20, 2010 at 10:15 AM, Eric Noulard <span dir="ltr"><<a href="mailto:eric.noulard@gmail.com">eric.noulard@gmail.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">2010/2/20 Hendrik Sattler <<a href="mailto:post@hendrik-sattler.de">post@hendrik-sattler.de</a>>:<br>
<div class="im">> Am Samstag 20 Februar 2010 01:27:20 schrieb Robert Knapke:<br>>> My CMake project links a boost python shared library when builiding the<br>>> libraries and executables. I am using CPack to make an rpm of my project,<br>
>> but the boost python shared library is not included in the rpm. So when<br>>> the user tries to install the rpm, it asks for this boost python shared<br>>> library. However, I do not want to make the user download and compile<br>
>> boost. Is there a way to include this library in the rpm using CPack?<br><br></div>You may find documentation about CPackRPM<br>on the Wiki:<br><a href="http://www.cmake.org/Wiki/CMake:CPackPackageGenerators#RPM_.28Unix_Only.29" target="_blank">http://www.cmake.org/Wiki/CMake:CPackPackageGenerators#RPM_.28Unix_Only.29</a><br>
<br>and from the command line (since CMake 2.8.0):<br><br>cmake --help-module CPackRPM<br>
<div class="im"><br>> At least for RPM and DEB, you do _not_ include foreign libraries in a package!<br>> Boost should be available pre-compiled as RPM. If not, ship it as additional<br>> RPM package.<br><br></div>
Hendrik is right it is not a good idea to embed third party shared<br>libraries in your RPM/DEB.<br>DEB and RPM are meant to handle dependencies between appropriate<br>version of RPMs.<br><br>Try to run the following command:<br>
<br>rpm -qp --requires <your_CPack_generated.rpm><br><br>and you'll find the requirements for the generated RPMs.<br><br>Most of the time RPM installing tools (yum, urpmi, zypper etc...)<br>[the same is true for apt-xxx/aptitude/synaptic etc...]<br>
may find the missing RPMs in standard "repositories".<br><br>If they don't try to find for yourself with appropriate RPM search engines:<br><a href="http://rpm.pbone.net/" target="_blank">http://rpm.pbone.net/</a><br>
<a href="http://www.rpmfind.net/" target="_blank">http://www.rpmfind.net/</a><br>...<br><br><br>--<br>Erk<br>Membre de l'April - « promouvoir et défendre le logiciel libre » -<br><a href="http://www.april.org/" target="_blank">http://www.april.org</a><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>