Configuring PyQt for Qt 4.7.4

I am trying to install PyQt for developing Python applications using Qt. I downloaded SIP and PyQt4 from http://www.riverbankcomputing.co.uk and compiled the packages.

But I ran into a problem while compiling PyQt4:

I ran python configure.py in the terminal and I got:

Error: Make sure you have a working Qt v4 qmake on your PATH or use the -q argument to explicitly specify a working Qt v4 qmake. 

I looked in the Qt settings and I saw the path for qmake defined here "home / user / .QtSDK / Simulator / Qt / gcc / bin / qmake". Where else should this path be set?

And how can I configure qt, so I can write the code directly in Qt Creator and execute it there, like any other C ++ file. I installed Qt from the Nokia website and was installed in the /home/user/.QtSDK folder.

Thanks.

+6
source share
2 answers

The error message states that the PyQt installer cannot find the qmake executable. Running these two commands should solve this problem:

 PATH=$PATH:~/.QtSDK/Simulator/Qt/gcc/bin/ export PATH 

After that resume installation.

+2
source
 make -q /home/user/.QtSDK/Simulator/Qt/gcc/bin/qmake 

It works? I'm not sure if an error occurred while running make, but I suppose so. If not, add -q /home/user/.QtSDK/Simulator/Qt/gcc/bin/qmake to the correct command.

+1
source

Source: https://habr.com/ru/post/899823/


All Articles