[Slackbuilds-users] QScintilla2 for Python3 and PyQt5

Benjamin Trigona-Harany slackbuilds at jaxartes.net
Sun Feb 25 03:12:30 UTC 2018


I'm trying to write a SlackBuild QScintila2 for Python 3 and PyQt5 and can't 
seem to get past a particular stumbling block.

Anyone have any suggestions for resolving the error showing in the attached 
error.txt file? The SlackBuild and patch file are also attached and the source 
is from https://sourceforge.net/projects/pyqt/files/QScintilla2/
QScintilla-2.10.2/QScintilla_gpl-2.10.2.tar.gz.

This is on a clean copy of Slackware64 14.2 (clean other than python3-PyQt5 
and its dependencies). 

There's lots of prior art out there for other distros but nothing I can find 
regarding this particular error.

Thanks, Ben
-------------- next part --------------
A non-text attachment was scrubbed...
Name: QScintilla-qt5.SlackBuild
Type: application/x-shellscript
Size: 3316 bytes
Desc: not available
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20180224/a4dfee96/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: python-config.diff
Type: text/x-patch
Size: 825 bytes
Desc: not available
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20180224/a4dfee96/attachment-0001.bin>
-------------- next part --------------
cd Qsci/ && ( test -e Makefile || /usr/bin/qmake-qt5
/tmp/SBo/QScintilla_gpl-2.10.2/Python/Qsci/Qsci.pro -o Makefile ) && make -f
Makefile install
make[1]: Entering directory '/tmp/SBo/QScintilla_gpl-2.10.2/Python/Qsci'
g++ -c -pipe -fno-exceptions -O2 -fPIC -std=gnu++11 -Wall -W -D_REENTRANT
-fPIC -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DQT_NO_DEBUG -DQT_PLUGIN
-DQT_GUI_LIB -DQT_CORE_LIB -I. -isystem /usr/include/qt5/QtWidgets -isystem
/usr/include/qt5/QtPrintSupport
-I../../../package-QScintilla-qt5/usr/include/qt5 -isystem
/usr/include/python3.6 -isystem /usr/include/python3.6m -isystem
/usr/include/qt5 -isystem /usr/include/qt5/QtGui -isystem
/usr/include/qt5/QtCore -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o
sipQscipart0.o sipQscipart0.cpp
/usr/share/sip/PyQt5/QtCore/qpycore_qlist.sip: In function 'int
convertTo_QList_0101QsciCommand(PyObject*, void**, int*, PyObject*)':
/usr/share/sip/PyQt5/QtCore/qpycore_qlist.sip:228:33: error: invalid use of
incomplete type 'struct _typeobject'
                     Py_TYPE(itm)->tp_name);
                                 ^
In file included from /usr/include/python3.6m/Python.h:68:0,
                 from /usr/include/python3.6/sip.h:32,
                 from sipAPIQsci.h:31,
                 from sipQscipart0.cpp:24:
/usr/include/python3.6m/object.h:109:12: note: forward declaration of 'struct
_typeobject'
     struct _typeobject *ob_type;
            ^
/usr/share/sip/PyQt5/QtCore/qpycore_qlist.sip: In function 'PyObject*
convertFrom_QList_0101QsciCommand(void*, PyObject*)':
/usr/share/sip/PyQt5/QtCore/qpycore_qlist.sip:172:35: error: 'PyList_SET_ITEM'
was not declared in this scope
         PyList_SET_ITEM(l, i, tobj);
                                   ^
/usr/share/sip/PyQt5/QtCore/qpycore_qlist.sip: In function 'int
convertTo_QList_0100QsciStyledText(PyObject*, void**, int*, PyObject*)':
/usr/share/sip/PyQt5/QtCore/qpycore_qlist.sip:118:33: error: invalid use of
incomplete type 'struct _typeobject'
                     Py_TYPE(itm)->tp_name);
                                 ^
In file included from /usr/include/python3.6m/Python.h:68:0,
                 from /usr/include/python3.6/sip.h:32,
                 from sipAPIQsci.h:31,
                 from sipQscipart0.cpp:24:
/usr/include/python3.6m/object.h:109:12: note: forward declaration of 'struct
_typeobject'
     struct _typeobject *ob_type;
            ^
/usr/share/sip/PyQt5/QtCore/qpycore_qlist.sip: In function 'PyObject*
convertFrom_QList_0100QsciStyledText(void*, PyObject*)':
/usr/share/sip/PyQt5/QtCore/qpycore_qlist.sip:61:35: error: 'PyList_SET_ITEM'
was not declared in this scope
         PyList_SET_ITEM(l, i, tobj);
                                   ^
Makefile:658: recipe for target 'sipQscipart0.o' failed
make[1]: *** [sipQscipart0.o] Error 1
make[1]: Leaving directory '/tmp/SBo/QScintilla_gpl-2.10.2/Python/Qsci'
Makefile:66: recipe for target 'sub-Qsci-install_subtargets-ordered' failed
make: *** [sub-Qsci-install_subtargets-ordered] Error 2
root at testbox:~/qgis3-slackbuild/QScintilla-qt5# 



More information about the SlackBuilds-users mailing list