Hi Renato,

Thanks for the help. Now it is working.

I was following
http://www.pyside.org/docs/shiboken/tutorial/globalheader.html and there is
no mention about pyside_global.h.

Regards
Stefan

On 1 November 2010 13:39, Renato Araujo Oliveira Filho <
[email protected]> wrote:

> Hi Stefan,
>
> What do you have in your global.h file?
>
> On Mon, Nov 1, 2010 at 9:03 AM, Stefan Krastanov
> <[email protected]> wrote:
> > Hi,
> > I am trying to create bindings for qtmmlwidget from qt solutions. I have
> two
> > problems when running the generator:
> > - hundreds of "SomeType is specified in typesystem, but not defined. This
> > could potentially lead to compilation errors."
>
> This message is caused because the generator does not find the class
> definition ".h" files related for each class.
>
> Check the "PySide Binding Generation Tutorial"[1] in the section "The
> Global Header" make sure you have "#include "pyside_global.h" " in
> your file.
>
>
>
> > - "No C++ classes found!" as final output
> > Here is the command I use to run the generator:
> > QTCORE_INC=/usr/include/qt4:/usr/include/qt4/QtCore
> > QTGUI_INC=/usr/include/qt4:/usr/include/qt4/QtGui:/usr/include/qt4/QtCore
> > QTXML_INC=/usr/include/qt4:/usr/include/qt4/QtXml:/usr/include/qt4/QtCore
> > QTTYPESYSTEM=/usr/share/PySide/typesystems
> > generatorrunner --generatorSet=shiboken \
> >     ./data/global.h \
> >
>  --include-paths=../../src:$QTCORE_INC:$QTGUI_INC:$QTXML_INC:/usr/include
> > \
> >     --typesystem-paths=./data:$QTTYPESYSTEM \
> >     --output-directory=. \
> >     ./data/typesystem_qtmmlwidget.xml
> > And here is typesystem_qtmmlwidget.xml:
> > <?xml version="1.0"?>
> > <typesystem package="qtmmlwidget">
> >     <load-typesystem name="typesystem_core.xml" generate="no"/>
> >     <load-typesystem name="typesystem_gui.xml" generate="no"/>
> >     <load-typesystem name="typesystem_xml.xml" generate="no"/>
> >     <object-type name="QtMmlWidget"/>
> > </typesystem>
> > Can someone help me find the errors in here.
> > Regards
> > Stefan
> > _______________________________________________
> > PySide mailing list
> > [email protected]
> > http://lists.openbossa.org/listinfo/pyside
> >
> >
>
>
>
> --
> Renato Araujo Oliveira Filho
> Instituto Nokia de Tecnologia - INdT
> Mobile: +55 (81) 8704-2144
>
_______________________________________________
PySide mailing list
[email protected]
http://lists.openbossa.org/listinfo/pyside

Reply via email to