Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when running cmake: extracting cvpixelbuffer archive failed #70

Open
dnivra opened this issue Feb 10, 2017 · 6 comments
Open

Error when running cmake: extracting cvpixelbuffer archive failed #70

dnivra opened this issue Feb 10, 2017 · 6 comments

Comments

@dnivra
Copy link

dnivra commented Feb 10, 2017

I am trying to build the dev branch(commit: adb3b54) on Ubuntu 16.04.1 and I encounter the following error:

-- downloading...
     src='https://github.com/hunter-packages/Qt/releases/download/v5.5.1-cvpixelbuffer-2-p9/hunter-5.5.1-cvpixelbuffer-2.7z'
     dst='/home/introssoc/.hunter/_Base/Download/Qt/5.5.1-cvpixelbuffer-2-p9/da86822/hunter-5.5.1-cvpixelbuffer-2.7z'
     timeout='none'
<removed few download progress output>
-- [download 100% complete]
-- downloading... done
-- verifying file...
     file='/home/introssoc/.hunter/_Base/Download/Qt/5.5.1-cvpixelbuffer-2-p9/da86822/hunter-5.5.1-cvpixelbuffer-2.7z'
-- verifying file... done
-- extracting...
     src='/home/introssoc/.hunter/_Base/Download/Qt/5.5.1-cvpixelbuffer-2-p9/da86822/hunter-5.5.1-cvpixelbuffer-2.7z'
     dst='/home/introssoc/.hunter/_Base/8c538a0/a1b471c/15fdb4a/QtBuild/10'
-- extracting... [tar xfz]
CMake Error: Problem with archive_read_next_header(): Damaged 7-Zip archive
CMake Error: Problem extracting tar: /home/introssoc/.hunter/_Base/Download/Qt/5.5.1-cvpixelbuffer-2-p9/da86822/hunter-5.5.1-cvpixelbuffer-2.7z
-- extracting... [error clean up]
CMake Error at /home/introssoc/.hunter/_Base/8c538a0/a1b471c/15fdb4a/Build/Qt/__qtbase/Build/Qt-qtbase-prefix/src/Qt-qtbase-stamp/extract-Qt-qtbase.cmake:33 (message):
  error: extract of
  '/home/introssoc/.hunter/_Base/Download/Qt/5.5.1-cvpixelbuffer-2-p9/da86822/hunter-5.5.1-cvpixelbuffer-2.7z'
  failed

I think the wrong command is being used[extracting... [tar xfz]] to extract a 7zip archive - the archive is not damaged in any way since I could extract it's contents using the file explorer.

@dnivra
Copy link
Author

dnivra commented Feb 10, 2017

Also, is there a temporary workaround for this issue using which the build can resume? I tried manually extracting the archive to QtBuild/10 but cmake still attempts to download, verify, extract and compile.

@wisk
Copy link
Owner

wisk commented Feb 13, 2017

Hello dnivra,

I think this is a issue with CMake, if you use a up to date version, CMake is able to decompress it correctly. If you could tell me your CMake version, I could give a try.

Thanks for reporting.

@dnivra
Copy link
Author

dnivra commented Feb 13, 2017

Hello wisk,
Thanks for the response! I'm using cmake version 3.5.1: the version available in Ubuntu 16.04.

@dnivra
Copy link
Author

dnivra commented Feb 13, 2017

I noticed just now that #68 is reporting the exact same issue but on a different version of Ubuntu.

@dnivra
Copy link
Author

dnivra commented Mar 10, 2017

Hi wisk,
Any update on this issue? If it is indeed a cmake issue, perhaps a cmake version check should be added when cmake is run?

@dnivra
Copy link
Author

dnivra commented Apr 15, 2017

Seems like it is a cmake version issue: cmake 3.8.0 decompresses the file correctly. I think cmake has a version check feature which would abort if running version isn't new enough. Adding that should fix the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants