Skip to content

Building GUIs on macOS

Frederic Tessier edited this page Jun 30, 2017 · 17 revisions

To compile the EGSnrc Qt graphical user interfaces on macOS, open the Terminal application and follow these steps:

  1. Install Homebrew with the following command: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  2. Use Homebrew to install qt4: brew install cartr/qt4/qt
  3. Find out the path to the Qt installation directory: brew info qt | grep Cellar
  4. Define a corresponding QTDIR environment variable: export QTDIR=/path/to/qt/
  5. Go to $HEN_HOUSE/gui/egs_gui and issue the make command
  6. Go to $HEN_HOUSE/gui/egs_inprz and issue the make command
  7. Go to $HEN_HOUSE/egs++/view and issue the make command

You should now be able to launch each GUI from the command line:

open -a egs_gui
open -a egs_inprz
open -a egs_view
Clone this wiki locally