Hi David,<br><br>First, thanks for the help.<br><br>I didn&#39;t use any argument, I posted all my cpack script. I really don&#39;t know why, there is somewhere I could change the /lib path inside the cpack script ?<br><br>
I posted all my cpack code, I&#39;m starting to write it and when I finally work&#39;s, Im gonna change it for relative path&#39;s.<br><br>Here is all my log:<br>[root@root source]# cpack -E<br>CPack: Create package using TGZ<br>
CPack: Install projects<br>CPack: - Install directory: /root/medsquare/<br>CPack Error: Cannot create symlink: /lib/libQtDeclarative.so--&gt; libQtDeclarative.so.4.7.4<br>CPack Error: Error when generating package: <br><br>
<br>thanks<br><br>Kassim<br><br><div class="gmail_quote">2012/3/22 David Cole <span dir="ltr">&lt;<a href="mailto:david.cole@kitware.com">david.cole@kitware.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The error message<br>
<div class="im">CPack Error: Cannot create symlink: /lib/libvtkgdcm.so.2.0--&gt;<br>
libvtkgdcm.so.2.0.18<br>
<br>
</div>Looks to me like a probable permissions issue because it&#39;s trying to<br>
create a file in &quot;/lib&quot; -- do you use an install rule DESTINATION<br>
argument of &quot;/lib&quot;? (Why install into an absolute path, shouldn&#39;t it<br>
be underneath CMAKE_INSTALL_PREFIX? Just use &quot;lib&quot; instead of<br>
&quot;/lib&quot;...)<br>
<br>
There are no &quot;cpack -E&quot; commands, only &quot;cmake -E&quot; commands.<br>
<br>
However, these symlinks should be created for you automatically (and<br>
in fact, the install step is trying to create them or you wouldn&#39;t get<br>
that error message), and you should not have to use cmake -E to create<br>
lib version name symlinks.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On Thu, Mar 22, 2012 at 12:37 PM, kassim orra &lt;<a href="mailto:kassimorra@gmail.com">kassimorra@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Hi All !<br>
&gt;<br>
&gt; I&#39;m using cmake for a few months ago and I just started to try to use cpack<br>
&gt; to distribute my application. I use some lib&#39;s, including some Kitware<br>
&gt; libraries. I had build a CPackConfig.cmaje file and when I execute &quot;cpack&quot;,<br>
&gt; I receive the following message:<br>
&gt;<br>
&gt; CPack: Create package using TGZ<br>
&gt; CPack: Install projects<br>
&gt; CPack: - Install directory: /root/medsquare/<br>
&gt; CPack Error: Cannot create symlink: /lib/libvtkgdcm.so.2.0--&gt;<br>
&gt; libvtkgdcm.so.2.0.18<br>
&gt;<br>
&gt; My main question is: I searched at the history of the CMake archive and<br>
&gt; found the answer that I should type &quot;cpack -E create_symlink&quot; that should<br>
&gt; solve it. But it didn&#39;t work and my doubt include the fact that this option<br>
&gt; doesn&#39;t appear at the Man CPACK file or the website documentation.<br>
&gt;<br>
&gt; Someone has already passed trough it ?<br>
&gt;<br>
&gt; Here is my cpack lines:<br>
&gt;<br>
&gt; set(CPACK_GENERATOR, &quot;TZ&quot;)<br>
&gt; set(CPACK_INSTALL_DIRECTORY &quot;MedSquare&quot;)<br>
&gt; set(CPACK_SOURCE_INSTALLED_DIRECTORIES &quot;/root/medsquare/;source&quot;)<br>
&gt; set(CPACK_DEFAULT_LOCATION &quot;./&quot;)<br>
&gt; set(CPACK_INCLUDE_TOPLEVEL_DIRECTORY &quot;1&quot;)<br>
&gt; set(CPACK_INSTALL_CMAKE_PROJECTS &quot;/root/medsquare/source&quot;)<br>
&gt; set(CPACK_INTALL_PREFIX &quot;/root/medsquare/installer&quot;)<br>
&gt; set(CPACK_PACKAGE_FILE_NAME &quot;medsquare&quot;)<br>
&gt; set(CPACK_PACKAGE_INSTALL_DIRECTORY &quot;/root/medsquare&quot;)<br>
&gt; set(CPACK_PACKAGING_INSTALL_PREFIX &quot;/root/medsquare&quot;)<br>
&gt; include(CPack)<br>
&gt;<br>
&gt; Thanks,<br>
&gt;<br>
&gt; Kassim<br>
&gt;<br>
&gt;<br>
</div></div><span class="HOEnZb"><font color="#888888">&gt; --<br>
&gt;<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the CMake FAQ at:<br>
&gt; <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</font></span></blockquote></div><br>