[PyQt] Error when build QScintilla
Alexandr N Zamaraev
tonal at promsoft.ru
Wed May 27 08:04:56 BST 2009
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
I write simple makefile for build and install QScintilla
-------------- next part --------------
all: Qt4 Python designer-Qt4 example-Qt4
Qt4:
cd Qt4 && qmake qscintilla.pro
@$(MAKE) -j3 -C Qt4
Python:
cd Python && python configure.py
@$(MAKE) -j3 -C Python
designer-Qt4:
cd designer-Qt4 && qmake designer.pro
@$(MAKE) -j3 -C designer-Qt4
example-Qt4:
cd example-Qt4 && qmake application.pro
@$(MAKE) -j3 -C example-Qt4
Qt4-install: Qt4
@$(MAKE) -j3 -C Qt4 install
Python-install: Python
@$(MAKE) -j3 -C Python install
designer-Qt4-install: designer-Qt4
@$(MAKE) -j3 -C designer-Qt4 install
install: Qt4-install Python-install designer-Qt4-install
.PHONY: \
all Qt4 Python designer-Qt4 example-Qt4 \
install Qt4-install Python-install designer-Qt4-install
More information about the PyQt
mailing list