ubuntu1404安装qt5.2.1全过程
程序员文章站
2022-07-13 22:23:58
...
环境
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 -j 4
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!
sudo apt-get install libxcb*
5 qmake: could not find a Qt installation of ‘’
- 删除原先的链接:
sudo rm /usr/bin/qmake
- 建立新的链接:
sudo ln -s 你的Qt qmake 的位置 /usr/bin/qmake
即可,例如,我的Qt qmake
的位置在/home/Qt5.4.0/5.4/gcc_64/bin/qmake
。
下一篇: 安装使用Ubuntu的全过程(随时更新)