[PyQt] SIP tutorial/docs problems

Phil Thompson phil at riverbankcomputing.com
Sat Nov 1 19:09:56 GMT 2008


On Sat, 1 Nov 2008 19:50:58 +0100, "piotr maliński" <riklaunim at gmail.com>
wrote:
> I'm trying to learn SIP but the examples in documentation make problems.
> 
> 4.2   A Simple C Example
> On make it ends with:
> 
> g++ -shared -Wl,--version-script=word.exp -o word.so sipwordcmodule.o
> sipwordWord.o -lword
> /usr/bin/ld: cannot find -lword

The word library is just an example - it doesn't actually exist unless you
write it yourself.

> 4.3   A More Complex C++ Example
> This on "sip -c . word.sip" ends with
> 
> sip: Unable to find file "qt/qtmod.sip"
> 
> Where /usr/share/sip/Qt/Qtmod.sip from PyQt 4.4.3 exists

It's part of PyQt3. For PyQt4 use QtCore/QtCoremod.sip instead.

Phil


More information about the PyQt mailing list