-
Notifications
You must be signed in to change notification settings - Fork 147
Building GUIs on Linux
Frederic Tessier edited this page Dec 18, 2018
·
30 revisions
If you wish to make changes to or recompile the Qt GUIs such as egs_gui, egs_view, egs_inprz or egs_configure, it will be necessary to install Qt developer tools. The following are instructions to compile dynamically linked EGSnrc Qt graphical user interfaces on linux.
Note that qmake
uses its own compiler configuration, in $QTDIR/mkspecs
In the 2018 release of the master
branch, the GUIs are compatible with Qt4.
- Install the Qt4 development tools (
libqt4-dev
orlibqt4-devel
package in many distributions) - Define the
QTDIR
environment variable to point to the location of the Qt4 development directory on your system. For example, on CentOS issue the commandexport QTDIR=/usr/lib64/qt4
. On Ubuntu runexport QTDIR=/usr/share/qt4
. - Go to
$HEN_HOUSE/egs++/view
and issue themake clean; make
command. If compilers have changed, first issuemake realclean
.
To build all GUIs
- Go to
$HEN_HOUSE/gui
and issue themake clean; make
command to build all of egs_gui, egs_inprz and egs_configure. If compilers have changed, first issuemake realclean
in each of the 3 subdirectories.
To build individual GUIs
- Go to
$HEN_HOUSE/gui/egs_gui
and issue themake realclean; make
command - Go to
$HEN_HOUSE/gui/egs_inprz
and issue themake realclean; make
command - Go to
$HEN_HOUSE/gui/egs_configure
and issue themake realclean; make
command
In the current 2018 develop
branch and future releases, the Qt GUIs are compatible with Qt5 (and Qt4).
- Ensure you have installed and configured the EGSnrc
develop
branch. - Install the Qt5 development tools, e.g.,
qt5-default
andqt5-qmake
for Ubuntu or WSL. - Set the
QTDIR
environment variable to the path of the Qt5 directory, e.g.,export QTDIR=/usr/lib/qt5
on Ubuntu. Theqmake
binary should be in$QTDIR/bin/
directory. - It may be necessary to define the
QT_SELECT
environment variable, e.g.,export QT_SELECT=qt5
- Go to
$HEN_HOUSE/egs++/view
and issue themake clean; make
command. If compilers have changed, first issuemake realclean
.
To build all GUIs
- Go to
$HEN_HOUSE/gui
and issue themake clean; make
command to build all of egs_gui, egs_inprz and egs_configure. If compilers have changed, first issuemake realclean
in each of the 3 subdirectories.
To build individual GUIs
- Go to
$HEN_HOUSE/gui/egs_gui
and issue themake realclean; make
command - Go to
$HEN_HOUSE/gui/egs_inprz
and issue themake realclean; make
command - Go to
$HEN_HOUSE/gui/egs_configure
and issue themake realclean; make
command
- Overview
- Install on VirtualBox
- Install on Linux
- Install on macOS
- Install on Windows
- Quick installation
- Upgrading