请选择 进入手机版 | 继续访问电脑版
MSIPO技术圈 首页 IT技术 查看内容

ubuntu上源码编译qt时报错 Project ERROR: Building QtQml requires Python.

2023-07-13

make[1]: Leaving directory '/home/qt/qt-everywhere-src-5.12.8/qtsvg'
cd qtdeclarative/ && ( test -e Makefile || /home/qt/qt-everywhere-src-5.12.8/qtbase/bin/qmake -o Makefile /home/qt/qt-everywhere-src-5.12.8/qtdeclarative/qtdeclarative.pro ) && make -f Makefile install
sh: 1: python: not found
Project ERROR: Building QtQml requires Python.
Makefile:348: recipe for target 'module-qtdeclarative-install_subtargets' failed
make: *** [module-qtdeclarative-install_subtargets] Error 3
root@Linux:/home/qt/qt-everywhere-src-5.12.8# cat t.sh 
#!/bin/bash
./configure -prefix /usr/local/qt512 \
-confirm-license \
-opensource \
-release \
-no-opengl \
-v


解决方案:

添加配置选项:-skip qtdeclarative

root@Linux:/home/qt/qt-creator-opensource-src-4.11.2/build# cat ../../qt-everywhere-src-5.12.8/t.sh 
#!/bin/bash
./configure -prefix /usr/local/qt512 \
-confirm-license \
-opensource \
-release \
-no-opengl \
-skip qtdeclarative \
-v

此时./configure && make && make install,整个过程再无报错。。

在这里插入图片描述

相关阅读

热门文章

    手机版|MSIPO技术圈 皖ICP备19022944号-2

    Copyright © 2024, msipo.com

    返回顶部