Hi David,<br><br>First, thanks for the help.<br><br>I didn't use any argument, I posted all my cpack script. I really don'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'm starting to write it and when I finally work's, Im gonna change it for relative path'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--> 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"><<a href="mailto:david.cole@kitware.com">david.cole@kitware.com</a>></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--><br>
libvtkgdcm.so.2.0.18<br>
<br>
</div>Looks to me like a probable permissions issue because it's trying to<br>
create a file in "/lib" -- do you use an install rule DESTINATION<br>
argument of "/lib"? (Why install into an absolute path, shouldn't it<br>
be underneath CMAKE_INSTALL_PREFIX? Just use "lib" instead of<br>
"/lib"...)<br>
<br>
There are no "cpack -E" commands, only "cmake -E" 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'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 <<a href="mailto:kassimorra@gmail.com">kassimorra@gmail.com</a>> wrote:<br>
><br>
> Hi All !<br>
><br>
> I'm using cmake for a few months ago and I just started to try to use cpack<br>
> to distribute my application. I use some lib's, including some Kitware<br>
> libraries. I had build a CPackConfig.cmaje file and when I execute "cpack",<br>
> I receive the following message:<br>
><br>
> CPack: Create package using TGZ<br>
> CPack: Install projects<br>
> CPack: - Install directory: /root/medsquare/<br>
> CPack Error: Cannot create symlink: /lib/libvtkgdcm.so.2.0--><br>
> libvtkgdcm.so.2.0.18<br>
><br>
> My main question is: I searched at the history of the CMake archive and<br>
> found the answer that I should type "cpack -E create_symlink" that should<br>
> solve it. But it didn't work and my doubt include the fact that this option<br>
> doesn't appear at the Man CPACK file or the website documentation.<br>
><br>
> Someone has already passed trough it ?<br>
><br>
> Here is my cpack lines:<br>
><br>
> set(CPACK_GENERATOR, "TZ")<br>
> set(CPACK_INSTALL_DIRECTORY "MedSquare")<br>
> set(CPACK_SOURCE_INSTALLED_DIRECTORIES "/root/medsquare/;source")<br>
> set(CPACK_DEFAULT_LOCATION "./")<br>
> set(CPACK_INCLUDE_TOPLEVEL_DIRECTORY "1")<br>
> set(CPACK_INSTALL_CMAKE_PROJECTS "/root/medsquare/source")<br>
> set(CPACK_INTALL_PREFIX "/root/medsquare/installer")<br>
> set(CPACK_PACKAGE_FILE_NAME "medsquare")<br>
> set(CPACK_PACKAGE_INSTALL_DIRECTORY "/root/medsquare")<br>
> set(CPACK_PACKAGING_INSTALL_PREFIX "/root/medsquare")<br>
> include(CPack)<br>
><br>
> Thanks,<br>
><br>
> Kassim<br>
><br>
><br>
</div></div><span class="HOEnZb"><font color="#888888">> --<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<br>
> <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:<br>
> <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>
</font></span></blockquote></div><br>