BIC-MNI / minc-toolkit

Metaproject uniting all the available minc tools
GNU General Public License v3.0
37 stars 15 forks source link

error building minc-toolkit #44

Open isAarya opened 7 years ago

isAarya commented 7 years ago

Hi,

I am building minc-toolkit in docker.

I get error from cmake while building minc-toolkit.

The error arises when cmake is building zlib package and is as follows,

-- downloading...
     src='http://zlib.net/zlib-1.2.8.tar.gz'
     dst='/opt/minc-toolkit/build/ZLIB-prefix/src/zlib-1.2.8.tar.gz'
     timeout='none'
CMake Error at ZLIB-prefix/src/ZLIB-stamp/download-ZLIB.cmake:9 (file):
  file DOWNLOAD HASH mismatch

    for file: [/opt/minc-toolkit/build/ZLIB-prefix/src/zlib-1.2.8.tar.gz]
      expected hash: [44d667c142d7cda120332623eab69f40]
        actual hash: [d41d8cd98f00b204e9800998ecf8427e]

make[2]: *** [ZLIB-prefix/src/ZLIB-stamp/ZLIB-download] Error 1
make[1]: *** [CMakeFiles/ZLIB.dir/all] Error 2
make: *** [all] Error 2
The command '/bin/sh -c make' returned a non-zero code: 2

I have checked the weblink

http://zlib.net/zlib-1.2.8.tar.gz

Apparently, the package zlib-1.2.8.tar.gz; that minc-toolkit->cmake-modules->BuildZLIB.cmake is calling is not found at this weblink.

Could you please have a look at this.

Kind regards.

IA

vfonov commented 7 years ago

Hello,

yes, I know - try using develop branch - this problem is fixed there.

isAarya commented 7 years ago

Hi,

I am trying to clone the 'develop' branch with help of git.

It gives me following error,

Cloning into 'xdisp'...
Submodule path 'xdisp': checked out 'f8cf8ef781229a87c9be53040937fd00d54b9366'
Failed to recurse into submodule path 'Register'
The command '/bin/sh -c git clone --recursive https://github.com/BIC-MNI/minc-toolkit.git --branch develop minc-toolkit' returned a non-zero code: 1

Most likely this is caused due to the following,

Cloning into 'Register'...
Submodule path 'Register': checked out 'd3b70c6a0e596c3494c4c5249ecc9a934e705f9c'
Submodule 'Graphics' (https://github.com/BIC-MNI/bicgl.git) registered for path 'Graphics'
Submodule 'm4' (https://github.com/BIC-MNI/mni-acmacros.git) registered for path 'm4'
Cloning into 'Graphics'...
fatal: reference is not a tree: aac9526ebf4fafabdc3d396a554da535fc25ac1a
Cloning into 'm4'...
Submodule path 'Register/m4': checked out '87caf73968c8b57db276480acf85d5da8e7e48be'
Unable to checkout 'aac9526ebf4fafabdc3d396a554da535fc25ac1a' in submodule path 'Register/Graphics'

Also the develop branch: cmake-modules->BuildZLIB.cmake is calling http://zlib.net/zlib-1.2.10.tar.gz which doesnt exist.

The new packages is zlib-1.2.11.tar.gz

Currently I am manually changing this in the minc-toolkit master branch.

Kind regards.

IA

vfonov commented 7 years ago

OK, I meant minc-toolkit-v2 develop branch

vfonov commented 7 years ago

ok, now develop branch of minc-toolkit should also compile