Compiling webviewer after compiling core Orthanc

135 views
Skip to first unread message

Ahmed Mussayab

unread,
Feb 25, 2018, 3:38:54 AM2/25/18
to Orthanc Users
Hello,

I have managed to compile Core Orthanc on windows, but when I ran it I realized that the web viewer is not included.

Can anyone help me compile the web viewer plugin?

I don't understand the instructions on the link below.



I used Cmake on the Core Source code, and got it working in another build folder. It's running with no issues on visual studio 2017.

After I downloaded the plugin source code, I need to add it to the core Orthanc, I am not sure how to proceed from here.


Regards,

Sébastien Jodogne

unread,
Feb 25, 2018, 8:22:43 AM2/25/18
to Orthanc Users
Hello,

You can download pre-compiled Windows binaries at the following locations:
https://www.orthanc-server.com/download-windows.php (check out the installer by Osimis)

If you want to compile the plugin by yourself, check out the following instructions:

If you encounter problems when compiling, please post the CMake command you use, as well as your build logs.

HTH,
Sébastien-

Ahmed Mussayab

unread,
Feb 26, 2018, 6:43:35 AM2/26/18
to Orthanc Users
I need to compile it because I need to integrate the active directory with the web application. Please keep in mind I have no experience with C++ projects, and this is all new to me.

I am using the Cmake GUI.

I built the core Orthanc into a folder called "OrthancBuild" inside that folder I created another folder called "Build" for the webviewer. (I'm not even sure if I'm doing this correctly)

This is the current error I am getting when configuring the build.

 MSVC compiler version = 1912

Using local copy of http://www.orthanc-server.com/downloads/third-party/WebViewer/cornerstone-0.11.0.zip

Uncompressing cornerstone-0.11.0.zip

CMake Error at Orthanc/Resources/CMake/DownloadPackage.cmake:169 (message):
The package was not uncompressed at the proper location. Check the CMake
instructions.
Call Stack (most recent call first):
Resources/CMake/JavaScriptLibraries.cmake:22 (DownloadPackage)
CMakeLists.txt:59 (include)

Configuring incomplete, errors occurred!

See also "D:/Users/512773/Documents/OrthancBuild/Build/CMakeFiles/CMakeOutput.log".

See also "D:/Users/512773/Documents/OrthancBuild/Build/CMakeFiles/CMakeError.log".

CMakeError.log
CMakeOutput.log

Sébastien Jodogne

unread,
Feb 27, 2018, 2:36:47 PM2/27/18
to Orthanc Users
Hello,

The CMake log seems to indicate that there were a problem downloading the "cornerstone-0.11.0.zip" file.

Remove the file "D:/Users/512773/Documents/OrthancBuild/ThirdPartyDownloads/cornerstone-0.11.0.zip", then run CMake again.

HTH,
Sébastien-

alexande...@gmail.com

unread,
Dec 21, 2018, 7:45:41 AM12/21/18
to Orthanc Users
Issue reason is that path passed from Resources\CMake\JavaScriptLibraries.cmake to function "DownloadPackage" is directory name, it must be a full directory path to pass check that results issue.

Here is original version:
DownloadPackage(
  "dbf236ede85e7b7871c9a42edad16d81"
  "${BASE_URL}/cornerstone-0.11.0.zip"
  "cornerstone-0.11.0")

Here is fixed version:
DownloadPackage(
  "dbf236ede85e7b7871c9a42edad16d81"
  "${BASE_URL}/cornerstone-0.11.0.zip"
  "${CMAKE_CURRENT_BINARY_DIR}/cornerstone-0.11.0")

The same must be applied to remaining entries in JavaScriptLibraries.cmake 

I hope it helps.

вторник, 27 февраля 2018 г., 21:36:47 UTC+2 пользователь Sébastien Jodogne написал:

Sébastien Jodogne

unread,
Dec 21, 2018, 8:01:44 AM12/21/18
to Orthanc Users
Thanks for the suggestion! I have accordingly committed the following changeset:
https://bitbucket.org/sjodogne/orthanc-webviewer/commits/9f443b9de579643e1f9024c6be5fedbe8768c497

Sébastien-
Reply all
Reply to author
Forward
0 new messages