CMake Error at D:/VTK/src/CMake/ExternalData.cmake:1005 (message)
Hi,
I build VTK with Visual studio 2015 on Windows, but I met the following annoying CMake error more than 5 times when build VTK. It can't repro when I build the project again, however, it break the building and I need build it again, it cost me much time, could someone help take a look?
Environment: Windows server 2012 R2 + Visual Studio 2015 Update3 + CMake version is 3.5.2
Failures: CMake Error at D:/VTK/src/CMake/ExternalData.cmake:1005 (message): Object MD5=54622bc7c096d584f32fdf60b4d6495f not found at:
http://midas3.kitware.com/midas/api/rest?method=midas.bitstream.download&checksum=54622bc7c096d584f32fdf60b4d6495f&algorithm=MD5 (wrong hash MD5=a0a85923331d4faa2ba6ff130a19d946)
http://www.vtk.org/files/ExternalData/MD5/54622bc7c096d584f32fdf60b4d6495f ("Couldn't connect to server")
Call Stack (most recent call first):
D:/VTK/src/CMake/ExternalData.cmake:1027 (_ExternalData_download_object)
How I build it:
- Open VS2015 x86 Native Tools Command Prompt
- git clone https://gitlab.kitware.com/vtk/vtk.git D:\VTK\src and cd D:\VTK
- mkdir build_x86 && pushd build_x86
- cmake -G "Visual Studio 14" -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTING=ON -DBUILD_EXAMPLES=OFF -DVTK_IGNORE_CMAKE_CXX11_CHECKS=TRUE ..\src\
- popd
- msbuild /m /p:Configuration=Release;Platform=Win32 All_BUILD.vcxproj /t:Rebuild
Thanks