medusa icon indicating copy to clipboard operation
medusa copied to clipboard

Build fails on Ubuntu 16.10

Open Talanor opened this issue 8 years ago • 1 comments

Hello, I just tried building medusa (master branch) and got this error:

Scanning dependencies of target Qt-qtbase
[ 12%] Creating directories for 'Qt-qtbase'
[ 25%] Performing download step (download, verify and extract) for 'Qt-qtbase'
-- verifying file...
     file='/home/talanor/.hunter/_Base/Download/Qt/5.5.1-cvpixelbuffer-2-p9/da86822/hunter-5.5.1-cvpixelbuffer-2.7z'
-- verifying file... done
-- extracting...
     src='/home/talanor/.hunter/_Base/Download/Qt/5.5.1-cvpixelbuffer-2-p9/da86822/hunter-5.5.1-cvpixelbuffer-2.7z'
     dst='/home/talanor/.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/talanor/.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/talanor/.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/talanor/.hunter/_Base/Download/Qt/5.5.1-cvpixelbuffer-2-p9/da86822/hunter-5.5.1-cvpixelbuffer-2.7z'
  failed


CMakeFiles/Qt-qtbase.dir/build.make:92: recipe for target 'Qt-qtbase-prefix/src/Qt-qtbase-stamp/Qt-qtbase-download' failed
make[2]: *** [Qt-qtbase-prefix/src/Qt-qtbase-stamp/Qt-qtbase-download] Error 1

It would seem that tar xfz can't unzip the hunter-5.5.1-cvpixelbuffer-2.7z archive, 7z x however unzips it just fine. Any idea of why that happens or how I can circumvent this?

Thanks for your help.

Talanor avatar Dec 20 '16 14:12 Talanor

Hi Talanor,

It seems this error occurs because you're using an old version of CMake. Please try to upgrade to the latest and try again. BTW, it might require some packages. Since I don't really use Ubuntu, I don't remember which ones, but pkg-config and libqt5opengl5-dev are mandatory (cf. https://github.com/wisk/medusa/pull/57/files). Finally, people reported me I might have broken the UNIX build. If you've trouble to compile it, please reset to this commit. I'll try to fix ASAP, sorry for the inconvenience.

wisk avatar Dec 25 '16 22:12 wisk