我们正在尝试从Ubuntu 20.04上的源代码构建Qt ( qt-15.5.0 )的最新版本。一切都运行得很好,直到我们得到以下错误:
Project ERROR: Building QtQml requires Python.Python是可用的( version 3.8 ),我们甚至尝试了alias python=python3,并将python的路径添加到$PATH中,但没有任何帮助。我们找不到有关此特定问题的任何信息。
我们所做的:
$ wget http://download.qt.io/official_releases/qt/5.15/5.15.0/single/qt-everywhere-src-5.15.0.tar.xz
$ ./configure -prefix /username/dev/libraries/qt-5.15.0/install -xcb
$ make -j8
$ sudo make install发布于 2020-12-19 14:46:27
$ vi .bashrc将以下别名添加到.bashrc文件中。
alias python=python3保存它并编写脚本。
$ source .bashrc如果它不起作用,使用
$ which python3
/usr/bin/python3
$ sudo cp /usr/bin/python3 /usr/bin/python然后你就可以开始构建你的Qt了!
https://stackoverflow.com/questions/62940065
复制相似问题