Results 1 to 2 of 2

Thread: Build error on mac Platform::WaitMouseMoved

  1. #1
    Join Date
    May 2006
    Posts
    788
    Thanks
    49
    Thanked 48 Times in 46 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Build error on mac Platform::WaitMouseMoved

    I work on a new XHTML Wysiwyg + Source editor

    inside i use qscintilla http://www.riverbankcomputing.co.uk/...illa/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



    Qt Code:
    1. QViScintilla::QViScintilla( QWidget* parent )
    2. : QsciScintilla(parent)
    3. {
    4. fontsize = 12;
    5. numerobase = 0;
    6. QFont font;
    7. font.setFamily(QString::fromUtf8("Arial"));
    8. font.setPointSize(fontsize);
    9. setFont(font);
    10. setPaper(QColor("#fbffcb"));
    11. setIndentationGuidesBackgroundColor(QColor("#e6e6de"));
    12. setAutoCompletionThreshold(2);
    13. setFolding(QsciScintilla::BoxedFoldStyle);;
    14. setMarginLineNumbers(1,true);
    15. setAutoCompletionFillupsEnabled(true);
    16. setAutoCompletionSource(QsciScintilla::AcsAll);
    17. setCaretWidth(10);
    18. setCaretLineBackgroundColor(QColor("#e6fff0"));
    19. setCaretLineVisible(true);
    20. ensureLineVisible(1);
    21. setUtf8(true);
    22. setWhitespaceVisibility(QsciScintilla::WsVisible);
    23. QsciLexerHTML *htmllex = new QsciLexerHTML(this);
    24. setLexer(htmllex);
    25. shortcut1 = new QShortcut(QKeySequence("Ctrl+S"),this);
    26. model = PAGER_LOADING_FUNCTIONS; /* start on tmp mode typedef set after connect run */
    27. connect(shortcut1, SIGNAL(activated()),this, SLOT(SaveCurrentDoc()));
    28. /////////connect(this, SIGNAL(textChanged()),this, SLOT(UpdateParent()));
    29. shortcut7 = new QShortcut(QKeySequence::ZoomOut,this); /* CTRL- */
    30. shortcut8 = new QShortcut(QKeySequence::ZoomIn,this); /* CTRL+ */
    31. connect(shortcut7, SIGNAL(activated()),this, SLOT(Decreasefont()));
    32. connect(shortcut8, SIGNAL(activated()),this, SLOT(Increasefont()));
    33. }
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    May 2006
    Posts
    788
    Thanks
    49
    Thanked 48 Times in 46 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Build error on mac Platform::WaitMouseMoved

    I solved self... i put comment on file /src/Editor.cpp from qscintilla

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


    Qt Code:
    1. /* line 5106 */
    2. #ifdef __APPLE__
    3. // we need to additionaly check if the mouse moved before we
    4. // decide that we can in fact start a drag session. Currently
    5. // only OSX will return anything but true.
    6. /////////if (inDragDrop == ddInitial && !Platform::WaitMouseMoved(pt)) {
    7. ///////////inDragDrop = ddNone;
    8. ///////////}
    9. #endif
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. QWT fails in debug build
    By steg90 in forum Qwt
    Replies: 1
    Last Post: 11th November 2011, 07:53
  2. .png not displayed with release build
    By mnemonic_fx in forum Qt Tools
    Replies: 1
    Last Post: 5th July 2007, 10:41
  3. Build rules: Please assist
    By locus in forum General Programming
    Replies: 1
    Last Post: 4th April 2007, 08:15
  4. Using qmake to build multiple apps and libs
    By marchand in forum Newbie
    Replies: 2
    Last Post: 12th June 2006, 18:33
  5. QMAKE: Specifying Build Dependencies
    By JohnSuykerbuyk in forum Qt Programming
    Replies: 1
    Last Post: 5th May 2006, 10:46

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.