[PyQt] qtdirs.app can't load QtCore

Phil Thompson phil at riverbankcomputing.com
Thu Jun 25 21:53:16 BST 2009


On Thu, 25 Jun 2009 13:18:33 -0500, Dave Peterson <dpeterson at enthought.com>
wrote:
> Hi Phil,
> 
> 
> Phil Thompson wrote:
>> You shouldn't need a qt.conf file.
> 
> I think I had problems running the Qt apps and demos if I didn't have 
> that.  I'll try without it again though.   Perhaps this is a sign that 
> my Qt install isn't really right?   Or is it just needed in my case 
> because I'm relocating my Qt install? (see below)
> 
> 
>> I've built and installed Qt in a non-standard directory and PyQt has no
>> problems with it.
>>
>> How did you configure, build and install Qt?
>>   
> 
> The configure command was:
> 
> ./configure -prefix /Users/dpeterson/py/qtbuild/tmp/Qt-4.5.1-1/install 
> -debug -fast  -no-exceptions -no-qt3support -qt-zlib -qt-libpng 
> -qt-libmng -qt-libjpeg -opensource -confirm-license -arch x86 -R 
> /PLACEHOLD/.../PLACEHOLD
> 
> where the /PLACEHOLD/.../PLACEHOLD is actually a string of 20 * 
> /PLACEHOLD.   We use that to enable us to make the Qt binaries 
> relocatable.   Basically, we use macholib to replace all the /PLACEHOLD 
> strings with the actual installed-to directory.  Of course, we also have 
> to find the tmp install path in the various associated text files and 
> replace it with the actual installed directory too.
> 
> 
> The build command was:
> 
> make -j1 QMAKE_RPATH=/PLACEHOLD/.../PLACEHOLD
> 
> where the placehold serves the same purpose as above.
> 
> 
> Then the install process is effectively (a) zipping up the 
> .../tmp/Qt-4.5.1-1/install directory and unzipping it into the desired 
> location, then (b) running the post-installs scripts to fixup everything 
> for the install path as mentioned above where I describe the configure 
> process.

...you're on your own I think.

The qtdirs utility is built using your Qt's qmake. configure.py isn't doing
any special at that point, so I suspect you might have similar problems
with any C++ code.

You could try running qmake manually on the qtdirs.pro file that
configure.py will have left lying around, and then run make, and then the
qtdirs it produces.  If it fails to run then it's a problem with your Qt
build.

Phil


More information about the PyQt mailing list