Linux instructions

Erik Smistad edited this page Mar 20, 2018 · 25 revisions

This is tested on Ubuntu 16.04. If you have any issues, please report it here.

Install dependencies

  1. First, make sure you have all the tools necessary to download and compile the code:
sudo apt-get install cmake g++ git
  1. Install OpenCL. This is done by downloading the latest display drivers and AMD APP SDK (if you have a AMD GPU) or CUDA Toolkit (if you have an NVIDIA GPU).

  2. FAST will download and build all other dependencies (Qt5, eigen, zlib, DCMTK) automatically. In order to get fonts and movie streaming to work with Qt, you need to install the following libraries:

sudo apt-get install libfontconfig1-dev
sudo apt-get install libgstreamer1.0-dev libgstreamer-plugins-bad1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-good1.0-dev

Compile

Important: Don't put the FAST code in a path with spaces, this will currently break the build

git clone https://github.com/smistad/FAST.git
cd FAST
mkdir build
cd build
cmake ..
make -j8

Troubleshoot

When you run cmake, the system may not find the OpenCL library, and you have to set it manually using cmake (e.g. cmake .. -DOpenCL_LIBRARY=/path/to/libOpenCL.so). The library is usually located in /usr/local/cuda/lib64/ for NVIDIA and /opt/amd-gpupro/lib/x864-linux-gnu/ if you use the AMD GPUPRO driver.

If you get the error saying something like "qfontengine_ft_p.h:56:22: fatal error: ft2build.h: No such file or directory" you have to install the fontconfig library "libfontconfig1-dev".

Running the tests

Next, you should run the tests to make sure the framework is working properly on your system. Instructions on how to do this can be found here.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.