Do you use QtWebKit on maya? If not just remove QtWebKit fomr
CMakeList.txt file.

BR

On Tue, Apr 19, 2011 at 6:09 PM, Kjelle Apers <[email protected]> wrote:
> Thanks!
>
> I cloned the git repository and checked out the 1.0.1 and applied the patch.
> But yet another error occurs:
>
> kjelle@orion:~/sandbox/software/pyside/build$ make
> [  1%] Built target pyside
> [ 16%] Built target QtCore
> [ 69%] Built target QtGui
> [ 75%] Built target QtNetwork
> [ 75%] Building CXX object
> PySide/QtWebKit/CMakeFiles/QtWebKit.dir/PySide/QtWebKit/qwebpage_wrapper.cpp.o
> /home/kjelle/sandbox/software/pyside/build/PySide/QtWebKit/PySide/QtWebKit/qwebpage_wrapper.cpp:
> In member function ‘virtual bool
> QWebPageWrapper::extension(QWebPage::Extension, const
> QWebPage::ExtensionOption*, QWebPage::ExtensionReturn*)’:
> /home/kjelle/sandbox/software/pyside/build/PySide/QtWebKit/PySide/QtWebKit/qwebpage_wrapper.cpp:396:
> error: ‘ErrorPageExtension’ is not a member of ‘QWebPage’
> /home/kjelle/sandbox/software/pyside/build/PySide/QtWebKit/PySide/QtWebKit/qwebpage_wrapper.cpp:397:
> error: ‘ErrorPageExtensionOption’ was not declared in this scope
> /home/kjelle/sandbox/software/pyside/build/PySide/QtWebKit/PySide/QtWebKit/qwebpage_wrapper.cpp:397:
> error: template argument 1 is invalid
> /home/kjelle/sandbox/software/pyside/build/PySide/QtWebKit/PySide/QtWebKit/qwebpage_wrapper.cpp:397:
> error: ISO C++ forbids declaration of ‘type name’ with no type
> /home/kjelle/sandbox/software/pyside/build/PySide/QtWebKit/PySide/QtWebKit/qwebpage_wrapper.cpp:397:
> error: expected ‘>’ before ‘ErrorPageExtensionOption’
> /home/kjelle/sandbox/software/pyside/build/PySide/QtWebKit/PySide/QtWebKit/qwebpage_wrapper.cpp:397:
> error: expected ‘(’ before ‘ErrorPageExtensionOption’
> /home/kjelle/sandbox/software/pyside/build/PySide/QtWebKit/PySide/QtWebKit/qwebpage_wrapper.cpp:397:
> error: expected primary-expression before ‘>’ token
> /home/kjelle/sandbox/software/pyside/build/PySide/QtWebKit/PySide/QtWebKit/qwebpage_wrapper.cpp:406:
> error: ‘ErrorPageExtension’ is not a member of ‘QWebPage’
> /home/kjelle/sandbox/software/pyside/build/PySide/QtWebKit/PySide/QtWebKit/qwebpage_wrapper.cpp:407:
> error: ‘ErrorPageExtensionReturn’ was not declared in this scope
> /home/kjelle/sandbox/software/pyside/build/PySide/QtWebKit/PySide/QtWebKit/qwebpage_wrapper.cpp:407:
> error: template argument 1 is invalid
> /home/kjelle/sandbox/software/pyside/build/PySide/QtWebKit/PySide/QtWebKit/qwebpage_wrapper.cpp:407:
> error: ISO C++ forbids declaration of ‘type name’ with no type
> /home/kjelle/sandbox/software/pyside/build/PySide/QtWebKit/PySide/QtWebKit/qwebpage_wrapper.cpp:407:
> error: expected ‘>’ before ‘ErrorPageExtensionReturn’
> /home/kjelle/sandbox/software/pyside/build/PySide/QtWebKit/PySide/QtWebKit/qwebpage_wrapper.cpp:407:
> error: expected ‘(’ before ‘ErrorPageExtensionReturn’
> /home/kjelle/sandbox/software/pyside/build/PySide/QtWebKit/PySide/QtWebKit/qwebpage_wrapper.cpp:407:
> error: expected primary-expression before ‘>’ token
> make[2]: ***
> [PySide/QtWebKit/CMakeFiles/QtWebKit.dir/PySide/QtWebKit/qwebpage_wrapper.cpp.o]
> Error 1
> make[1]: *** [PySide/QtWebKit/CMakeFiles/QtWebKit.dir/all] Error 2
> make: *** [all] Error 2
>
> Greets,
> --
> Kjelle
>
>
> On Tue, Apr 19, 2011 at 10:09 PM, Hugo Parente Lima
> <[email protected]> wrote:
>>
>> On Tuesday 19 April 2011 16:56:31 Kjelle Apers wrote:
>> > Hi,
>> >
>> > Hugo, I am using Qt 4.5.3; I compiled it and installed it in the sandbox
>> > too.
>> >
>> > Thanks for the hint Renator; but there's still an error:
>> >
>> > [ 21%] Building CXX object
>> > PySide/QtGui/CMakeFiles/QtGui.dir/PySide/QtGui/qcolor_wrapper.cpp.o
>> >
>> > /home/kjelle/sandbox/software/pyside-qt4.7+1.0.1/build/PySide/QtGui/PySide/
>> > QtGui/qcolor_wrapper.cpp: In function ‘PyObject*
>> > Sbk_QColorFunc___reduce__(PyObject*)’:
>> >
>> > /home/kjelle/sandbox/software/pyside-qt4.7+1.0.1/build/PySide/QtGui/PySide/
>> > QtGui/qcolor_wrapper.cpp:284: error: ‘Hsl’ is not a member of ‘QColor’
>> > make[2]: ***
>> > [PySide/QtGui/CMakeFiles/QtGui.dir/PySide/QtGui/qcolor_wrapper.cpp.o]
>> > Error
>> > 1
>> > make[1]: *** [PySide/QtGui/CMakeFiles/QtGui.dir/all] Error 2
>> > make: *** [all] Error 2
>>
>> I guess QColor::Hsl was added after Qt 4.5 too. Applye the attached patch
>> (with git am) and try again.
>>
>> > I commented out these lines from the CMakeLists.txt to get there:
>> > if(QT_QTUITOOLS_FOUND AND QT_QTDESIGNER_FOUND)
>> >     add_subdirectory(plugins)
>> > endif()
>> >
>> >
>> > Greets,
>> > --
>> > Kjelle
>> >
>> >
>> > On Tue, Apr 19, 2011 at 8:10 PM, Renato Araujo Oliveira Filho <
>> >
>> > [email protected]> wrote:
>> > > You can remove the plugins dir from CMakeList file, This will fix this
>> > > problem, I think you do not need the plugins on Maya.
>> > >
>> > > BR
>> > >
>> > > On Tue, Apr 19, 2011 at 11:03 AM, Hugo Parente Lima
>> > >
>> > > <[email protected]> wrote:
>> > > > On Tuesday 19 April 2011 10:42:29 Kjelle Apers wrote:
>> > > >> Hello,
>> > > >> I am trying to use PySide with Autodesk Maya 2011, which is using
>> > > >> Qt
>> > >
>> > > 4.5. I
>> > >
>> > > >> know 4.5 is not supported by PySide but decided to give it a try
>> > >
>> > > anyway...
>> > >
>> > > >> but I get the following error when compiling the latest PySide:
>> > > >>
>> > > >> kjelle@orion:~/sandbox/
>> > > >> software/pyside-qt4.7+1.0.1/build$ make
>> > > >> [  1%] Built target pyside
>> > > >> [  1%] Building CXX object
>> > > >> plugins/CMakeFiles/uiplugin.dir/customwidgets.cpp.o
>> > > >> In file included from
>> > >
>> > > /home/kjelle/sandbox/software/pyside-
>> qt4.7+1.0.1/plugins/customwidgets.cpp:
>> > > >> 23:
>> > >
>> > > /home/kjelle/sandbox/software/pyside-qt4.7+1.0.1/plugins/customwidget.h:5
>> > > 4
>> > >
>> > > >> : error: ISO C++ forbids declaration of ‘QScopedPointer’ with no
>> > > >> type
>> > > >
>> > > > IIRC QScopedPointer was added on Qt 4.6 and you are using the auto
>> > >
>> > > generated
>> > >
>> > > > headers created with Qt 4.7.
>> > > >
>> > > > The solution is to try to compile PySide with Qt 4.5, otherwise even
>> > > > if
>> > >
>> > > you
>> > >
>> > > > got everything compiled you will get a link error due to missing
>> > > > symbols.
>> > >
>> > >
>> > > /home/kjelle/sandbox/software/pyside-qt4.7+1.0.1/plugins/customwidget.h:5
>> > > 4
>> > >
>> > > >> : error: expected ‘;’ before ‘<’ token
>> > > >>
>> > > >> In file included from
>> > >
>> > > /home/kjelle/sandbox/software/pyside-
>> qt4.7+1.0.1/plugins/customwidgets.cpp:
>> > > >> 24:
>> > >
>> > > /home/kjelle/sandbox/software/pyside-qt4.7+1.0.1/plugins/customwidgets.h:
>> > > 4
>> > >
>> > > >> 7: error: ISO C++ forbids declaration of ‘QScopedPointer’ with no
>> > > >> type
>> > >
>> > >
>> > > /home/kjelle/sandbox/software/pyside-qt4.7+1.0.1/plugins/customwidgets.h:
>> > > 4
>> > >
>> > > >> 7: error: expected ‘;’ before ‘<’ token
>> > >
>> > > /home/kjelle/sandbox/software/pyside-
>> qt4.7+1.0.1/plugins/customwidgets.cpp:
>> > > >> In constructor ‘PyCustomWidgets::PyCustomWidgets(QObject*)’:
>> > > /home/kjelle/sandbox/software/pyside-
>> qt4.7+1.0.1/plugins/customwidgets.cpp:
>> > > >> 49: error: class ‘PyCustomWidgets’ does not have any field named
>> > >
>> > > ‘m_data’
>> > >
>> > >
>> > > /home/kjelle/sandbox/software/pyside-qt4.7+1.0.1/plugins/customwidgets.cp
>> > > p
>> > >
>> > > >> : In member function ‘void
>> > >
>> > > PyCustomWidgets::registerWidgetType(PyObject*)’:
>> > >
>> > >
>> > > /home/kjelle/sandbox/software/pyside-qt4.7+1.0.1/plugins/customwidgets.cp
>> > > p
>> > >
>> > > >> :59: error: ‘m_data’ was not declared in this scope
>> > >
>> > > /home/kjelle/sandbox/software/pyside-
>> qt4.7+1.0.1/plugins/customwidgets.cpp:
>> > > >> In member function ‘virtual QList<QDesignerCustomWidgetInterface*>
>> > >
>> > > >> PyCustomWidgets::customWidgets() const’:
>> > > /home/kjelle/sandbox/software/pyside-
>> qt4.7+1.0.1/plugins/customwidgets.cpp:
>> > > >> 64: error: ‘m_data’ was not declared in this scope
>> > > >> make[2]: *** [plugins/CMakeFiles/uiplugin.dir/customwidgets.cpp.o]
>> > > >> Error
>> > >
>> > > 1
>> > >
>> > > >> make[1]: *** [plugins/CMakeFiles/uiplugin.dir/all] Error 2
>> > > >> make: *** [all] Error 2
>> > > >>
>> > > >>
>> > > >> So can I use PySide at all with Maya? Will 4.5 be supported in the
>> > >
>> > > future,
>> > >
>> > > >> or do I have to modify the source code? Is it perhaps feasible to
>> > > >> use
>> > > >> an older version of PySide for this?
>> > > >>
>> > > >> Thanks in advance!
>> > > >> --
>> > > >> Kjelle
>> > > >
>> > > > --
>> > > > Hugo Parente Lima
>> > > > INdT - Instituto Nokia de Tecnologia
>> > > >
>> > > > _______________________________________________
>> > > > PySide mailing list
>> > > > [email protected]
>> > > > http://lists.pyside.org/listinfo/pyside
>> > >
>> > > --
>> > > Renato Araujo Oliveira Filho
>> > > Instituto Nokia de Tecnologia - INdT
>> > > Mobile: +55 (81) 8704-2144
>> > > _______________________________________________
>> > > PySide mailing list
>> > > [email protected]
>> > > http://lists.pyside.org/listinfo/pyside
>>
>> --
>> Hugo Parente Lima
>> INdT - Instituto Nokia de Tecnologia
>
>



-- 
Renato Araujo Oliveira Filho
Instituto Nokia de Tecnologia - INdT
Mobile: +55 (81) 8704-2144
_______________________________________________
PySide mailing list
[email protected]
http://lists.pyside.org/listinfo/pyside

Reply via email to