Prerequisites for building - neutronimaging/imagingsuite GitHub Wiki
To build the libraries and applications of the ImagingSuite, you will need:
- A C++ compiler that can compile C++17 code
- Qt 6.2.x and newer with at minimum the Qtchars module, we recommend the LTE version 6.5.3, . Download Qt there is a free community version of the Qt Online installer. The Qt installation includes the IDE Qt Creator.
- For the build to know where Qt is installed, it is required to set an environment variable "QTPATH" to the platform folder of the Qt installation, for example, using the bash command
export QTPATH="C:\Qt\6.5.3\msvc2918_64"
- For the build to know where Qt is installed, it is required to set an environment variable "QTPATH" to the platform folder of the Qt installation, for example, using the bash command
- A python of version 3.6 or higher, we recommend setting this using a Conda environment.
- The C++ package manager Conan, version 2.0 or higher, which can be installed by pip
Each operating system has its own compiler and may require extra tools and we will describe how to install them below.
The main component needed to build the imagingsuite is the clang compiler distributed via Xcode (command line tools). It can be downloaded on Xcode or on AppStore.
For MacOS with arm CPU's, such as M1 or M2, the CPU instruction translation toolset sse2neon is required. It is installed via homebrew:
brew install sse2neon
The Linux installation requires you to install the development tools with the distribution package manager. Qt may be downloaded from their website to get a newer version than the one coming with the distro.
- Install g++ compiler (
sudo apt-get install build-essential
) - Install
sudo apt-get install -y xorg-dev libglu1-mesa-dev freeglut3-dev libglew2.2 libglew-dev libglu1-mesa libglu1-mesa-dev libgl1-mesa-glx libgl1-mesa-dev libglfw3-dev libglfw3 libxkbcommon-dev patchelf
- Run:
sudo apt-get install -y qt6-base-dev, qmake6, libqt6charts6-dev
Install Visual Studio 2022 for the c++ compiler version 17