[PyQt] Error when build QScintilla

Phil Thompson phil at riverbankcomputing.com
Wed May 27 11:31:41 BST 2009


On Wed, 27 May 2009 14:04:56 +0700, Alexandr N Zamaraev <tonal at promsoft.ru>
wrote:
> My Environment:
> Os Windows Vista Home Basic Ru + sp1
> g++ (GCC) 3.4.5 (mingw-vista special r3)
> Qt 4.5.1 (self build)
> Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit 
> (Intel)] on win32
> 
> Error log:
> C:\Lang\qt\qscintilla-2.4>mingw32-make
> cd Qt4 && qmake qscintilla.pro
> mingw32-make[1]: Entering directory `C:/Lang/qt/qscintilla-2.4/Qt4'
> mingw32-make -f Makefile.Release
> mingw32-make[2]: Entering directory `C:/Lang/qt/qscintilla-2.4/Qt4'
> g++ -c -O3 -march=pentium3 -mtune=pentium3 -w -frtti -fexceptions 
> -mthreads -DQS
> CINTILLA_MAKE_DLL -DQT -DSCI_LEXER -DQT_THREAD_SUPPORT -DQT_DLL 
> -DQT_NO_DEBUG -D
> QT_GUI_LIB -DQT_CORE_LIB -I'../../qt4.5.1/include/QtCore' 
> -I'../../qt4.5.1/inclu
> de/QtGui' -I'../../qt4.5.1/include' -I'.' -I'../include' -I'../src' 
> -I'../../qt4
> .5.1/include/ActiveQt' -I'release' -I'.' -I'../../qt4/mkspecs/win32-g++' 
> -o rele
> ase/qscilexercustom.o qscilexercustom.cpp
> In file included from qscilexercustom.cpp:36:
> Qsci/qscilexercustom.h:107: error: `QsciScintilla' has not been declared
> Qsci/qscilexercustom.h:107: error: ISO C++ forbids declaration of 
> `editor' with
> no type
> qscilexercustom.cpp: In member function `void 
> QsciLexerCustom::startStyling(int,
>   int)':
> qscilexercustom.cpp:59: error: `editor' was not declared in this scope
> qscilexercustom.cpp:65: error: `editor' was not declared in this scope
> qscilexercustom.cpp: In member function `void 
> QsciLexerCustom::setStyling(int, i
> nt)':
> qscilexercustom.cpp:73: error: `editor' was not declared in this scope
> qscilexercustom.cpp:76: error: `editor' was not declared in this scope
> qscilexercustom.cpp: At global scope:
> qscilexercustom.cpp:89: error: prototype for `void 
> QsciLexerCustom::setEditor(Qs
> ciScintilla*)' does not match any in class `QsciLexerCustom'
> Qsci/qscilexercustom.h:107: error: candidate is: virtual void 
> QsciLexerCustom::s
> etEditor(int*)
> qscilexercustom.cpp: In member function `void 
> QsciLexerCustom::setEditor(QsciSci
> ntilla*)':
> qscilexercustom.cpp:90: error: `editor' was not declared in this scope
> qscilexercustom.cpp:94: error: `setEditor' is not a member of `QsciLexer'
> qscilexercustom.cpp:96: error: `editor' was not declared in this scope
> qscilexercustom.cpp: In member function `void 
> QsciLexerCustom::handleStyleNeeded
> (int)':
> qscilexercustom.cpp:112: error: `editor' was not declared in this scope
> mingw32-make[2]: *** [release/qscilexercustom.o] Error 1
> mingw32-make[2]: Leaving directory `C:/Lang/qt/qscintilla-2.4/Qt4'
> mingw32-make[1]: *** [release] Error 2
> mingw32-make[1]: Leaving directory `C:/Lang/qt/qscintilla-2.4/Qt4'
> mingw32-make: *** [Qt4] Error 2

Hopefully fixed in tonight's snapshot.

Thanks,
Phil


More information about the PyQt mailing list