Compile Qt 5.7.0 on Ubuntu16.04
2016-11-08 16:34
288 查看
原文: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
This is actually just my experience with the same problem inUbuntu.
The libraries as given by Miss Blit are correct, exceptfrom libxcb-sync0 libxcb-sync0-dev, these should be libxcb-sync1libxcb-sync-dev.
[3] sudo apt-get installlibfontconfig1-dev libfreetype6-dev libx11-dev libxext-devlibxfixes-dev libxi-dev libxrender-dev libxcb1-dev libx11-xcb-devlibxcb-glx0-dev
[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
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
This is actually just my experience with the same problem inUbuntu.
The libraries as given by Miss Blit are correct, exceptfrom libxcb-sync0 libxcb-sync0-dev, these should be libxcb-sync1libxcb-sync-dev.
[3] sudo apt-get installlibfontconfig1-dev libfreetype6-dev libx11-dev libxext-devlibxfixes-dev libxi-dev libxrender-dev libxcb1-dev libx11-xcb-devlibxcb-glx0-dev
[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
相关文章推荐
- Installing openjdk-7-jdk on Ubuntu 16.04 LTS
- Install OpenCV-3.1.0 fails on Ubuntu 16.04 (‘memcpy’ was not declared in this scope)
- Upgrade from Ubuntu 14.04. to Ubuntu 16.04 on Desktop and Server Editions
- How to Configure and Install ownCloud on Ubuntu 16.04
- Upgrade Bash on Ubuntu from 14.04 to 16.04
- Install LAMP Stack On Ubuntu 16.04
- Installing Apache Spark on Ubuntu 16.04
- Matlab 2015b 启动时崩溃 MATLAB crashes during startup on Ubuntu 16.04
- Matlab 2015b 启动时崩溃 MATLAB crashes during startup on Ubuntu 16.04
- Downgrade PHP 7 to PHP 5.6 on Ubuntu 16.04
- Build caffe fails on Ubuntu 16.04 (‘memcpy’ was not declared in this scope)
- ASP.NET Core 1.0 on Ubuntu 16.04
- ASP.NET Core 小应用 on Ubuntu 16.04
- Matlab 2015b 启动时崩溃 MATLAB crashes during startup on Ubuntu 16.04
- sdl2 for android ubuntu开发环境搭建记录,编译SDL2 on ubuntu 16.04 x64
- Install CuDNN on Ubuntu 16.04?
- matlab2015b 在 ubuntu16.04中启动崩溃的问题(on startup crash)
- Install MySql 5.6 on Ubuntu 16.04
- 懒人搭建OpenGrok for Android N on Ubuntu 16.04