root@pacs:/home/paracels/osimis# cmake -DSTATIC_BUILD=ON -DCMAKE_BUILD_TYPE=Release
0
0
0
0
xxxxxxxx-dirty
0.0.0
– PRODUCT_VERSION_BRANCH:
– PRODUCT_VERSION_SHORT_STRING: 0.0.0
– JS_FRONTEND_VERSION: xxxxxxxx-dirty
Using local copy of http://orthanc.osimis.io/public/osimisWebViewer/xxxxxxxx-dirty.zip
Uncompressing xxxxxxxx-dirty.zip
[/home/paracels/osimis/ThirdPartyDownloads/xxxxxxxx-dirty.zip]
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of /home/paracels/osimis/ThirdPartyDownloads/xxxxxxxx-dirty.zip or
/home/paracels/osimis/ThirdPartyDownloads/xxxxxxxx-dirty.zip.zip, and cannot find /home/paracels/osimis/ThirdPartyDownloads/xxxxxxxx-dirty.zip.ZIP, period.
CMake Error at Orthanc/Resources/CMake/DownloadPackage.cmake:184 (message):
Error while running the uncompression tool
Call Stack (most recent call first):
WebViewerPlugin/WebViewerPlugin.cmake:76 (DownloadPackage)
CMakeLists.txt:63 (include)
– Configuring incomplete, errors occurred!
See also “/home/paracels/osimis/CMakeFiles/CMakeOutput.log”.
The backend and frontend builds are separated from each other. Therefore, the backend downloads the frontend build when the frontend build is not already present locally (at the frontend/build/ folder path). The xxxxxxxx-dirty represent the webviewer version number, based on the latest git tag. Your environment is unable to retrieve the latest frontend build and can’t download one generated by our continuous environment.
docker build --tag=osimis/orthanc-webviewer-plugin/js-builder --file=/home/paracels/osimis/frontend/DockerfileFrontEndBuilder /home/paracels/osimis/frontend/
/home/paracels/osimis/frontend/scripts/buildDocker.sh: line 36: docker: command not found
I am trying to do this on a 32-bit Ubuntu machine. But keep running into errors that I am not able to troubleshoot. Here are the steps I have followed (Manual Build instructions from the Osimis bitbucket page)
$ cd backend/
$ mkdir build
$ cd build/
$ cmake .. -DCMAKE_BUILD_TYPE=Debug -DALLOW_DOWNLOADS=ON -DSTANDALONE_BUILD=ON
-DSTATIC_BUILD=ON
$ make -j2
But this results in the same xxxxxxxx-dirty.zip not found error. The rest of the files downloaded correctly, so I am not able to figure out why this one failed.
I then tried to build the front end manually (after reading your comment above), but that failed on npm install.
Unfortunately docker doesn't support 32 bit ubuntu. So I am unable to use that option. Any advice would be great. Thanks!
Thanks Thibault for the exhaustive answer. Let me try out the steps. I will post my results here. Really appreciate you taking the time to respond in such detail. Thanks once again.
Just to update everyone, these steps worked brilliantly
1. go to http://orthanc.osimis.io/public/osimisWebViewer/0.7.0.zip (0.7.0 is the latest web viewer version, you can change the version to your wishes)
2. unzip 0.7.0.zip in a 0.7.0 folder
3. rename the 0.7.0 folder to `build`
4. move the build folder to /frontend/build
5. try again to build the backend as you did (I suggest using -DCMAKE_BUILD_TYPE=Release instead)
On windows, building the viewer backend is just a matter of running cmake with -G “You version of visual Studio” then open the solution in Visual Studio and compile.
The frontend is built with node.js and should work as is on Windows (that’s theory of course)