Awesome Andreas! That’s it! I recompiled CMake with OpenSSL enabled and it 
worked. Thank you so much.

Best regards,
Maik
On 28 Mar 2019, 15:28 +0100, Andreas Andersen <[email protected]>, wrote:
> Then it must be the command CMake issues under the hood which doesn't support 
> the protocol.
> From the documentation of "file(DOWNLOAD ...)" (which is called by 
> ExternalData):
> For https:// URLs CMake must be built with OpenSSL support. TLS/SSL 
> certificates are not checked by default. Set TLS_VERIFY to ON to check 
> certificates and/or use EXPECTED_HASH to verify downloaded content. If 
> neither TLSoption is given CMake will check variables CMAKE_TLS_VERIFY and 
> CMAKE_TLS_CAINFO, respectively.
>
> So if you compiled CMake yourself, make sure you enabled OpenSSL
>
> Best regards
> Andreas
> __________________________________
> Andreas Gravgaard Andersen
> Department of Oncology,
> Aarhus University Hospital
> Nørrebrogade 44,
> 8000, Aarhus C
> Mail:     [email protected]
> Cell:      +45 3165 8140
>
>
> > On Thu, 28 Mar 2019 at 15:19, Maik Stille <[email protected]> wrote:
> > > Hej,
> > >
> > > this is really weird. I am able to download the file via a browser. 
> > > However, I still get the same error msg during the build process. I 
> > > regenerated the resolv.conf as Andreas suggested. Unfortunately, that 
> > > didn't help.
> > >
> > > So, if I am able to access the file in the browser and make gives me the 
> > > error that it can't find the file... that means...(?)
> > >
> > > Anyway, thank you very much for the fast replies.
> > >
> > >
> > > Best regards,
> > > Maik
> > >
> > > From: Simon Rit <[email protected]>
> > > Sent: 28 March 2019 14:13
> > > To: Maik Stille
> > > Cc: [email protected]
> > > Subject: Re: [Rtk-users] Cannot download ExternalData during build (RTK 
> > > 2.0)
> > >
> > > Hi,
> > > This is strange, I'm guessing a temp issue with data.kitware.com. Now, 
> > > the link
> > > https://data.kitware.com/api/v1/file/hashsum/SHA512/315f410d858da64079b587826c5e8668c3ec0c41fc59a4c68a0f183d1678a89c6b240e39e1fbccdc0cedda20d53234f0c67761dfa7e04608009b44deee175dff/download
> > > works. Can you try again?
> > > Thanks,
> > > Simon
> > >
> > > > On Thu, Mar 28, 2019 at 1:47 PM Maik Stille <[email protected]> 
> > > > wrote:
> > > > > Hej there,
> > > > >
> > > > > I am getting this strange (MD5 related?!) error during the build 
> > > > > process and unfortunately, I don't have any idea how to approach it. 
> > > > > It seems like I am not able to download the external data. Maybe the 
> > > > > hashtag is not correct?! Did anyone encounter this problem before?
> > > > >
> > > > > Thank you very much for your help in advance.
> > > > >
> > > > > See the error message here:
> > > > >
> > > > > [  0%] Generating 
> > > > > /home/mijc/Documents/Development_Area/RTK/bin/ExternalData/test/Input/Spectral/incident_spectrum.mha
> > > > > -- Fetching 
> > > > > "https://insightsoftwareconsortium.github.io/ITKTestingData/MD5/41ca9b9db6a1b95e8db36ff48f691cdf";
> > > > > -- Fetching 
> > > > > "https://data.kitware.com:443/api/v1/file/hashsum/MD5/41ca9b9db6a1b95e8db36ff48f691cdf/download";
> > > > > -- Fetching 
> > > > > "https://itk.org/files/ExternalData/MD5/41ca9b9db6a1b95e8db36ff48f691cdf";
> > > > > -- Fetching 
> > > > > "https://slicer.kitware.com/midas3/api/rest?method=midas.bitstream.download&checksum=41ca9b9db6a1b95e8db36ff48f691cdf&algorithm=MD5";
> > > > > -- Fetching 
> > > > > "https://insightsoftwareconsortium.github.io/ITKTestingData/SHA512/315f410d858da64079b587826c5e8668c3ec0c41fc59a4c68a0f183d1678a89c6b240e39e1fbccdc0cedda20d53234f0c67761dfa7e04608009b44deee175dff";
> > > > > -- Fetching 
> > > > > "https://data.kitware.com:443/api/v1/file/hashsum/SHA512/315f410d858da64079b587826c5e8668c3ec0c41fc59a4c68a0f183d1678a89c6b240e39e1fbccdc0cedda20d53234f0c67761dfa7e04608009b44deee175dff/download";
> > > > > -- Fetching 
> > > > > "https://itk.org/files/ExternalData/SHA512/315f410d858da64079b587826c5e8668c3ec0c41fc59a4c68a0f183d1678a89c6b240e39e1fbccdc0cedda20d53234f0c67761dfa7e04608009b44deee175dff";
> > > > > -- Fetching 
> > > > > "https://slicer.kitware.com/midas3/api/rest?method=midas.bitstream.download&checksum=315f410d858da64079b587826c5e8668c3ec0c41fc59a4c68a0f183d1678a89c6b240e39e1fbccdc0cedda20d53234f0c67761dfa7e04608009b44deee175dff&algorithm=SHA512";
> > > > > CMake Error at 
> > > > > /usr/local/share/cmake-3.14/Modules/ExternalData.cmake:1121 (message):
> > > > >
> > > > >
> > > > >   Object MD5=41ca9b9db6a1b95e8db36ff48f691cdf not found at:
> > > > >
> > > > >     
> > > > > https://insightsoftwareconsortium.github.io/ITKTestingData/MD5/41ca9b9db6a1b95e8db36ff48f691cdf
> > > > >  ("Unsupported protocol")
> > > > >     
> > > > > https://data.kitware.com:443/api/v1/file/hashsum/MD5/41ca9b9db6a1b95e8db36ff48f691cdf/download
> > > > >  ("Unsupported protocol")
> > > > >     
> > > > > https://itk.org/files/ExternalData/MD5/41ca9b9db6a1b95e8db36ff48f691cdf
> > > > >  ("Unsupported protocol")
> > > > >     
> > > > > https://slicer.kitware.com/midas3/api/rest?method=midas.bitstream.download&checksum=41ca9b9db6a1b95e8db36ff48f691cdf&algorithm=MD5
> > > > >  ("Unsupported protocol")
> > > > >
> > > > >   Object
> > > > >   
> > > > > SHA512=315f410d858da64079b587826c5e8668c3ec0c41fc59a4c68a0f183d1678a89c6b240e39e1fbccdc0cedda20d53234f0c67761dfa7e04608009b44deee175dff
> > > > >   not found at:
> > > > >
> > > > >     
> > > > > https://insightsoftwareconsortium.github.io/ITKTestingData/SHA512/315f410d858da64079b587826c5e8668c3ec0c41fc59a4c68a0f183d1678a89c6b240e39e1fbccdc0cedda20d53234f0c67761dfa7e04608009b44deee175dff
> > > > >  ("Unsupported protocol")
> > > > >     
> > > > > https://data.kitware.com:443/api/v1/file/hashsum/SHA512/315f410d858da64079b587826c5e8668c3ec0c41fc59a4c68a0f183d1678a89c6b240e39e1fbccdc0cedda20d53234f0c67761dfa7e04608009b44deee175dff/download
> > > > >  ("Unsupported protocol")
> > > > >     
> > > > > https://itk.org/files/ExternalData/SHA512/315f410d858da64079b587826c5e8668c3ec0c41fc59a4c68a0f183d1678a89c6b240e39e1fbccdc0cedda20d53234f0c67761dfa7e04608009b44deee175dff
> > > > >  ("Unsupported protocol")
> > > > >     
> > > > > https://slicer.kitware.com/midas3/api/rest?method=midas.bitstream.download&checksum=315f410d858da64079b587826c5e8668c3ec0c41fc59a4c68a0f183d1678a89c6b240e39e1fbccdc0cedda20d53234f0c67761dfa7e04608009b44deee175dff&algorithm=SHA512
> > > > >  ("Unsupported protocol")
> > > > >
> > > > >
> > > > > CMakeFiles/ITKData.dir/build.make:130: recipe for target 
> > > > > 'ExternalData/test/Input/Spectral/incident_spectrum.mha-hash-stamp' 
> > > > > failed
> > > > > make[2]: *** 
> > > > > [ExternalData/test/Input/Spectral/incident_spectrum.mha-hash-stamp] 
> > > > > Error 1
> > > > > CMakeFiles/Makefile2:72: recipe for target 
> > > > > 'CMakeFiles/ITKData.dir/all' failed
> > > > > make[1]: *** [CMakeFiles/ITKData.dir/all] Error 2
> > > > > Makefile:140: recipe for target 'all' failed
> > > > > make: *** [all] Error 2
> > > > > _______________________________________________
> > > > > Rtk-users mailing list
> > > > > [email protected]
> > > > > https://public.kitware.com/mailman/listinfo/rtk-users
> > > _______________________________________________
> > > Rtk-users mailing list
> > > [email protected]
> > > https://public.kitware.com/mailman/listinfo/rtk-users
_______________________________________________
Rtk-users mailing list
[email protected]
https://public.kitware.com/mailman/listinfo/rtk-users

Reply via email to