[CMake] Error with cpack -G ZIP

Eric Noulard eric.noulard at gmail.com
Fri Aug 6 20:43:17 EDT 2010


2010/8/6 Chris Wolf <cw10025 at gmail.com>:
> I am trying the ZIP package type and I get the same error on MacOS and Linux:
>
> CPack Error: archive_write_header:Filetype not supportedNo such file or directory -25
> CPack Error: archive_write_data(): tried to write 16384
> write 0
>
>
> I searched around in case this was a known issue.  The Wiki says:
> "Requires zip, WinZip or 7Zip for creating the package."  but I have
> zip on both Mac and Linux.
>
> Any ideas?  Thanks,

The Wiki may not be up to date, CMake switches to libarchive which cannot handle
symlink in ZIP:
http://www.cmake.org/Bug/view.php?id=10162

Do you any symlinks (for library version) in your project.

Could you try TGZ generator in order to see if it's ok?

cpack -G TGZ.


-- 
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org


More information about the CMake mailing list