| 
 | 
here's a suggestion, but that did not work for me with opengl: 
 
sudo apt-get install libxcb1-dev libxcb-image0-dev libxcb-keysyms1-dev libxcb-icccm4-dev libxcb-render-util0-dev libxcb-util0-dev libxrender-dev libasound-dev libpulse-dev libxcb-sync0-dev libxcb-xfixes0-dev libxcb-randr0-dev libx11-xcb-dev libffi-dev 
 
 
git clone git://code.qt.io/qt/qt5.git QtStatic 
cd QtStatic 
git checkout 5.5 
perl init-repository --module-subset=qtbase,qtimageformats 
git checkout v5.5.1 
cd qtimageformats && git checkout v5.5.1 && cd .. 
cd qtbase && git checkout v5.5.1 && cd .. 
./configure -release -opensource -confirm-license -qt-zlib -qt-libpng -qt-libjpeg -qt-freetype -qt-harfbuzz -qt-pcre -qt-xcb -qt-xkbcommon-x11 -no-opengl -static -nomake examples -nomake tests 
make -j4 
sudo make -j4 install |   
 
 
 
 |