Slicer not build on Ubuntu 16.04. Build FAILED

I cant build Slicer on Ubuntu 16.04 / Qt5.5.1 / Git 2.7.4
I did all the instructions from the page
But i have a lot of problems
Please, help me

From your screenshot it looks like you’re getting Qt 5.9.6 in there?

What command are you running to build Slicer?

How did you install Qt?

Yes, you are right. Qt version 5.9.6
To install Qt5.9.6 I used this video

This is the list of all commands that I used to build Slicer:

  1. sudo apt-get install subversion git-core git-svn
  2. sudo apt-get install make gcc g++ libx11-dev libxt-dev libgl1-mesa-dev libglu1-mesa-dev libfontconfig-dev libxrender-dev libncurses5-dev
  3. sudo apt-get install libgstreamer-plugins-base0.10-dev
  4. sudo apt-get install curl mkdir ~/Support && cd ~/Support curl -O tar -xzvf cmake-3.8.2-Linux-x86_64.tar.gz
  5. mkdir -p ~/bin
  6. ln -s ~/Support/cmake-3.8.2-Linux-x86_64/bin/cmake ~/bin/cmake
  7. ln -s ~/Support/cmake-3.8.2-Linux-x86_64/bin/cmake-gui ~/bin/cmake-gui
  8. I also install Qt 4 from this page

sudo apt-get install qt4-dev-tools libqt4-dev libqtcore4 libqtgui4 libqtwebkit-dev
9) cd MyProjects
git clone git://
10) cd Slicer
11) cd Slicer
git svn init
git update-ref refs/remotes/git-svn refs/remotes/origin/master
git checkout master
git svn rebase
12) svn co Slicer-r26813 -r 26813
13) mkdir Slicer-SuperBuild
cd Slicer-SuperBuild
cmake -DCMAKE_BUILD_TYPE:STRING=Debug -DQt5_DIR:PATH=/home/ubuntu-gd/Qt5.9.6/5.9.6/gcc_64/lib/cmake/Qt5 …/Slicer
14) cd Slicer
make -j4

As far as I can tell the workflow looks fine. I have my environment working using Qt built from the qt-easy-build script:

I just noticed your console output:

virtual memory exhausted

Could you be running out of RAM? How much do you have?

1 Like

I have only RAM = 4 GB

The most recent recommended hardware configuration for using Slicer suggests a 64-bit OS with at least 8GB of RAM. If you will be working with large volume data sets you will need more RAM.

1 Like