[PyQt] Passing image using SIP

David Boddie david at boddie.org.uk
Tue Jun 21 19:02:47 BST 2011


On Mon Jun 20 23:46:27 BST 2011, Jarosław Białas wrote:

> I wanted to create code fragment that will pass an object containg image
> or pointer to this object from Python to C++ function.
> I tried to create function:
> void loadImage(QImage* image);
> Then I created sip file, and after compiling and linking everything 
> looks fine until I tried to import shared library in python:
> ImportError: ./test.so: undefined symbol: _ZTI6QImage

It looks like QtGui wasn't linked in when your shared library was created.
How was the linker run? What command line options and arguments were passed
to it?

David


More information about the PyQt mailing list