Hey Hugo, Thanks for the reply. I've got it to compile by adding these include search paths :
-I.../pyside_qt4.7-1.0.1_64/include -I.../pyside_qt4.7-1.0.1_64/include/shiboken -I.../pyside_qt4.7-1.0.1_64/include/PySide -I.../pyside_qt4.7-1.0.1_64/include/PySide/QtCore -I.../pyside_qt4.7-1.0.1_64/include/PySide/QtGui So pyside_qtgui_python.h includes fine now. But when I go to load my python extension module all I ever get is : undefined symbol: SbkPySide_QtCoreTypes And the only place I seem to be able to find that symbol is in the actual PySide.QtCore python module : nm .../pyside_qt4.7-1.0.1_64/lib/python2.6/site-packages/PySide/ QtCore.so | grep SbkPySide_QtCoreTypes 0000000000f0d490 b SbkPySide_QtCoreTypes Even if I add that to the link list its still not happy. Is that what I should be linking in? Cheers in advance, D On Apr 6, 12:38 am, Hugo Parente Lima <[email protected]> wrote: > On Monday 04 April 2011 22:48:14 kungfuelmosan wrote: > > > > > > > > > > > Hey All, > > > Can anyone point me in the right direction to some info on running > > PySide embedded in a C++ Qt Application? > > > I have a Python C Extension library that I'm converting from PyQt/sip > > to PySide/Shiboken and in one part I have a PyObject* passed into my C > > Extension function that im expecing to be a PySide QWidget object, is > > there a way I can get the internal C++ QWidget pointer from the python > > wrapper? > > > Some googling led me to try : > > > #include <pyside_qtgui_python.h> > > > PyObject *someWrappedObject = ... ; > > > QWidget *w = Shiboken::Converter<QWidget*>::toCpp(someWrappedObject); > > > But the #include pyside_qtgui_python.h seems to have a million and one > > dependencies so I'm not sure if this is what I;m meant to be doing? > > The only dependency is QtCore, QtGui and Shiboken itself, there are a lot of > templates for sure, but if you don't instantiate them they will behave. > > > Are there any docs on this / a nicely wrapped up public include.h for > > Shiboken? > > > Cheers, > > Daniel > > _______________________________________________ > > PySide mailing list > > [email protected] > >http://lists.pyside.org/listinfo/pyside > > -- > Hugo Parente Lima > INdT - Instituto Nokia de Tecnologia > > signature.asc > < 1KViewDownload > > _______________________________________________ > PySide mailing list > [email protected]http://lists.pyside.org/listinfo/pyside _______________________________________________ PySide mailing list [email protected] http://lists.pyside.org/listinfo/pyside
