Hey Kjelle, FWIW Maya 2012 is built on Qt 4.7 so it should 'just work'
with the latest PySide.

Cheers,
D

On Apr 20, 1:42 am, Kjelle Apers <[email protected]> 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:54:
> error: ISO C++ forbids declaration of ‘QScopedPointer’ with no type
> /home/kjelle/sandbox/software/pyside-qt4.7+1.0.1/plugins/customwidget.h:54:
> 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:47 :
> error: ISO C++ forbids declaration of ‘QScopedPointer’ with no type
> /home/kjelle/sandbox/software/pyside-qt4.7+1.0.1/plugins/customwidgets.h:47 :
> 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.cpp:
> In member function ‘void PyCustomWidgets::registerWidgetType(PyObject*)’:
> /home/kjelle/sandbox/software/pyside-qt4.7+1.0.1/plugins/customwidgets.cpp: 
> 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
>
> _______________________________________________
> PySide mailing list
> [email protected]http://lists.pyside.org/listinfo/pyside
_______________________________________________
PySide mailing list
[email protected]
http://lists.pyside.org/listinfo/pyside

Reply via email to