Compile Qt 5.7.0 on Ubuntu16.04(编译,安装,使用)

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-essential libgl1-mesa-dev

[2] sudo apt-get install libxcb1 libxcb1-dev libx11-xcb1 libx11-xcb-dev libxcb-keysyms1 libxcb-keysyms1-dev libxcb-image0 libxcb-image0-dev libxcb-shm0 libxcb-shm0-dev libxcb-icccm4 libxcb-icccm4-dev libxcb-sync0 libxcb-sync0-dev libxcb-xfixes0-dev libxrender-dev libxcb-shape0-dev libxcb-randr0-dev libxcb-render-util0 libxcb-render-util0-dev libxcb-glx0-dev libxcb-xinerama0-dev

This is actually just my experience with the same problem in Ubuntu. The libraries as given by Miss Blit are correct, except from libxcb-sync0 libxcb-sync0-dev, these should be libxcb-sync1 libxcb-sync-dev.

 

[3]  sudo apt-get install libfontconfig1-dev libfreetype6-dev libx11-dev libxext-dev libxfixes-dev libxi-dev libxrender-dev libxcb1-dev libx11-xcb-dev libxcb-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, zsh or sh), add the following lines:

export PATH=/usr/local/Qt-%VERSION%/bin:$PATH

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值