[CMake] Error with cpack -G ZIP

Chris Wolf cw10025 at gmail.com
Fri Aug 6 20:54:31 EDT 2010



On 8/6/10 8:43 PM, Eric Noulard wrote:
> 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.
> 

Yes.  Shared library version symlinks.  I forgot about that.  TGZ works fine.
I would probably only use ZIP for win32 distribution anyway, so this is 
not an issue for me.

Thanks,

   -Chris


More information about the CMake mailing list