Open jkrueger1 opened 7 years ago
Hi
I'm sorry for a late answer. Had a showstopper in the project that is now solved.
I cannot reproduce your bug. I have tested with sip 4.19.7 and Qt4.8.7 (Debian) and it compiles without errors.
I'm trying to compile this using qt5. I'm getting the following error:
g++ -c -pipe -fno-exceptions -O2 -g -O2 -fdebug-prefix-map=/home/cosmos/Softwares/Source/Python/PyQt5/PyQt-Qwt/Qwt=. -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -Wall -W -D_REENTRANT -fPIC -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DQWT_PYTHON_WRAPPER -DQWT_DLL -DQT_NO_DEBUG -DQT_PLUGIN -DQT_OPENGL_LIB -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -isystem /usr/include/qwt -isystem /usr/include/python2.7 -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtOpenGL -isystem /usr/include/x86_64-linux-gnu/qt5/QtSvg -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I. -isystem /usr/include/libdrm -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o sipQwtQwtSeriesStoreQPointF.o sipQwtQwtSeriesStoreQPointF.cpp
/home/cosmos/Softwares/Source/Python/PyQt5/PyQt-Qwt/Qwt/sipQwtQwtSeriesStoreQPointF.cpp: In function ‘void* array_QwtSeriesStoreQPointF(Py_ssize_t)’:
/home/cosmos/Softwares/Source/Python/PyQt5/PyQt-Qwt/Qwt/sipQwtQwtSeriesStoreQPointF.cpp:363:50: error: invalid new-expression of abstract class type ‘QwtSeriesStore<QPointF>’
return new ::QwtSeriesStoreQPointF[sipNrElem];
^
In file included from sip/qwt_series_store.sip:48:0:
/usr/include/qwt/qwt_series_store.h:57:7: note: because the following virtual functions are pure within ‘QwtSeriesStore<QPointF>’:
class QwtSeriesStore: public virtual QwtAbstractSeriesStore
^~~~~~~~~~~~~~
/usr/include/qwt/qwt_series_store.h:31:18: note: virtual void QwtAbstractSeriesStore::dataChanged()
virtual void dataChanged() = 0;
^~~~~~~~~~~
/home/cosmos/Softwares/Source/Python/PyQt5/PyQt-Qwt/Qwt/sipQwtQwtSeriesStoreQPointF.cpp: In function ‘void* copy_QwtSeriesStoreQPointF(const void*, Py_ssize_t)’:
/home/cosmos/Softwares/Source/Python/PyQt5/PyQt-Qwt/Qwt/sipQwtQwtSeriesStoreQPointF.cpp:370:110: error: invalid new-expression of abstract class type ‘QwtSeriesStore<QPointF>’
return new ::QwtSeriesStoreQPointF(reinterpret_cast<const ::QwtSeriesStoreQPointF *>(sipSrc)[sipSrcIdx]);
^
make[1]: *** [Makefile:1027: sipQwtQwtSeriesStoreQPointF.o] Error 1
make[1]: Leaving directory '/home/cosmos/Softwares/Source/Python/PyQt5/PyQt-Qwt/Qwt'
make: *** [Makefile:45: sub-Qwt-make_first-ordered] Error 2
Hi
Sorry for a late answer but this looks like you have not used the patched Qwt header files. See README.
Regards Gudjon
Thank you! That worked...! :-)
Installed version of qwt: current version (r2523), using Qt 4.8.4, sip 4.15.5
after 'python configure.py' and calling make I got:
./sipQwtQwtAlphaColorMap.cpp: In member function ‘QVector sipQwtAlphaColorMap::colorTable(const QwtInterval&) const’:
./sipQwtQwtAlphaColorMap.cpp:69:47: error: no matching function for call to ‘sipQwtAlphaColorMap::colorTable(const QwtInterval&) const’
return QwtAlphaColorMap::colorTable(a0);
^
./sipQwtQwtAlphaColorMap.cpp:69:47: note: candidate is:
In file included from qwt_color_map.sip:82:0:
/home/jkrueger/qwt/include/qwt_color_map.h:79:27: note: virtual QVector QwtColorMap::colorTable(int) const
virtual QVector colorTable( int numColors ) const;
^
/home/jkrueger/qwt/include/qwt_color_map.h:79:27: note: no known conversion for argument 1 from ‘const QwtInterval’ to ‘int’
make: *** [sipQwtQwtAlphaColorMap.o] Error 1
After having a look into the code and qwt code I found out that the Qwt call to the colorTable has an integer parameter now.