Hi all,
I forked halida's pysideqwt on github(
https://github.com/grissiom/pysideqwt ) and working on binding
Qwt-6.0.1. I made some adjustment on the typesystem_qwt.xml and
global.h to suppress most of the generator warnings. But I got error
when compiling. Here is the full log:
==========================================================
[ 1%] Running generator for libqwt...
Generating class model... [WARNING]
enum 'QPixmap::ShareMode' does not have a type entry or is not an enum
Unable to decide type of property: 'BackgroundStyles' in class
'QwtSlider'
Generating enum model... [OK]
Generating namespace model... [OK]
Resolving typedefs... [OK]
Fixing class inheritance... [WARNING]
Ignoring template parameter from QwtSeriesData< T >, because
I don't know what it is.
Detecting inconsistencies in class model... [OK]
[OK]
type 'QPyTextObject' is specified in typesystem, but not
defined. This could potentially lead to compilation errors.
Could not find a AbstractMetaClass for type T
Done, 5 warnings (1047 known issues)
[ 2%] Building CXX object
qwt/CMakeFiles/PySideQwt.dir/PySideQwt/pysideqwt_module_wrapper.cpp.o
In file included from
/home/grissiom/projects/pysideqwt/build/qwt/PySideQwt/pysideqwt_python.h:18:0,
from
/home/grissiom/projects/pysideqwt/build/qwt/PySideQwt/pysideqwt_module_wrapper.cpp:6:
/usr/include/PySide/QtCore/pyside_qtcore_python.h: In static member
function ‘static bool
Shiboken::Converter<QDateTime>::isConvertible(PyObject*)’:
/usr/include/PySide/QtCore/pyside_qtcore_python.h:3489:9: warning:
deprecated conversion from string constant to ‘char*’
/usr/include/PySide/QtCore/pyside_qtcore_python.h:3489:9: warning:
deprecated conversion from string constant to ‘char*’
/usr/include/PySide/QtCore/pyside_qtcore_python.h: In static member
function ‘static QDateTime
Shiboken::Converter<QDateTime>::toCpp(PyObject*)’:
/usr/include/PySide/QtCore/pyside_qtcore_python.h:3499:9: warning:
deprecated conversion from string constant to ‘char*’
/usr/include/PySide/QtCore/pyside_qtcore_python.h:3499:9: warning:
deprecated conversion from string constant to ‘char*’
/usr/include/PySide/QtCore/pyside_qtcore_python.h: In static member
function ‘static bool
Shiboken::Converter<QDate>::isConvertible(PyObject*)’:
/usr/include/PySide/QtCore/pyside_qtcore_python.h:3544:9: warning:
deprecated conversion from string constant to ‘char*’
/usr/include/PySide/QtCore/pyside_qtcore_python.h:3544:9: warning:
deprecated conversion from string constant to ‘char*’
/usr/include/PySide/QtCore/pyside_qtcore_python.h: In static member
function ‘static QDate Shiboken::Converter<QDate>::toCpp(PyObject*)’:
/usr/include/PySide/QtCore/pyside_qtcore_python.h:3553:9: warning:
deprecated conversion from string constant to ‘char*’
/usr/include/PySide/QtCore/pyside_qtcore_python.h:3553:9: warning:
deprecated conversion from string constant to ‘char*’
/usr/include/PySide/QtCore/pyside_qtcore_python.h: In static member
function ‘static bool
Shiboken::Converter<QTime>::isConvertible(PyObject*)’:
/usr/include/PySide/QtCore/pyside_qtcore_python.h:3656:9: warning:
deprecated conversion from string constant to ‘char*’
/usr/include/PySide/QtCore/pyside_qtcore_python.h:3656:9: warning:
deprecated conversion from string constant to ‘char*’
/usr/include/PySide/QtCore/pyside_qtcore_python.h: In static member
function ‘static QTime Shiboken::Converter<QTime>::toCpp(PyObject*)’:
/usr/include/PySide/QtCore/pyside_qtcore_python.h:3665:9: warning:
deprecated conversion from string constant to ‘char*’
/usr/include/PySide/QtCore/pyside_qtcore_python.h:3665:9: warning:
deprecated conversion from string constant to ‘char*’
In file included from
/home/grissiom/projects/pysideqwt/build/qwt/PySideQwt/pysideqwt_module_wrapper.cpp:6:0:
/home/grissiom/projects/pysideqwt/build/qwt/PySideQwt/pysideqwt_python.h:
At global scope:
/home/grissiom/projects/pysideqwt/build/qwt/PySideQwt/pysideqwt_python.h:295:33:
error: template-id ‘SbkType<template<class T> class
QwtArraySeriesData>’ for ‘PyTypeObject* Shiboken::SbkType()’ does not
match any template declaration
/home/grissiom/projects/pysideqwt/build/qwt/PySideQwt/pysideqwt_python.h:296:33:
error: template-id ‘SbkType<template<class T> class QwtSeriesData>’
for ‘PyTypeObject* Shiboken::SbkType()’ does not match any template
declaration
/home/grissiom/projects/pysideqwt/build/qwt/PySideQwt/pysideqwt_python.h:372:33:
error: template-id ‘SbkType<template<class T> class
QwtPlotSeriesItem>’ for ‘PyTypeObject* Shiboken::SbkType()’ does not
match any template declaration
/home/grissiom/projects/pysideqwt/build/qwt/PySideQwt/pysideqwt_python.h:911:41:
error: template argument 1 is invalid
/home/grissiom/projects/pysideqwt/build/qwt/PySideQwt/pysideqwt_python.h:911:87:
error: type/value mismatch at argument 1 in template parameter list
for ‘template<class T> struct Shiboken::ObjectTypeConverter’
/home/grissiom/projects/pysideqwt/build/qwt/PySideQwt/pysideqwt_python.h:911:87:
error: expected a type, got ‘QwtArraySeriesData’
/home/grissiom/projects/pysideqwt/build/qwt/PySideQwt/pysideqwt_python.h:916:40:
error: type/value mismatch at argument 1 in template parameter list
for ‘template<class T> struct Shiboken::Converter’
/home/grissiom/projects/pysideqwt/build/qwt/PySideQwt/pysideqwt_python.h:916:40:
error: expected a type, got ‘QwtArraySeriesData’
/home/grissiom/projects/pysideqwt/build/qwt/PySideQwt/pysideqwt_python.h:916:95:
error: type/value mismatch at argument 1 in template parameter list
for ‘template<class T> struct Shiboken::ObjectTypeReferenceConverter’
/home/grissiom/projects/pysideqwt/build/qwt/PySideQwt/pysideqwt_python.h:916:95:
error: expected a type, got ‘QwtArraySeriesData’
/home/grissiom/projects/pysideqwt/build/qwt/PySideQwt/pysideqwt_python.h:921:36:
error: template argument 1 is invalid
/home/grissiom/projects/pysideqwt/build/qwt/PySideQwt/pysideqwt_python.h:921:77:
error: type/value mismatch at argument 1 in template parameter list
for ‘template<class T> struct Shiboken::ObjectTypeConverter’
/home/grissiom/projects/pysideqwt/build/qwt/PySideQwt/pysideqwt_python.h:921:77:
error: expected a type, got ‘QwtSeriesData’
/home/grissiom/projects/pysideqwt/build/qwt/PySideQwt/pysideqwt_python.h:926:35:
error: type/value mismatch at argument 1 in template parameter list
for ‘template<class T> struct Shiboken::Converter’
/home/grissiom/projects/pysideqwt/build/qwt/PySideQwt/pysideqwt_python.h:926:35:
error: expected a type, got ‘QwtSeriesData’
/home/grissiom/projects/pysideqwt/build/qwt/PySideQwt/pysideqwt_python.h:926:85:
error: type/value mismatch at argument 1 in template parameter list
for ‘template<class T> struct Shiboken::ObjectTypeReferenceConverter’
/home/grissiom/projects/pysideqwt/build/qwt/PySideQwt/pysideqwt_python.h:926:85:
error: expected a type, got ‘QwtSeriesData’
/home/grissiom/projects/pysideqwt/build/qwt/PySideQwt/pysideqwt_python.h:1546:40:
error: template argument 1 is invalid
/home/grissiom/projects/pysideqwt/build/qwt/PySideQwt/pysideqwt_python.h:1546:85:
error: type/value mismatch at argument 1 in template parameter list
for ‘template<class T> struct Shiboken::ObjectTypeConverter’
/home/grissiom/projects/pysideqwt/build/qwt/PySideQwt/pysideqwt_python.h:1546:85:
error: expected a type, got ‘QwtPlotSeriesItem’
/home/grissiom/projects/pysideqwt/build/qwt/PySideQwt/pysideqwt_python.h:1551:39:
error: type/value mismatch at argument 1 in template parameter list
for ‘template<class T> struct Shiboken::Converter’
/home/grissiom/projects/pysideqwt/build/qwt/PySideQwt/pysideqwt_python.h:1551:39:
error: expected a type, got ‘QwtPlotSeriesItem’
/home/grissiom/projects/pysideqwt/build/qwt/PySideQwt/pysideqwt_python.h:1551:93:
error: type/value mismatch at argument 1 in template parameter list
for ‘template<class T> struct Shiboken::ObjectTypeReferenceConverter’
/home/grissiom/projects/pysideqwt/build/qwt/PySideQwt/pysideqwt_python.h:1551:93:
error: expected a type, got ‘QwtPlotSeriesItem’
make[2]: ***
[qwt/CMakeFiles/PySideQwt.dir/PySideQwt/pysideqwt_module_wrapper.cpp.o]
Error 1
make[1]: *** [qwt/CMakeFiles/PySideQwt.dir/all] Error 2
make: *** [all] Error 2
==================================================================
I think the error indicate shiboken could not cope with the template
class QwtArraySeriesData. But as it is a base template class for many
others( http://qwt.sourceforge.net/class_qwt_array_series_data.html ),
I think I could not go any further without solve this problem.
I'm new to pyside and shiboken. Any help will be appreciated thanks!
--
Cheers,
Grissiom
_______________________________________________
PySide mailing list
[email protected]
http://lists.pyside.org/listinfo/pyside