原文:http://blog.sina.com.cn/s/blog_5258e1360102wj82.html
Compile Qt 5.7.0 on Ubuntu16.04
Refer to:
http://doc.qt.io/qt-5/linux.html
qtbase/src/plugins/platforms/xcb/README
http://doc.qt.io/qt-5/linux-requirements.html
http://doc.qt.io/qt-5/linux-building.html
[1] sudo apt-get install build-essentiallibgl1-mesa-dev
[2] sudo apt-get install libxcb1 libxcb1-dev libx11-xcb1libx11-xcb-dev libxcb-keysyms1 libxcb-keysyms1-dev libxcb-image0libxcb-image0-dev libxcb-shm0 libxcb-shm0-dev libxcb-icccm4libxcb-icccm4-dev libxcb-sync0-dev libxcb-xfixes0-devlibxrender-dev libxcb-shape0-dev libxcb-randr0-devlibxcb-render-util0 libxcb-render-util0-dev libxcb-glx0-devlibxcb-xinerama0-dev
[3]
[4] ./configure -opensource -confirm-license-nomake tests -nomake examples -qt-xcb
[5] make -j4
[6] sudo make install
[7] In .profile (if your shell is bash, ksh, zshor sh), add the following lines:
exportPATH=/usr/local/Qt-%VERSION%/bin:$PATH