CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.com] failing to build Qt, Project ERROR: Building QtQml requires Python. - ubuntu

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 27, 2019, 08:37
Question failing to build Qt, Project ERROR: Building QtQml requires Python. - ubuntu
  #1
New Member
 
Lukas
Join Date: Jul 2018
Posts: 20
Rep Power: 8
TU_Hiwi is on a distinguished road
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 is offline   Reply With Quote

Old   December 28, 2019, 11:29
Default _solved_
  #2
New Member
 
Lukas
Join Date: Jul 2018
Posts: 20
Rep Power: 8
TU_Hiwi is on a distinguished road
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.
TU_Hiwi is offline   Reply With Quote

Reply

Tags
installation by sources, openfoam 1912, qt-opensource


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
SU2 Parallel Build Install Issue jclegg SU2 4 October 20, 2020 05:28
OpenFOAM v3.0+ ?? SBusch OpenFOAM 22 December 26, 2016 15:24


All times are GMT -4. The time now is 11:52.