'Cmake -E tar unzip is corrupt

cmake version 3.20

For this zip file: http://kakadusoftware.com/wp-content/uploads/KDU805_Demo_Apps_for_Win64_200602.msi_.zip

When running cmake -E tar xvz KDU805_Demo_Apps_for_Win64_200602.msi_.zip the msi is only 176 bytes in size : should be around 20 MB. Is this a known issue for cmake tar ?



Solution 1:[1]

The z flag in your command specified that it should be extracted using gzip. Remove that flag.

cmake -E tar xv KDU805_Demo_Apps_for_Win64_200602.msi_.zip

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 JohnFilleau