example needed: sip + Qt

Uwe Mayer merkosh at hadiko.de
Fri Jan 28 17:18:06 EST 2005


On Friday 28 January 2005 14:47 pm, Phil Thompson wrote:
> > The QLabel example in the SIP reference manual yields syntax errors for
> > me.
>
> What syntax errors? If there is a documentation bug then I'll fix it.

I'll come to that a little later, that happened in the simple c++ word 
example. 

I am currently fiddling around with the QLabel example. I copied the example 
and tried it out. First problem was that the generated makefile does not 
attempt to compile the original hello.cpp sources. 

So I wrote a configure script and a Makefile.am for that. 
It was not clear to me what type of archive or object was needed, so I first 
tried creating a normal object file, then libtool archives and then normal 
archives. It turned out I needed a normal archive an the library search path 
has to be extended to include the current directory (-L.), i.e. where the 
libhello.a lies.
My only way of doing so was edditing the Makefile generated by configure.py. 
Is there a way of telling that  to configure.py?

So now the hello.cpp example compiles. I fire up python:
>>> import hello
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: ./hello.so: undefined symbol: _ZTV5Hello

$ c++filt _ZTV5Hello
vtable for Hello

The compilation did not give any warnings or error messages. Any ideas?

Thanks
Uwe
-- 
It would seem that evil retreats when forcibly confronted.
  -- Yarnek of Excalbia, "The Savage Curtain", stardate 5906.5
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 492 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20050128/e4a61463/attachment.sig>


More information about the Python-list mailing list