Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.15.0 RC
-
None
-
-
2b41025fc967b37c8bff77c4b75bab333ae13f46 (qt/qtdeclarative/dev) 1c6a70e1880a8fe0f3d8da4932c4f3533693219c (qt/qtdeclarative/5.15)
Description
We use Ubuntu 20.04 as our build system for Android. As python2 is deprecated we install python3 packages.
But Ubuntu won't provide a "python" binary for that. A "python3" binary is the only one. So we get this error if we try to build Qt 5.15.0-rc.
It would be helpful if Qt could check for python3 binary, too.
Error
sh: 1: python: not found
Project ERROR: Building QtQml requires Python.
Sources
https://code.qt.io/cgit/qt/qtdeclarative.git/tree/qtdeclarative.pro?h=5.15.0
CONFIG += tests_need_tools examples_need_tools load(qt_parts) !python_available { py_out = $$system('python -c "print(1)"') !equals(py_out, 1): error("Building QtQml requires Python.") tmp = python_available CONFIG += $$tmp cache(CONFIG, add, tmp) }
Directory listing
$ ll /usr/bin/python* lrwxrwxrwx 1 root root 9 Mar 13 12:20 /usr/bin/python3 -> python3.8* lrwxrwxrwx 1 root root 16 Mar 13 12:20 /usr/bin/python3-config -> python3.8-config* -rwxr-xr-x 1 root root 5457568 Mar 13 10:14 /usr/bin/python3.8* lrwxrwxrwx 1 root root 33 Mar 13 10:14 /usr/bin/python3.8-config -> x86_64-linux-gnu-python3.8-config*
Attachments
Issue Links
- relates to
-
QTBUG-51753 Building QtQml requires Python version 2
- Closed