example needed: sip + Qt
Phil Thompson
phil at riverbankcomputing.co.uk
Fri Jan 28 18:23:59 EST 2005
So have you created the library you are trying to wrap? The documentation is
describing how to wrap a library and describes a fictional library as the
basis for the example.
Phil
On Friday 28 January 2005 11:02 pm, Uwe Mayer wrote:
> Friday 28 January 2005 23:39 pm Uwe Mayer wrote:
> > Friday 28 January 2005 23:18 pm Uwe Mayer wrote:
> >> 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?
> >
> > $ ldd -d hello.so
> > libqt-mt.so.3 => /usr/lib/libqt-mt.so.3 (0x40057000)
> > libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x4190c000)
> > libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x4154e000)
> > libpthread.so.0 => /lib/tls/libpthread.so.0 (0x41173000)
> > libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x40743000)
> > libm.so.6 => /lib/tls/libm.so.6 (0x4114f000)
> > libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x407fd000)
> > libc.so.6 => /lib/tls/libc.so.6 (0x41019000)
> > libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x418d8000)
> > libaudio.so.2 => /usr/lib/libaudio.so.2 (0x40807000)
> > libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x4191c000)
> > libpng12.so.0 => /usr/lib/libpng12.so.0 (0x4081c000)
> > libz.so.1 => /usr/lib/libz.so.1 (0x41856000)
> > libXrender.so.1 => /usr/lib/libXrender.so.1 (0x41749000)
> > libXrandr.so.2 => /usr/X11R6/lib/libXrandr.so.2 (0x40842000)
> > libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0x41734000)
> > libXft.so.2 => /usr/lib/libXft.so.2 (0x416e1000)
> > libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x42487000)
> > libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x42583000)
> > libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x4256a000)
> > libdl.so.2 => /lib/tls/libdl.so.2 (0x41184000)
> > /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
> > libexpat.so.1 => /usr/lib/libexpat.so.1 (0x40847000)
> > undefined symbol: _ZTV5Hello (./hello.so)
> > undefined symbol: _ZNK5Hello9classNameEv (./hello.so)
> > undefined symbol: _ZN5Hello7qt_castEPKc (./hello.so)
> > undefined symbol: _ZN5Hello9qt_invokeEiP8QUObject (./hello.so)
> > undefined symbol: _ZN5Hello7qt_emitEiP8QUObject (./hello.so)
> > undefined symbol: _ZN5Hello11qt_propertyEiiP8QVariant (./hello.so)
> > undefined symbol: _ZTI5Hello (./hello.so)
> >
> > undefined symbol: _Py_NoneStruct (./hello.so)
> > undefined symbol: PyCObject_Type (./hello.so)
>
> Those last two can be removed if you link against libpython2.3.so and by
> appending -lpython2.3 to the libs in the Makefile.
>
> Uwe
More information about the Python-list
mailing list