<div dir="ltr"><div><div><div>I am sorry I could not understand that. Where should I specify the --qmake flag ? At the risk of appearing foolish is this what you meant - <br><br></div>qmake --qmake=/usr/local/Trolltec/Qt-4.8.7/bin <br><br></div>I just tried this on a tcsh and got this error <br><br>qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake': No such file or directory<br><br><br><br></div>Regarding Qt 4 yes I am aware it is no longer supported but I plan to use Py Qt with Mayavi and I was told that Py Q 5 is not supported by Mayavi (please correct me if I am wrong) <br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 12, 2018 at 10:30 PM, Phil Thompson <span dir="ltr"><<a href="mailto:phil@riverbankcomputing.com" target="_blank">phil@riverbankcomputing.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 12 Mar 2018, at 4:40 pm, ashwin .D <<a href="mailto:winash12@gmail.com">winash12@gmail.com</a>> wrote:<br>
><br>
> Hello,<br>
> I am trying to install Py Qt from source on Ubuntu 16.04. I have previously installed qmake under the following directory<br>
><br>
> /usr/local/TrollTech/Qt-4.7.8/<wbr>bin/qmake. However when I run python3.5 configure-ng.py I get this message<br>
><br>
> qmake: could not exec '/usr/lib/x86_64-linux-gnu/<wbr>qt4/bin/qmake': No such file or directory<br>
> Error: PyQt4 requires Qt v4.1.0 or later. Use the --qmake flag to specify the<br>
> correct version of qmake. If you are sure you are using Qt v4 then try the<br>
> configure.py script instead of this one.<br>
> Querying qmake about your Qt installation...<br>
><br>
> There is an existing /usr/bin/qmake which came with Ubuntu I presume which does not work for whatever reasons. My installation sits in a different directory as pointed above. How do I modify my configure-ng.py script so it picks up my version of qmake and not the system one ?<br>
><br>
> I have root privileges on this box and I am the sole user.<br>
><br>
> I modified this line<br>
><br>
> pipe = os.popen(' '.join([qmake, '-query']))<br>
><br>
> and changed it to ' pipe = os.popen(' '.join(['/usr/local/TrollTech/<wbr>Qt-4.7.8/bin/qmake', '-query']))<br>
><br>
> but this does not seem to work either. When I run this on my tcsh that command prints the information without any error.<br>
><br>
> Any suggestions will be appreciated.<br>
<br>
</span>As the error message suggests, use the --qmake flag to pass the name of the qmake executable.<br>
<span class="HOEnZb"><font color="#888888"><br>
Phil<br>
<br>
</font></span></blockquote></div><br></div>