Skip to content

Compilation Guide

Matthew Archer edited this page May 1, 2021 · 1 revision

Originally written by Huy Anh Dinh (@had647) 06/11/2020 on GitHub

General Steps:
  • Ensure you have installed virtualenv with Python 3.7.x
  • Create a virtual environment like above and then activate the virtual environment
  • Make sure you install pyinstaller pip install pyinstaller
  • Now from here, we will choose the OS and run as follows:

For Windows Users:

pyinstaller OnkoDICOM-Windows.spec

For Linux Users:

pyinstaller OnkoDICOM-Linux.spec

For Mac Users:

pyinstaller OnkoDICOM-Darwin.spec

  • Open up the dist folder in the same location as the repository, the distributable application will be in there
NOTE

If you are experiencing any issue with opening the application up via the dist folder on Mac, what you have to do is very simple once we have our bundled App we must enter to its content to the tcl folder.

cd OnkoDICOM.app/Contents/Resources/tcl

Open up init.tcl and find where it says:

package require -exact Tcl 8.6.8

We must replace it with:

package require -exact Tcl 8.5.9

Once this is done, our application will open normally with a double click.