<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Hi Eric,<br><br>&nbsp;&nbsp; I already had this buildroot problem and fixed it, I copied the file locally and can create packages (rpm, deb) on my local computer without any problems.<br><br>&nbsp;&nbsp; The problem I have now is on another computer, accessed through SSH, and I already replaced the CPackRPM.cmake file. Where could the "File must begin with "/": come from? I tried to grep this error string in the cmake folder and didn't find it?<br><br>Thanks for your help,<br>Pascale<br><br>&gt; Date: Thu, 25 Jun 2009 16:09:25 +0200<br>&gt; Subject: Re: [CMake] CPack, error generating rpm file, error "File must begin         with "/": "<br>&gt; From: eric.noulard@gmail.com<br>&gt; To: chose29@hotmail.com<br>&gt; CC: cmake@cmake.org<br>&gt; <br>&gt; 2009/6/25 Pascale B &lt;chose29@hotmail.com&gt;:<br>&gt; &gt; Hi All,<br>&gt; &gt;<br>&gt; &gt; &nbsp;&nbsp; I am using CMake, CPack to generate packages. I successfully generated<br>&gt; &gt; .tar.Z, .rpm and .deb files on my local computer. I am now trying to make<br>&gt; &gt; tests on a computer that I access with SSH and I am getting an error only<br>&gt; &gt; for the rpm file.<br>&gt; &gt;<br>&gt; &gt; The error presents as:<br>&gt; &gt; CPack Error: Problem copying the package:<br>&gt; &gt; .../lnx/_CPack_Packages/Linux/RPM/drop_sources-1.04.0-Linux.rpm to<br>&gt; &gt; .../lnx/MyApp.rpm<br>&gt; &gt;<br>&gt; &gt; and when looking at file rpmbuild.err, the content is:<br>&gt; &gt;<br>&gt; &gt; error: File must begin with "/":<br>&gt; &gt; &nbsp;&nbsp;&nbsp; File must begin with "/":<br>&gt; &gt; &nbsp;I'm not able to locate where this error comes from. Do you have any idea?<br>&gt; <br>&gt; You may be facing the buildroot problem with rpmbuild version greater<br>&gt; than 4.6.0.<br>&gt; See:<br>&gt; http://www.vtk.org/Wiki/CMake:CPackPackageGenerators#CPack_RPM_currently_pending_bugs.2Ffeatures<br>&gt; <br>&gt; Which version of CMake are you using?<br>&gt; Could you check the rpmbuild version?<br>&gt;    If it is greater than 4.6.x please upgrade to CMake CVS or<br>&gt;    replace your CPackRPM.cmake file with the one from CMake CVS HEAD.<br>&gt; <br>&gt; You may search the list archive for similar issues:<br>&gt; <br>&gt; http://www.cmake.org/Wiki/CMake_FAQ#Where_can_I_find_searchable_CMake_Mailing_Archives.3F<br>&gt; -- <br>&gt; Erk<br>&gt; Membre de l'April - « promouvoir et défendre le logiciel libre » -<br>&gt; http://www.april.org<br><br /><hr />Create a cool, new character for your Windows Live™ Messenger.  <a href='http://go.microsoft.com/?linkid=9656621' target='_new'>Check it out</a></body>
</html>