ubuntu14源码安装qt

环境

Docker version 18.06.3-ce, build d7080c1

Linux c5e082c17dae 4.4.0-31-generic #50~14.04.1-Ubuntu SMP

QMake version 3.0 Using Qt version 5.2.1

先说下安装流程

 cd <path>/qt-everywhere-opensource-src-<version>
 ./configure -prefix /usr/local/qtbase -opensource -nomake tests
 make -j4
 make install

安装qt遇到的问题

1 undefined reference to `JSC::Yarr::nondigitsCreate()’

未安装python库,或者python库环境未配置好

2 Project ERROR: Unknown module(s) in QT: quick
apt-get install qtdeclarative5-dev
3 systemctl: command not found
apt-get install --reinstall systemd
4 The test for linking against libxcb and support libraries failed!
apt-get install libxcb* 
5 qmake: could not find a Qt installation of ‘’
  1. 删除原先的链接: sudo rm /usr/bin/qmake
  2. 建立新的链接: sudo ln -s 你的Qt qmake 的位置 /usr/bin/qmake 即可,例如,我的 Qt qmake 的位置在 /home/Qt5.4.0/5.4/gcc_64/bin/qmake
6 Warning: Disabling Linux Accessibility Bridge: DBus is missing.
apt-get install dbus-*dev
  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值