Yes, I have added the header to global.h. But I haven't specified the folder with qtmmlwidget.h in the options for the generator.
I have done that now and the .cpp files have nicer names: qtmmlwidget_module_wrapper.cpp But I have the same problem when importing in python. Here is the output from the generator, when I fixed the included folders Generating class model... [WARNING] enum 'QtMmlWidget::MmlFont' does not have a type entry or is not an enum Generating enum model... [WARNING] enum 'PM_MessageBoxHeight' does not have a type entry or is not an enum Generating namespace model... [OK] Resolving typedefs... [OK] Fixing class inheritance... [OK] Detecting inconsistencies in class model... ^C ste...@stefan-laptop:~/Workspace/Programing/maemo-mathsketch/qtmmlwidget-2.4_1-opensource/lib/qtmmlwidget_binding$ ./generator.sh Generating class model... [WARNING] enum 'QtMmlWidget::MmlFont' does not have a type entry or is not an enum Generating enum model... [WARNING] enum 'PM_MessageBoxHeight' does not have a type entry or is not an enum Generating namespace model... [OK] Resolving typedefs... [OK] Fixing class inheritance... [OK] Detecting inconsistencies in class model... [OK] Detecting inconsistencies in typesystem... [WARNING] enum 'QMatrix4x4::enum_1' is specified in typesystem, but not declared type 'QPyTextObject' is specified in typesystem, but not defined. This could potentially lead to compilation errors. type 'QX11EmbedContainer' is specified in typesystem, but not defined. This could potentially lead to compilation errors. type 'QX11EmbedWidget' is specified in typesystem, but not defined. This could potentially lead to compilation errors. Done, 6 warnings (930 known issues) On 1 November 2010 21:37, Anderson Lizardo <[email protected]>wrote: > On Mon, Nov 1, 2010 at 4:20 PM, Stefan Krastanov > <[email protected]> wrote: > > Here is the typesystem.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> > > And here is the output from the generator: > > Generating class model... [OK] > > Generating enum model... [WARNING] > > enum 'PM_MessageBoxHeight' does not have a type entry or is not an enum > > Generating namespace model... [OK] > > Resolving typedefs... [OK] > > Fixing class inheritance... [OK] > > Detecting inconsistencies in class model... [OK] > > Detecting inconsistencies in typesystem... [WARNING] > > type 'QtMmlWidget' is specified in typesystem, but not defined. This > could > > potentially lead to compilation errors. > > the message above means that although this class was specified on the > typesystem, it was not found by the parser. did you add the > QtMmlWidget header include to the global.h file ? > > regards, > -- > Anderson Lizardo > OpenBossa Labs - INdT > Manaus - Brazil >
_______________________________________________ PySide mailing list [email protected] http://lists.openbossa.org/listinfo/pyside
