<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
ok, I followed the instructions as you posted and changed the file CPackRPM.cmake:<br>http://www.cmake.org/pipermail/cmake/2009-March/028301.html<br><br>and the rpm file is generated under my Linux/RPM folder! :) <br>As it is getting late I'll have to test the installation on another computer tomorrow. Thanks so much for the help and references!<br><br>Pascale<br><br><br><br><hr id="stopSpelling">From: chose29@hotmail.com<br>To: eric.noulard@gmail.com<br>Date: Wed, 10 Jun 2009 12:56:30 -0400<br>CC: cmake@cmake.org<br>Subject: Re: [CMake] Installation package<br><br>
<style>
.ExternalClass .EC_hmmessage P
{padding:0px;}
.ExternalClass body.EC_hmmessage
{font-size:10pt;font-family:Verdana;}
</style>
Hi Eric,<br><br><br> I use CMake 2.6, patch 4.<br>Fedora 10<br>rpmbuild version 4.6.1. What is the fix for the bug you mentioned?<br><br><br>> Could you show us some if not all your<br>> install(... ) command?<br><br>This is in the CMakeLists.txt in the directory where my binaries are located:<br><br>#________________________Install execs_____________________________<br>INSTALL(TARGETS App3D<br> RUNTIME <br> DESTINATION MyApp/bin<br> COMPONENT EXEC3D)<br><br>install(TARGETS App2D <br> RUNTIME<br> DESTINATION MyApp/bin<br> COMPONENT Exec2D)<br><br>This is in the CMakeLists.txt in the directory where my libraries are located:<br><br>#________________________Install library_____________________________<br>set(LIBRARY_OUTPUT_PATH ./../../../libs/libraryOne/lnx/lib)<br>INSTALL(TARGETS libraryOne<br> LIBRARY DESTINATION MyApp/lib<br> COMPONENT libraryOne)<br><br><br>And for a library located under another directory:<br><br>#________________________Install library_____________________________<br>#I set the output path this way:<br>
set(LIBRARY_OUTPUT_PATH ./../../../libs/libraryTwo/lnx/lib)<br>INSTALL(TARGETS libraryTwo<br>
LIBRARY DESTINATION MyApp/lib<br>
COMPONENT libraryTwo)<br><br>Thanks again!<br>Pascale<br><br><br>> Date: Wed, 10 Jun 2009 18:42:46 +0200<br>> Subject: Re: [CMake] Installation package<br>> From: eric.noulard@gmail.com<br>> To: chose29@hotmail.com<br>> CC: cmake@cmake.org<br>> <br>> 2009/6/10 Pascale B <chose29@hotmail.com>:<br>> > Hi,<br>> ><br>> > The RPATH solution works locally only, on my computer only when used with<br>> > the make install command.<br>> <br>> That's the expected behavior.<br>> <br>> > But now, I seem to have problem to use Cmake to<br>> > create RPMs and I think it has to do with the root directory of rpmbuild. As<br>> > I wrote previously, I use CPack to create a tar.Z file successfully. In my<br>> > CMakeLists.txt, I added as suggested:<br>> ><br>> > ...<br>> > SET(CPACK_GENERATOR "TZ;RPM")<br>> > SET(CPACK_RPM_PACKAGE_DEBUG 1)<br>> ><br>> > INCLUDE(CPack)<br>> > ...<br>> ><br>> > Following this, _CPack_Packages is created in the location "Where to build<br>> > the binaries" specified in cmake Gui (what is the command to fetch this<br>> > variable from CMakeLists.txt?). Under _CPack_Packages is created a directory<br>> > structure Linux>RPM and Linux>TZ.<br>> ><br>> > When typing : make package<br>> ><br>> > I get the following error:<br>> ><br>> > CPack: Finalize package<br>> > CPack Error: Problem copying the package:<br>> > /media/disk/MyApp/MyApp_sources/lnx/_CPack_Packages/Linux/RPM/MyApp_sources-0.1.1-Linux.rpm<br>> > to /media/disk/MyApp/MyApp_sources/lnx/MyApp_sources-0.1.1-Linux.rpm<br>> > CPack Error: Error when generating package: drop_sources<br>> > make: *** [package] Error 1<br>> ><br>> > and the following in the rpmbuild.err file:<br>> ><br>> > error: File not found by glob:<br>> > /home/pascale/rpmbuild/BUILDROOT/MyApp_sources-0.1.1-1.x86_64/*<br>> > File not found by glob:<br>> > /home/pascale/rpmbuild/BUILDROOT/MyApp_sources-0.1.1-1.x86_64/*<br>> ><br>> > How can the desired folder be created automatically? Or should I specify<br>> > another folder? I notice that the folder created by CPack has the name<br>> > ..Linux wheras packaging seems to be looking for ...x86_64?<br>> <br>> Which version of CMake/CPack are you using?<br>> <br>> Could you show us some if not all your<br>> install(... ) command?<br>> and/or tell us if you use "absolute path" as destination?<br>> <br>> What is your linux distribution ?<br>> <br>> Can you tell me which version of rpmbuild is installed on your system<br>> using: rpmbuild --version<br>> <br>> There is know issue with rpmbuild version 4.6.x and up.<br>> see:<br>> http://www.cmake.org/Wiki/CMake:CPackPackageGenerators#CPack_RPM_currently_pending_bugs.2Ffeatures<br>> <br>> The rpm 4.6.x issue in in CVS HEAD but does not [yet] reached 2.6.x.<br>> <br>> -- <br>> Erk<br><br><hr>Internet Explorer 8 makes surfing easier. <a href="http://go.microsoft.com/?linkid=9655264">Get it now! </a><br /><hr />Attention all humans. We are your photos. <a href='http://go.microsoft.com/?linkid=9666044' target='_new'>Free us.</a></body>
</html>