Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while building OHIF Viewer on Windows 2008 R2 #181

Closed
ranasrule opened this issue Apr 14, 2018 · 8 comments
Closed

Error while building OHIF Viewer on Windows 2008 R2 #181

ranasrule opened this issue Apr 14, 2018 · 8 comments

Comments

@ranasrule
Copy link

I get the following errors while building OHIF Viewer on Windows 2008 R2


PS C:\Viewers-master\OHIFViewer> meteor build --directory myOutputFolder
=> Errors while initializing project:

While selecting package versions:
error: unknown package in top-level dependencies: ohif:polyfill
unknown package in top-level dependencies: ohif:core
unknown package in top-level dependencies: ohif:commands
unknown package in top-level dependencies: ohif:hotkeys
unknown package in top-level dependencies: ohif:header
unknown package in top-level dependencies: ohif:cornerstone
unknown package in top-level dependencies: ohif:cornerstone-settings
unknown package in top-level dependencies: ohif:viewerbase
unknown package in top-level dependencies: ohif:study-list
unknown package in top-level dependencies: ohif:dicom-services
unknown package in top-level dependencies: ohif:hanging-protocols
unknown package in top-level dependencies: ohif:metadata
@ranasrule
Copy link
Author

Anyone ?

@maltempi
Copy link
Contributor

maltempi commented Apr 15, 2018

Hey @ranasrule ,

I think that you need to tell to meteor your packages location. For example, If you are running this command inside Viewers/OHIFViewer/ folder, the packages are in ../Packages. Just try:

#windows:
SET METEOR_PACKAGE_DIRS="../Packages"
meteor build --directory myOutputFolder

You can get further information here: https://docs.ohif.org/deployment/building-for-production.html#building

Hope this helps!

@ranasrule
Copy link
Author

ranasrule commented Apr 15, 2018 via email

@ranasrule
Copy link
Author

Still getting the same errors....

PS C:\Users\Administrator> Start-Process powershell -Verb runAs
PS C:\Users\Administrator> cd C:\Viewers\OHIFViewer
PS C:\Viewers\OHIFViewer> $settings = Get-Content ..\config\orthancDICOMWeb.json -Raw
PS C:\Viewers\OHIFViewer> $settings = Get-Content ..\config\orthancDICOMWeb.json -Raw
PS C:\Viewers\OHIFViewer> $settings = $settings -replace "`n","" -replace "`r","" -replace " ",""
PS C:\Viewers\OHIFViewer> [Environment]::SetEnvironmentVariable("METEOR_SETTINGS", $settings, "Machine")
PS C:\Viewers\OHIFViewer> SET METEOR_PACKAGE_DIRS="../Packages"
PS C:\Viewers\OHIFViewer> meteor build --directory c:\OHIFoutput
=> Errors while initializing project:

While selecting package versions:
error: unknown package in top-level dependencies: ohif:polyfill
unknown package in top-level dependencies: ohif:core
unknown package in top-level dependencies: ohif:commands
unknown package in top-level dependencies: ohif:hotkeys
unknown package in top-level dependencies: ohif:header
unknown package in top-level dependencies: ohif:cornerstone
unknown package in top-level dependencies: ohif:cornerstone-settings
unknown package in top-level dependencies: ohif:viewerbase
unknown package in top-level dependencies: ohif:study-list
unknown package in top-level dependencies: ohif:dicom-services
unknown package in top-level dependencies: ohif:hanging-protocols
unknown package in top-level dependencies: ohif:metadata

@patogalarzar
Copy link

I am experiencing the same error in windows 10

c:\laragon\www\Viewers\OHIFViewer>SET METEOR_PACKAGE_DIRS="..\Packages"

c:\laragon\www\Viewers\OHIFViewer>meteor build --directory myOutputFolder
=> Errors while initializing project:

While selecting package versions:
error: unknown package in top-level dependencies: ohif:polyfill
unknown package in top-level dependencies: ohif:core
unknown package in top-level dependencies: ohif:commands
unknown package in top-level dependencies: ohif:hotkeys
unknown package in top-level dependencies: ohif:header
unknown package in top-level dependencies: ohif:cornerstone
unknown package in top-level dependencies: ohif:cornerstone-settings
unknown package in top-level dependencies: ohif:viewerbase
unknown package in top-level dependencies: ohif:study-list
unknown package in top-level dependencies: ohif:dicom-services
unknown package in top-level dependencies: ohif:dicomweb-client
unknown package in top-level dependencies: ohif:hanging-protocols
unknown package in top-level dependencies: ohif:metadata
unknown package in top-level dependencies: ohif:user
unknown package in top-level dependencies: ohif:user-keycloak
unknown package in top-level dependencies: ohif:measurement-table

@swederik
Copy link
Member

"error: unknown package in top-level dependencies" means that Meteor can't find all the packages in the Packages folder. This means the METEOR_PACKAGE_DIRS variable is not correctly pointing to the directory.

You need to find another way to set the environment variable. Apparently 'set' doesn't work. I know you can use the UI for this as well: https://www.computerhope.com/issues/ch000549.htm

@patogalarzar
Copy link

Thanks for answering, indeed the environment variable has to do through the UI, which had already done before my publication, my problem was in the value of the variable ".. \ Packages" and had to be without the quotes . Everything is working correctly from there.

@dannyrb
Copy link
Member

dannyrb commented Apr 17, 2019

It sounds like the issue has been identified and the problem resolved. If you're still experiencing issues, please feel free to comment here and I can re-open the issue. If you have new questions, I recommend opening a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants