[PyQt] Compiling PyQt with windows

Matt Newell newellm at blur.com
Thu Jun 4 22:32:39 BST 2009


On Thursday 04 June 2009 14:09:24 melkor at orangepalantir.org wrote:
> Okay I have MinGW32 and 64 bit python 2.6, I want to compile PyQt4 and I
> get a lot of errors similar too:
>
> undefined reference to '_imp__PyTuple_Pack'
>
> I hope the error is not because of the 64 bit version, it sounds like a
> library error.  Qt installed just fine though.
> I'm using the command
>
> c:\python26\python configure.py -p win32-g++
> mingw32-make
>
> thanks
> mbs

You can't use a 32 bit compiler(mingw32) to compile against 64 bit python.

You'll need to either use mingw-w64(which I haven't used successfully yet for 
Qt, and haven't tried with just pyqt), or one of the msvc compilers.

Matt


More information about the PyQt mailing list