[QScintilla] Problem installing QScintilla2:fatal error: QAbstractScrollArea: No such file or directory

Thies Thate jxanti.jx at gmail.com
Mon Jan 26 14:12:50 GMT 2015


I'm hobbyist trying to program in PYQT5.
Working on a Lenovo ThinkStation E32 (64bit) under Fedora 21 Mate.

To install eric6 I did the following:
As explained in "README for the eric6 IDE" (in eric6-6.0.1.tar.gz from
http://sourceforge.net/projects/eric-ide/files/eric6/stable/

1.Install Qt5 Qt Creator 3.3.0 Based on Qt 5.4.0 (GCC 4.9.2 20141101 
(Red Hat 4.9.2-1), 64 bit)
2.Build and install QScintilla2 (from Riverbank Computing)  (my remark: 
I had to put  qmake in PATH for missing qmake)
3.Build and install sip (from Riverbank Computing) (my remark: I had to 
install python3-devel for missing python.h)
4.Build and install PyQt5 (my remark: no problems)

And now my problem:

Firstly the contents of .bash_profile:

============================
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
     . ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/.local/bin:$HOME/bin

#tbv qmake thies 26-01-2015

PATH=$PATH:/usr/lib64/qt5/bin
PATH=$PATH:/usr/include/qt5/QtWidgets

export PATH

==================


5.Build and install QScintilla2 Python bindings.
Next the output in terminal:

=============================================

[xantippe at local ~]$ cd qscintilla2install/
[xantippe at local qscintilla2install]$ ls
QScintilla-gpl-2.8.4  QScintilla-gpl-2.8.4.tar.gz
[xantippe at local qscintilla2install]$ cd QScintilla-gpl-2.8.4/
[xantippe at local QScintilla-gpl-2.8.4]$ ls
designer-Qt3     GPL_EXCEPTION_ADDENDUM.TXT  LICENSE.GPL2 qsci
designer-Qt4Qt5  GPL_EXCEPTION.TXT           LICENSE.GPL3 Qt3
doc              include                     NEWS Qt4Qt5
example-Qt3      lexers                      OPENSOURCE-NOTICE.TXT README
example-Qt4Qt5   lexlib                      Python src
[xantippe at local QScintilla-gpl-2.8.4]$ cd Python/
[xantippe at local Python]$ python3 configure.py --pyqt=PyQt5
Configuring QScintilla 2.8.4...
QScintilla 2.8.4 is being used.
The QScintilla .sip files will be installed in /usr/share/sip/PyQt5.
The QScintilla module will be installed in
/usr/lib64/python3.4/site-packages/PyQt5.
PyQt 5.4 is being used.
Qt 5.4.0 is being used.
sip 4.16.5 is being used.
The sip executable is /usr/bin/sip.
The QScintilla module is being built with 'protected' redefined as 'public'.
The QScintilla API file will be installed in /usr/share/qt5/qsci/api/python.
Generating the C++ source for the Qsci module...
Generating the .pro file for the Qsci module...
Creating the Makefile for the Qsci module...
[xantippe at local Python]$ make
g++ -c -pipe -fno-exceptions -O2 -g -pipe -Wall -Werror=format-security 
-Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong 
--param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 
-Wall -W -D_REENTRANT -fPIC -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public 
-DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB 
-I/usr/lib64/qt5/mkspecs/linux-g++ -I. -isystem /usr/include/python3.4m 
-isystem /usr/include/qt5 -isystem /usr/include/qt5/QtGui -isystem 
/usr/include/qt5/QtCore -I. -o sipQsciQsciLexerAVS.o sipQsciQsciLexerAVS.cpp
In file included from /usr/include/qt5/Qsci/qscicommand.h:36:0,
                  from /usr/include/qt5/Qsci/qsciscintilla.h:42,
                  from /usr/include/qt5/Qsci/qsciabstractapis.h:39,
                  from sip/qsciabstractapis.sip:29:
/usr/include/qt5/Qsci/qsciscintillabase.h:35:31: fatal error: 
QAbstractScrollArea: No such file or directory
  #include <QAbstractScrollArea>
                                ^
compilation terminated.
Makefile:461: recipe for target 'sipQsciQsciLexerAVS.o' failed
make: *** [sipQsciQsciLexerAVS.o] Error 1
[xantippe at local Python]$

===============================

My problem described above: "QAbstractScrollArea: No such file or directory"

I'm missing QAbstractScrollArea.
A "find" as root gives the following:

=====
[root at local /]# find / -name qabstractscrollarea*.*
find: ‘/run/user/1000/gvfs’: Permission denied
/home/xantippe/.local/share/Trash/files/backupthies260115/pyqt5install/PyQt-gpl-5.4/doc/html/_sources/api/qabstractscrollarea.txt
/home/xantippe/.local/share/Trash/files/backupthies260115/pyqt5install/PyQt-gpl-5.4/doc/html/api/qabstractscrollarea.html
/home/xantippe/.local/share/Trash/files/backupthies260115/pyqt5install/PyQt-gpl-5.4/doc/sphinx/api/qabstractscrollarea.rst
/home/xantippe/.local/share/Trash/files/backupthies260115/pyqt5install/PyQt-gpl-5.4/sip/QtWidgets/qabstractscrollarea.sip
/home/xantippe/pyqt5install/PyQt-gpl-5.4/doc/html/_sources/api/qabstractscrollarea.txt
/home/xantippe/pyqt5install/PyQt-gpl-5.4/doc/html/api/qabstractscrollarea.html
/home/xantippe/pyqt5install/PyQt-gpl-5.4/doc/sphinx/api/qabstractscrollarea.rst
/home/xantippe/pyqt5install/PyQt-gpl-5.4/sip/QtWidgets/qabstractscrollarea.sip
/usr/include/qt5/QtWidgets/5.4.0/QtWidgets/private/qabstractscrollarea_p.h
/usr/include/qt5/QtWidgets/qabstractscrollarea.h
/usr/share/sip/PyQt5/QtWidgets/qabstractscrollarea.sip
[root at local /]#


=====


I found qabstarctscrollarea.h in 
/usr/include/qt5/QtWidgets/qabstractscrollarea.h
So I put that directory in .bash_profile without the needed solution. 
(not knowing what to do!!)

(Because I also have qt4 installed (for hplip-gui) I thought the problem 
is the existence of
Qt4. But uninstalling this does not have the needed effect.
 >>>
Question can you help me to solve this problem?
<<<

Many thanks.






More information about the QScintilla mailing list