Building GUIs on macOS - nrc-cnrc/EGSnrc GitHub Wiki
To compile the EGSnrc Qt graphical user interfaces on macOS, open the Terminal application and follow these steps:
- Install Homebrew with the following command:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" - Use Homebrew to install qt5:
brew install qt5 - Find out the path to the Qt installation directory:
brew info qt5 | grep Cellar - Define a corresponding
QTDIRenvironment variable:export QTDIR=/path/to/qt/ - Go to
$HEN_HOUSE/gui/egs_guiand issue themakecommand - Go to
$HEN_HOUSE/gui/egs_inprzand issue themakecommand - Go to
$HEN_HOUSE/egs++/viewand issue themakecommand
You should now be able to launch each GUI from the Terminal command line:
open -a egs_gui
open -a egs_inprz
open -a egs_view
(Note that qmake uses its own compiler configuration, located inside the $QTDIR/mkspecs directory.)