1.2.0 Download Issue ThirdPartyDownloads/0d4bfbd5.zip

Hi guys,

I'm facing an error while cmake downloads some deps during build of the
current 1.2.0:

-- PRODUCT_VERSION_BRANCH:
-- PRODUCT_VERSION_SHORT_STRING: 1.2.0
-- JS_FRONTEND_VERSION: 0d4bfbd5
PRODUCT_VERSION_MAJOR: 1
PRODUCT_VERSION_MINOR: 2
PRODUCT_VERSION_PATCH: 0
PRODUCT_VERSION_MAPRODUCT_VERSION_COMMIT_NUMBERJOR: 0
PRODUCT_VERSION_COMMIT_SHA1_STRING: 0d4bfbd5
PRODUCT_VERSION_SHORT_STRING: 1.2.0
Downloading http://orthanc.osimis.io/public/osimisWebViewer/0d4bfbd5.zip
-- [download 0% complete]
...
-- [download 100% complete]
CMake Error at orthanc/Resources/CMake/DownloadPackage.cmake:79 (file):
  file DOWNLOAD HASH mismatch

    for file:
[/home/vagrant/orthanc-osimis-webviewer/rpmbuild/BUILD/osimis-webviewer-plugin/backend/ThirdPartyDownloads/0d4bfbd5.zip]
      expected hash: [no-check]
        actual hash: [226da3e94d91fe40c6e6d0716b9c399d]

How can I fix this issue?

Thanks in advance,
tf

What’s the ORTHANC_FRAMEWORK_VERSION you’re using ? Eventually paste your whole cmake command here.
the “no-check” has been added “recently”.

I'm using 1.3.2. The build is done for CentOS RPMs using the
devtoolset-7, which includes newer versions of gcc than the default ones.

version_full is the result of "git describe --tags --long --dirty=-dirty".

cmake . \
    -DVIEWER_VERSION_FULL=$version_full \
    -DCMAKE_INSTALL_PREFIX=%{_prefix} \
    -DCMAKE_BUILD_TYPE=Release \
    -DORTHANC_FRAMEWORK_VERSION=1.3.2 \
    -DUSE_SYSTEM_SQLITE=OFF \
    -DUSE_SYSTEM_BOOST=OFF

You should try using -DORTHANC_FRAMEWORK_VERSION=1.5.0

Done that. The error now moved a bit:
-- PRODUCT_VERSION_BRANCH:
-- PRODUCT_VERSION_SHORT_STRING: 1.2.0
-- JS_FRONTEND_VERSION: 0d4bfbd5
Downloading http://orthanc.osimis.io/public/osimisWebViewer/0d4bfbd5.zip
CMake Warning at orthanc/Resources/CMake/DownloadPackage.cmake:80 (message):
  Not checking the MD5 of:
  http://orthanc.osimis.io/public/osimisWebViewer/0d4bfbd5.zip
Call Stack (most recent call first):
  WebViewerPlugin/WebViewerPlugin.cmake:76 (DownloadPackage)
  CMakeLists.txt:54 (include)
...
-- [download 100% complete]
Uncompressing 0d4bfbd5.zip
CMake Error at orthanc/Resources/CMake/DownloadPackage.cmake:182 (message):
  The package was not uncompressed at the proper location. Check the CMake
  instructions.
Call Stack (most recent call first):
  WebViewerPlugin/WebViewerPlugin.cmake:76 (DownloadPackage)
  CMakeLists.txt:54 (include)

My cmake is executed inside the osimis-webviewer-plugin/backend folder.
Maybe an issue with relative paths?

Hi Thomas,

I’ve just added a sample Dockerfile that builds the viewer from scratch:
https://bitbucket.org/osimis/osimis-webviewer-plugin/commits/3b68a0d4f11f1e2be5326cdc2d29e3b52bb17c07

You should be able to reproduce that on your machine.

Best regards

Thanks Alain,

So this mostly about replacing the defective automatic cmake frontend
download. I've done that and the build is now working again.

--tf