medusa
medusa copied to clipboard
Error when running cmake: extracting cvpixelbuffer archive failed
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.
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.
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.
Hello wisk, Thanks for the response! I'm using cmake version 3.5.1: the version available in Ubuntu 16.04.
I noticed just now that #68 is reporting the exact same issue but on a different version of Ubuntu.
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?
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.