CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.com] failing to build Qt, Project ERROR: Building QtQml requires Python. - ubuntu (https://www.cfd-online.com/Forums/openfoam-installation/223147-failing-build-qt-project-error-building-qtqml-requires-python-ubuntu.html)

TU_Hiwi December 27, 2019 07:37

failing to build Qt, Project ERROR: Building QtQml requires Python. - ubuntu
 
Hey guys,



i am currently installing openFOAM 1912 and have some trouble building Qt. I downloaded the right tarball (https://download.qt.io/archive/qt/5.9/5.9.9/single/) extracted it into the thirdparty folder and started building it using "./makeQt 5.9.9". Just as it says in the BUILD.md



After severals minutes i get the following error and the building aborts:


Code:

Info: creating cache file /home/thenew/OpenFOAM/ThirdParty-v1912/build/linux64Gcc/qt-everywhere-opensource-src-5.9.9/qtdeclarative/.qmake.cache
sh: 1: python: not found
Project ERROR: Building QtQml requires Python.
Makefile:334: recipe for target 'module-qtdeclarative-make_first' failed
make: *** [module-qtdeclarative-make_first] Error 3
Command exited with non-zero status 2
3310.61user 231.30system 8:05.68elapsed 729%CPU (0avgtext+0avgdata 426500maxresident)k
0inputs+3837616outputs (351major+59299359minor)pagefaults 0swaps
Error building: Qt-5.9.9

I am using Ubuntu 18.04 lts on a Thinkpad e495. Any idea what caused the error and how to overcome it?


Greetings and thanks in advance:


Lukas

TU_Hiwi December 28, 2019 10:29

_solved_
 
it seems in ubuntu 18.04 you cant call python by "python", if you haven't installed python2.7. So i just needed to install python 2.7, did so by

Code:

sudo apt install python
. Worked just fine afterwards.


All times are GMT -4. The time now is 16:50.