Erro ao istalar opencv 2.4.13 no Ubuntu

Olá pessoal,

Estou tentando instalar o opencv 2.4.13 em uma maquina virtual Linux(Ubuntu 16.04) estou seguindo este script :

sudo apt-get install -y build-essential 
4 sudo apt-get install -y cmake 
5 sudo apt-get install -y libgtk2.0-dev 
6 sudo apt-get install -y pkg-config 
7 sudo apt-get install -y python-numpy python-dev 
8 sudo apt-get install -y libavcodec-dev libavformat-dev libswscale-dev 
9 sudo apt-get install -y libjpeg-dev libpng12-dev libtiff5-dev libjasper-dev 
10   
11 sudo apt-get -qq install libopencv-dev build-essential checkinstall cmake pkg-config yasm libjpeg-dev libjasper-dev libavcodec-dev libavformat-dev libswscale-dev libdc1394-22-dev libxine2 libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libv4l-dev python-dev python-numpy libtbb-dev libqt4-dev libgtk2.0-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev libtheora-dev libvorbis-dev libxvidcore-dev x264 v4l-utils 
12   
13 # download opencv-2.4.13 
14 wget http://downloads.sourceforge.net/project/opencvlibrary/opencv-unix/2.4.13/opencv-2.4.13.zip 
15 unzip opencv-2.4.13.zip 
16 cd opencv-2.4.13 
17 mkdir release 
18 cd release 
19   
20 # compile and install 
21 cmake -G "Unix Makefiles" -DCMAKE_CXX_COMPILER=/usr/bin/g++ CMAKE_C_COMPILER=/usr/bin/gcc -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=/usr/local -DWITH_TBB=ON -DBUILD_NEW_PYTHON_SUPPORT=ON -DWITH_V4L=ON -DINSTALL_C_EXAMPLES=ON -DINSTALL_PYTHON_EXAMPLES=ON -DBUILD_EXAMPLES=ON -DWITH_QT=ON -DWITH_OPENGL=ON -DBUILD_FAT_JAVA_LIB=ON -DINSTALL_TO_MANGLED_PATHS=ON -DINSTALL_CREATE_DISTRIB=ON -DINSTALL_TESTS=ON -DENABLE_FAST_MATH=ON -DWITH_IMAGEIO=ON -DBUILD_SHARED_LIBS=OFF -DWITH_GSTREAMER=ON .. 
22 make all -j2 # 2 cores 
23 sudo make install 

Retirado de : https://gist.github.com/arthurbeggs/06df46af94af7f261513934e56103b30

Mas está dando esse erro :

 Built target pch_Generate_opencv_videostab
[ 22%] Built target opencv_core
[ 22%] Built target opencv_flann
[ 25%] Built target opencv_imgproc
[ 26%] Built target opencv_ml
[ 26%] Generating src/moc_window_QT.cxx
moc: Cannot open options file specified with @
Usage: moc [options] <header-file>
  -o<file>           write output to file rather than stdout
  -I<dir>            add dir to the include path for header files
  -E                 preprocess only; do not generate meta object code
  -D<macro>[=<def>]  define macro, with optional definition
  -U<macro>          undefine macro
  -i                 do not generate an #include statement
  -p<path>           path prefix for included file
  -f[<file>]         force #include, optional file name
  -nn                do not display notes
  -nw                do not display warnings
  @<file>            read additional options from file
  -v                 display version of moc
modules/highgui/CMakeFiles/opencv_highgui.dir/build.make:62: recipe for target 'modules/highgui/src/moc_window_QT.cxx' failed
make[2]: *** [modules/highgui/src/moc_window_QT.cxx] Error 1
CMakeFiles/Makefile2:1947: recipe for target 'modules/highgui/CMakeFiles/opencv_highgui.dir/all' failed
make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2
make[1]: ** Esperando que outros processos terminem.
[ 27%] Built target opencv_video
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2

Alguém tem alguma ideia do que seja ?

OBS : Se for necessário modificar algo em algum script por favor me informem onde ele fica pois não estou acostumado a mexer com ubuntu(Linux).

A+