<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
The build system on my project is similar in that I can build stuff in
one place and install it wherever<br>
I want. Relocating Qt caused me no end of headaches. All of the
documented or suggested solutions<br>
never seemed to work quite right.<br>
<br>
I "solved" this problem by using the qpatch program, included with
qt-creator. I believe it's what is <br>
used to patch an official Qt binary install. ( you wont find much on it
by googling, I found it by browsing <br>
the Qt sources)<br>
<br>
This "relocates" a Qt installation so that all of its hard-coded
internal paths are correct. I was able to <br>
include qpatch as a "tool" in our build system, to automate Qt installs
and relocation as necessary.<br>
<br>
PyQt ( and QT Creator) builds seamlessly against such a relocated Qt
install; no qt.conf or other patching needed.<br>
<br>
Patching in such a way does reek of a hack, but that's how Qt does it!
;)<br>
<br>
Josh<br>
<br>
<br>
Giulio Eulisse wrote:
<blockquote
 cite="mid:a768125a1001111159q582e6f5dpfecd96c9bc8a09ac@mail.gmail.com"
 type="cite">
  <pre wrap="">Dear all,

the project I work for packages all of its software so that the build
and installation path can be different. In order to make qt programs
relocatable we use our own qt.conf that gets relocated at
post-installation time with the correct installation path.

This seems to confuse pyqt building, because the "qtdirs" program,
used at build time by pyqt, does not use qt.conf, because no
QCoreApplication is created.

The attached patch fixes the problem. Do you think you could accept it
upstream, so that we don't have to maintain the patch ourself?

--
Ciao,
Giulio
  </pre>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
PyQt mailing list    <a class="moz-txt-link-abbreviated" href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a>
<a class="moz-txt-link-freetext" href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a></pre>
</blockquote>
<br>
</body>
</html>