[QScintilla] Build and install QScintilla2
jj zh
zhjjvmd at gmail.com
Wed Jan 13 12:40:12 GMT 2010
Dear all,
Today I want to install QScintilla2 package on my Linux machine due to
requirement by other package. I have installed Qt 4.6
(qt-sdk-linux-x86-opensource-2009.05.bin) already. After download and untar
the source bar "QScintilla-gpl-2.4.tar.gz", I tried to install it by
following commands:
cd Qt4
qmake qscintilla.pro
make
make install
However, the compiling process was terminated accompanying with some errors
as shown in attached document. I'm a newbie of linux, I really have no idea
about these errors, would you give me some advice about my problem? Thanks
in advance!
Best regards,
Damien
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/qscintilla/attachments/20100113/5737d554/attachment.html>
-------------- next part --------------
[junjiz3k at junjiz3k Qt4]$ qmake qscintilla.pro
[junjiz3k at junjiz3k Qt4]$ make
g++ -c -pipe -w -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -D_REENTRANT -fPIC -DQSCINTILLA_MAKE_DLL -DQT -DSCI_LEXER -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -I/usr/lib/qt-3.3/mkspecs/default -I. -I. -I../include -I../src -I/usr/lib/qt-3.3/include -o qsciscintilla.o qsciscintilla.cpp
In file included from qsciscintilla.cpp:38:
Qsci/qsciscintilla.h:47:22: error: QByteArray: No such file or directory
Qsci/qsciscintilla.h:48:17: error: QList: No such file or directory
Qsci/qsciscintilla.h:49:20: error: QPointer: No such file or directory
In file included from Qsci/qsciscintilla.h:53,
from qsciscintilla.cpp:38:
./Qsci/qsciscintillabase.h:45:31: error: QAbstractScrollArea: No such file or directory
./Qsci/qsciscintillabase.h:75: error: expected class-name before ?{? token
./Qsci/qsciscintillabase.h:2736: error: ?QInputMethodEvent? has not been declared
Qsci/qsciscintilla.h:1516: error: ?class Qt::KeyboardModifiers? has not been declared
Qsci/qsciscintilla.h:1653: error: ISO C++ forbids declaration of ?QPointer? with no type
Qsci/qsciscintilla.h:1653: error: expected ?;? before ?<? token
Qsci/qsciscintilla.h:1656: error: field ?nl_text_colour? has incomplete type
Qsci/qsciscintilla.h:1657: error: field ?nl_paper_colour? has incomplete type
qsciscintilla.cpp: In constructor ?QsciScintilla::QsciScintilla(QWidget*)?:
qsciscintilla.cpp:79: error: invalid conversion from ?const char*? to ?int?
qsciscintilla.cpp:79: error: initializing argument 1 of ?QMemArray<type>::QMemArray(int) [with type = char]?
qsciscintilla.cpp:82: error: ?connect? was not declared in this scope
qsciscintilla.cpp:110: error: ?class QPalette? has no member named ?text?
qsciscintilla.cpp:111: error: ?class QPalette? has no member named ?base?
qsciscintilla.cpp: In member function ?QColor QsciScintilla::color() const?:
qsciscintilla.cpp:156: error: ?nl_text_colour? was not declared in this scope
qsciscintilla.cpp: In member function ?virtual void QsciScintilla::setColor(const QColor&)?:
qsciscintilla.cpp:163: error: ?lex? was not declared in this scope
qsciscintilla.cpp:168: error: ?nl_text_colour? was not declared in this scope
qsciscintilla.cpp: In member function ?QColor QsciScintilla::paper() const?:
qsciscintilla.cpp:176: error: ?nl_paper_colour? was not declared in this scope
qsciscintilla.cpp: In member function ?virtual void QsciScintilla::setPaper(const QColor&)?:
qsciscintilla.cpp:183: error: ?lex? was not declared in this scope
qsciscintilla.cpp:190: error: ?nl_paper_colour? was not declared in this scope
qsciscintilla.cpp: In member function ?void QsciScintilla::setFont(const QFont&)?:
qsciscintilla.cpp:198: error: ?lex? was not declared in this scope
qsciscintilla.cpp:203: error: cannot call member function ?virtual void QWidget::setFont(const QFont&)? without object
qsciscintilla.cpp: In member function ?void QsciScintilla::handleCharAdded(int)?:
qsciscintilla.cpp:247: error: ?lex? was not declared in this scope
qsciscintilla.cpp:252: error: ?lex? was not declared in this scope
qsciscintilla.cpp: In member function ?virtual void QsciScintilla::callTip()?:
qsciscintilla.cpp:276: error: ?lex? was not declared in this scope
qsciscintilla.cpp:340: error: ?class QStringList? has no member named ?mid?
qsciscintilla.cpp:351: error: invalid conversion from ?int*? to ?int?
qsciscintilla.cpp:365: error: no match for ?operator[]? in ?((QsciScintilla*)this)->QsciScintilla::ct_shifts[i]?
qsciscintilla.cpp:374: error: ?class QString? has no member named ?toLatin1?
qsciscintilla.cpp: In member function ?void QsciScintilla::handleCallTipClick(int)?:
qsciscintilla.cpp:444: error: no match for ?operator[]? in ?((QsciScintilla*)this)->QsciScintilla::ct_shifts[((QsciScintilla*)this)->QsciScintilla::ct_cursor]?
qsciscintilla.cpp:454: error: ?class QString? has no member named ?toLatin1?
qsciscintilla.cpp: In member function ?void QsciScintilla::startAutoCompletion(QsciScintilla::AutoCompletionSource, bool, bool)?:
qsciscintilla.cpp:658: error: ?class QByteArray? has no member named ?constData?
qsciscintilla.cpp:667: error: ?lex? was not declared in this scope
qsciscintilla.cpp:739: error: ?class QString? has no member named ?toLatin1?
qsciscintilla.cpp:740: error: ?class QByteArray? has no member named ?constData?
qsciscintilla.cpp: In member function ?void QsciScintilla::autoIndentation(char, long int)?:
qsciscintilla.cpp:777: error: ?lex? was not declared in this scope
qsciscintilla.cpp: In member function ?int QsciScintilla::blockIndent(int)?:
qsciscintilla.cpp:832: error: ?lex? was not declared in this scope
qsciscintilla.cpp:835: error: ?lex? was not declared in this scope
qsciscintilla.cpp: In member function ?QsciScintilla::IndentState QsciScintilla::getIndentState(int)?:
qsciscintilla.cpp:907: error: ?lex? was not declared in this scope
qsciscintilla.cpp: In member function ?virtual void QsciScintilla::setUtf8(bool)?:
qsciscintilla.cpp:1014: error: ?WA_InputMethodEnabled? is not a member of ?Qt?
qsciscintilla.cpp:1014: error: ?setAttribute? was not declared in this scope
qsciscintilla.cpp: In member function ?void QsciScintilla::foldClick(int, int)?:
qsciscintilla.cpp:1252: error: ?ShiftModifier? is not a member of ?Qt?
qsciscintilla.cpp:1253: error: ?ControlModifier? is not a member of ?Qt?
qsciscintilla.cpp: In member function ?int QsciScintilla::simpleFind()?:
qsciscintilla.cpp:1601: error: ?class QByteArray? has no member named ?constData?
qsciscintilla.cpp: In member function ?virtual void QsciScintilla::replace(const QString&)?:
qsciscintilla.cpp:1618: error: ?class QByteArray? has no member named ?constData?
qsciscintilla.cpp: In member function ?void QsciScintilla::handleMarginClick(int, int, int)?:
qsciscintilla.cpp:1650: error: ?ShiftModifier? is not a member of ?Qt?
qsciscintilla.cpp:1653: error: ?ControlModifier? is not a member of ?Qt?
qsciscintilla.cpp:1656: error: ?AltModifier? is not a member of ?Qt?
qsciscintilla.cpp:1663: error: ?KeyboardModifiers? is not a member of ?Qt?
qsciscintilla.cpp: In member function ?virtual void QsciScintilla::append(const QString&)?:
qsciscintilla.cpp:1820: error: ?class QByteArray? has no member named ?constData?
qsciscintilla.cpp: In member function ?void QsciScintilla::insertAtPos(const QString&, int)?:
qsciscintilla.cpp:1849: error: ?class QByteArray? has no member named ?constData?
qsciscintilla.cpp: In member function ?virtual void QsciScintilla::setText(const QString&)?:
qsciscintilla.cpp:1998: error: ?class QByteArray? has no member named ?constData?
qsciscintilla.cpp: In member function ?virtual void QsciScintilla::setIndentationGuides(bool)?:
qsciscintilla.cpp:2146: error: ?lex? was not declared in this scope
qsciscintilla.cpp: In member function ?void QsciScintilla::setMarginText(int, const QString&, int)?:
qsciscintilla.cpp:2269: error: ?class QByteArray? has no member named ?constData?
qsciscintilla.cpp: In member function ?void QsciScintilla::setMarginText(int, const QPtrList<QsciStyledText>&)?:
qsciscintilla.cpp:2296: error: ?class QByteArray? has no member named ?constData?
qsciscintilla.cpp: In member function ?virtual void QsciScintilla::setMarginWidth(int, const QString&)?:
qsciscintilla.cpp:2364: error: ?class QByteArray? has no member named ?constData?
qsciscintilla.cpp: In member function ?virtual void QsciScintilla::setLexer(QsciLexer*)?:
qsciscintilla.cpp:2665: error: ?lex? was not declared in this scope
qsciscintilla.cpp:2676: error: ?lex? was not declared in this scope
qsciscintilla.cpp:2688: error: ?connect? was not declared in this scope
qsciscintilla.cpp:2742: error: ?nl_text_colour? was not declared in this scope
qsciscintilla.cpp:2743: error: ?nl_paper_colour? was not declared in this scope
qsciscintilla.cpp: In member function ?void QsciScintilla::setLexerStyle(int)?:
qsciscintilla.cpp:2756: error: ?lex? was not declared in this scope
qsciscintilla.cpp: In member function ?QsciLexer* QsciScintilla::lexer() const?:
qsciscintilla.cpp:2766: error: ?lex? was not declared in this scope
qsciscintilla.cpp: In member function ?void QsciScintilla::handleStyleFontChange(const QFont&, int)?:
qsciscintilla.cpp:2789: error: ?lex? was not declared in this scope
qsciscintilla.cpp: In member function ?void QsciScintilla::setStylesFont(const QFont&, int)?:
qsciscintilla.cpp:2800: error: ?class QString? has no member named ?toAscii?
qsciscintilla.cpp: In member function ?long int QsciScintilla::checkBrace(long int, int, bool&)?:
qsciscintilla.cpp:2909: error: ?lex? was not declared in this scope
qsciscintilla.cpp: In member function ?bool QsciScintilla::findMatchingBrace(long int&, long int&, QsciScintilla::BraceMatch)?:
qsciscintilla.cpp:2937: error: ?lex? was not declared in this scope
qsciscintilla.cpp: In member function ?QByteArray QsciScintilla::convertTextQ2S(const QString&) const?:
qsciscintilla.cpp:3084: error: ?const class QString? has no member named ?toUtf8?
qsciscintilla.cpp:3086: error: ?const class QString? has no member named ?toLatin1?
qsciscintilla.cpp: In member function ?void QsciScintilla::setAutoCompletionWordSeparators(const QStringList&)?:
qsciscintilla.cpp:3107: error: ?lex? was not declared in this scope
qsciscintilla.cpp: In member function ?void QsciScintilla::setAutoCompletionFillupsEnabled(bool)?:
qsciscintilla.cpp:3175: error: ?lex? was not declared in this scope
qsciscintilla.cpp: In member function ?void QsciScintilla::setAutoCompletionFillups(const char*)?:
qsciscintilla.cpp:3196: error: invalid conversion from ?const char*? to ?int?
qsciscintilla.cpp:3196: error: initializing argument 1 of ?QMemArray<type>::QMemArray(int) [with type = char]?
qsciscintilla.cpp: In member function ?virtual void QsciScintilla::setAutoCompletionCaseSensitivity(bool)?:
qsciscintilla.cpp:3204: error: ?lex? was not declared in this scope
qsciscintilla.cpp: In member function ?void QsciScintilla::handleAutoCompletionSelection()?:
qsciscintilla.cpp:3313: error: ?lex? was not declared in this scope
qsciscintilla.cpp: In member function ?void QsciScintilla::showUserList(int, const QStringList&)?:
qsciscintilla.cpp:3332: error: ?class QString? has no member named ?toLatin1?
qsciscintilla.cpp: In member function ?bool QsciScintilla::caseSensitive() const?:
qsciscintilla.cpp:3346: error: ?lex? was not declared in this scope
qsciscintilla.cpp: In member function ?bool QsciScintilla::read(QIODevice*)?:
qsciscintilla.cpp:3369: error: ?qint64? was not declared in this scope
qsciscintilla.cpp:3369: error: expected `;' before ?part?
qsciscintilla.cpp:3386: error: ?part? was not declared in this scope
qsciscintilla.cpp:3386: error: ?class QIODevice? has no member named ?read?
qsciscintilla.cpp:3390: error: ?part? was not declared in this scope
qsciscintilla.cpp: In member function ?bool QsciScintilla::write(QIODevice*) const?:
qsciscintilla.cpp:3422: error: ?qint64? was not declared in this scope
qsciscintilla.cpp:3422: error: expected `;' before ?part?
qsciscintilla.cpp:3424: error: ?part? was not declared in this scope
qsciscintilla.cpp:3427: error: ?part? was not declared in this scope
qsciscintilla.cpp: In member function ?void QsciScintilla::annotate(int, const QString&, int)?:
qsciscintilla.cpp:3491: error: ?class QByteArray? has no member named ?constData?
qsciscintilla.cpp: In member function ?void QsciScintilla::annotate(int, const QPtrList<QsciStyledText>&)?:
qsciscintilla.cpp:3531: error: ?class QByteArray? has no member named ?constData?
qsciscintilla.cpp: In member function ?QByteArray QsciScintilla::styleText(const QPtrList<QsciStyledText>&, char**, int)?:
qsciscintilla.cpp:3561: error: no match for ?operator[]? in ?styled_text[i]?
qsciscintilla.cpp:3573: error: no match for ?operator[]? in ?styled_text[i]?
make: *** [qsciscintilla.o] Error 1
More information about the QScintilla
mailing list