I have found the problem (hopefully the last).

The files produced were libqtmmlwidget.so but the init function was
qtmmlwidget (no "lib" as a prefix).

I am using qmake .pro files but it seems that I have mangled the syntax. I
would like to fix it. And it seem I need help for this. I'm grateful for
your help. With some luck this will be the last question.

My pro file is:

TEMPLATE = lib
QT += core gui

INCLUDEPATH += /usr/include/shiboken/
INCLUDEPATH += /usr/include/python2.6
INCLUDEPATH += /usr/include/PySide
INCLUDEPATH += /usr/include/PySide/QtCore
INCLUDEPATH += /usr/include/PySide/QtGui
INCLUDEPATH += /usr/include/PySide/QtXml
INCLUDEPATH += /usr/include/qt4/QtXml/
INCLUDEPATH +=
/home/stefan/Workspace/Programing/maemo-mathsketch/qtmmlwidget-2.4_1-opensource/src/

LIBS += -lshiboken
LIBS += -ldl -lpython2.6
LIBS += -lpyside
LIBS += -L../.. -l:libQtSolutions_MMLWidget-2.4.so

TARGET = ./qtmmlwidget

SOURCES += \
    ./qtmmlwidget_module_wrapper.cpp \
    ./qtmmlwidget_wrapper.cpp

And the targets in the produced make file are libqtmmlwidget. What can I do
to have them in the form qtmmlwidget? (I can just change the name of the
module to libqtmmlwidget, but more of a workaround)

Regards
Stefan



On 2 November 2010 01:15, Renato Araujo Oliveira Filho <
[email protected]> wrote:

> Can you create a bug on bugzilla and attach your code?
> I think I can check this better and give you a solution.
>
> BR
>
>
> On Mon, Nov 1, 2010 at 6:35 PM, Stefan Krastanov
> <[email protected]> wrote:
> > 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
> >
> >
>
>
>
> --
> 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