Viewers icon indicating copy to clipboard operation
Viewers copied to clipboard

Failed to run on Windows

Open hasanmansor opened this issue 9 years ago • 11 comments

Hello Guys,

I am trying to run OHIF viewer on my local system but failed. I have installed meteor and orthanc server and also have configured the Orthanc/Configuration/orthanc.json by adding this line:

" "ohif" : [ "OHIFDCM", "localhost", 3000 ] "

I have tried different commands as shown in the attached image, to run the application but failed.. any help would be highly appreciated. Note, that meteor is running properly on my local.

capture

Regards,

hasanmansor avatar Nov 15 '17 13:11 hasanmansor

Hi @hasanmansor,

That syntax is for linux / mac. For Windows, the environment variable (PACKAGE_DIRS) has to be set with the command "set".

Have a look at this .bat file: https://github.com/OHIF/Viewers/blob/master/OHIFViewer/bin/orthancDICOMWeb.bat

radicalrob avatar Nov 15 '17 13:11 radicalrob

Hi @radicalrob ,

Thanks for your response, I still have issues as shown in the image:

1

hasanmansor avatar Nov 15 '17 13:11 hasanmansor

the path needs to use backslash not forward-slash since it's on Windows.

radicalrob avatar Nov 15 '17 13:11 radicalrob

Thanks for your help but still the same issue

1

hasanmansor avatar Nov 15 '17 14:11 hasanmansor

try running the .bat file from that folder

radicalrob avatar Nov 15 '17 16:11 radicalrob

already have run this again and again but the issue still exists

hasanmansor avatar Nov 15 '17 16:11 hasanmansor

I was able to get this to work by setting the packages full path in the "Environment Variables" rather than in the console, eg: METEOR_PACKAGE_DIRS : D:\meteor\OHIFViewers\Viewers\Packages

Zaid-Safadi avatar Nov 16 '17 01:11 Zaid-Safadi

Hi Zaid, Thanks a lot .. It worked by setting the environment variable in the OS by providing the exact path (including the drive) of the Packages as you mentioned.. thanks again

hasanmansor avatar Nov 16 '17 08:11 hasanmansor

Out of curiosity, which version of Windows is this? I've run the viewer on Windows 10 in the past and didn't need the full path.

swederik avatar Nov 16 '17 10:11 swederik

Its unfortunately Windows7 :(

hasanmansor avatar Nov 16 '17 10:11 hasanmansor

@swederik, could there be a debug param (-verbose) when running OHIF viewer to display the packages folder path?

Zaid-Safadi avatar Nov 21 '17 13:11 Zaid-Safadi