Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Undefined symbol while using QDeclarativeView on Maemo

Undefined symbol while using QDeclarativeView on Maemo

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 2 Posters 3.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    a.v.mich
    wrote on last edited by
    #1

    Hi, while trying QML on Nokia N900, I have recieved this error:
    /opt/usr/bin/ID3Editor: symbol lookup error: /opt/usr/bin/ID3Editor: undefined symbol: _ZN16QDeclarativeView6engineEv.

    Following code:

    @ _qmlViewer = new QDeclarativeView(0);

    _qmlContext = _qmlViewer->engine()->rootContext();
    _qmlContext->setContextProperty("systemModel", _systemModel);

    _qmlViewer->setSource(QUrl("qrc:/qml/qml/ID3Editor.qml"));@

    The same thing while calling rootContext() directly from QDeclarativeView. What can I do now? Only wait for the PR1.3?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      anselmolsm
      wrote on last edited by
      #2

      We run QML on N900 often, double check if you are running your app with Qt 4.7 (the one in /opt/qt4-maemo5/) and not Qt 4.6 (the one in /usr/lib).

      Also, check if there's an update for Qt on your N900. How did you build it? Scratchbox, Nokia Qt SDK?

      EDIT: Qt 4.7 packages: libqt4-experimental-* (for the sake of completeness :-))

      Anselmo L. S. Melo (anselmolsm)

      1 Reply Last reply
      0
      • A Offline
        A Offline
        a.v.mich
        wrote on last edited by
        #3

        Did you tried setContextProperty?
        QDeclarativeView with QML without setContextProperty works excelent.
        [quote author="anselmolsm" date="1287743247"]How did you build it? Scratchbox, Nokia Qt SDK?

        EDIT: Qt 4.7 packages: libqt4-experimental-* (for the sake of completeness :-)) [/quote]

        I have follow this entry "http://labs.qt.nokia.com/2010/07/12/qt-47-for-the-n900-news/":http://labs.qt.nokia.com/2010/07/12/qt-47-for-the-n900-news/

        1 Reply Last reply
        0
        • A Offline
          A Offline
          anselmolsm
          wrote on last edited by
          #4

          [quote author="Aleksei Mikhailichenko" date="1287746081"]Did you tried setContextProperty?
          [/quote]

          Yes. Just tested again here, working nicely.

          This kind of error used to happen when the binary was created with a different version than the one installed on N900, due to internal changes in QtDeclarative during the development of Qt 4.7.

          Anselmo L. S. Melo (anselmolsm)

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved