Solved Can't find Python when building Qt from sources
-
We are trying to build the last version of Qt ( qt-15.5.0 ) from the sources on Ubuntu 20.04. Everything is running fine until we get the following error:
Project ERROR: Building QtQml requires Python.
Python is avalaible ( version 3.8 ), we even tried alias python=python3 and adding the path to python to $PATH but it didn't help. We can't find any info on this specific problem.
What we did:
$ 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
Any help is welcome, thanks in advance! :)
-
@DrPepitoAvs Could be that it requires Python 2?
-
@jsulm both python version are installed but we only tried alias and PATH with pyhon3 i guess. I checked again and I can't find any data on which python version required to build Qt from sources.
EDIT: I foundSystem requirements
- Perl 5.8 or later - Python 2.7 or later - C++ compiler supporting the C++11 standard
in the README file.
-
@DrPepitoAvs You should check config.log file, maybe you can see more there about the actual problem?
-
@jsulm Nothing about Python in the config.log file.
-
@DrPepitoAvs
Google for:Building QtQml requires Python
. You will find several relevant hits. -
Thanks all, we managed to do it, it was all a PATH problem after all.