PDA

View Full Version : Build error on mac Platform::WaitMouseMoved



patrik08
12th July 2007, 12:36
I work on a new XHTML Wysiwyg + Source editor

inside i use qscintilla http://www.riverbankcomputing.co.uk/qscintilla/index.php

on Window i can build & run, on mac (Tiger) no why?
i not use WaitMouseMoved maybe libs?




c++ -headerpad_max_install_names -o xx.app/Contents/MacOS/xx build/.obj/main.o build/.obj/html_edit_scite.o build/.obj/interface.o build/.obj/href_gui.o build/.obj/qvimedit.o build/.obj/table_setting.o build/.obj/moc_html_edit_scite.o build/.obj/moc_html_loader.o build/.obj/moc_interface.o build/.obj/moc_qvimedit.o build/.obj/moc_href_gui.o build/.obj/moc_table_setting.o build/.obj/qrc_attach.o -L/usr/local/Trolltech/Qt-4.4.0-snapshot-20070608/lib -lqscintilla2 -lQtSql -L/usr/local/mysql2arch/lib/mysql -L/Developer/qt/lib -liodbc -lQtXml -lQtGui -framework Carbon -framework AppKit -lQtNetwork -lssl -lcrypto -lQtCore -lmysqlclient_r -lz -lm -liconv -framework ApplicationServices
/usr/bin/ld: Undefined symbols:
Platform::WaitMouseMoved(Point)
collect2: ld returned 1 exit status
make: *** [xx.app/Contents/MacOS/xx] Error 1





QViScintilla::QViScintilla( QWidget* parent )
: QsciScintilla(parent)
{
fontsize = 12;
numerobase = 0;
QFont font;
font.setFamily(QString::fromUtf8("Arial"));
font.setPointSize(fontsize);
setFont(font);
setPaper(QColor("#fbffcb"));
setIndentationGuidesBackgroundColor(QColor("#e6e6de"));
setAutoCompletionThreshold(2);
setFolding(QsciScintilla::BoxedFoldStyle);;
setMarginLineNumbers(1,true);
setAutoCompletionFillupsEnabled(true);
setAutoCompletionSource(QsciScintilla::AcsAll);
setCaretWidth(10);
setCaretLineBackgroundColor(QColor("#e6fff0"));
setCaretLineVisible(true);
ensureLineVisible(1);
setUtf8(true);
setWhitespaceVisibility(QsciScintilla::WsVisible);
QsciLexerHTML *htmllex = new QsciLexerHTML(this);
setLexer(htmllex);
shortcut1 = new QShortcut(QKeySequence("Ctrl+S"),this);
model = PAGER_LOADING_FUNCTIONS; /* start on tmp mode typedef set after connect run */
connect(shortcut1, SIGNAL(activated()),this, SLOT(SaveCurrentDoc()));
/////////connect(this, SIGNAL(textChanged()),this, SLOT(UpdateParent()));
shortcut7 = new QShortcut(QKeySequence::ZoomOut,this); /* CTRL- */
shortcut8 = new QShortcut(QKeySequence::ZoomIn,this); /* CTRL+ */
connect(shortcut7, SIGNAL(activated()),this, SLOT(Decreasefont()));
connect(shortcut8, SIGNAL(activated()),this, SLOT(Increasefont()));
}

patrik08
12th July 2007, 13:18
I solved self... i put comment on file /src/Editor.cpp from qscintilla

http://www.nabble.com/__APPLE__-Macro-t3985808.html




/* line 5106 */
#ifdef __APPLE__
// we need to additionaly check if the mouse moved before we
// decide that we can in fact start a drag session. Currently
// only OSX will return anything but true.
/////////if (inDragDrop == ddInitial && !Platform::WaitMouseMoved(pt)) {
///////////inDragDrop = ddNone;
///////////}
#endif