Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. [Solved]Some QML undefined reference to "Q..." errors
Forum Updated to NodeBB v4.3 + New Features

[Solved]Some QML undefined reference to "Q..." errors

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 2 Posters 5.6k Views 1 Watching
  • 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.
  • D Offline
    D Offline
    demonking
    wrote on last edited by
    #1

    Hello guys, i hope someone could help me.

    i'm new at qml so i hope someone could help me . :)

    I'm testing the calling function example of this link "here":http://doc.qt.digia.com/4.7-snapshot/qtbinding.html
    But after i compile i get some undefined references so it means, that i have forget to link some libraries, but which one
    i have forget?
    Google couldn't help me.

    Here my errors

    @
    main.cpp:(.text+0x1f): undefined reference to QDeclarativeEngine::QDeclarativeEngine(QObject*)' main.cpp:(.text+0x56): undefined reference to QDeclarativeComponent::QDeclarativeComponent(QDeclarativeEngine*, QString const&, QObject*)'
    make: Leaving directory /home/demonking/Development/QML/Project' main.cpp:(.text+0x76): undefined reference to QDeclarativeComponent::create(QDeclarativeContext*)'
    main.cpp:(.text+0x3f9): undefined reference to QDeclarativeComponent::~QDeclarativeComponent()' main.cpp:(.text+0x401): undefined reference to QDeclarativeEngine::~QDeclarativeEngine()'
    main.cpp:(.text+0x578): undefined reference to QDeclarativeComponent::~QDeclarativeComponent()' main.cpp:(.text+0x580): undefined reference to QDeclarativeEngine::~QDeclarativeEngine()'
    @

    I'm working on linux and using the qt-creator 2.5.2 with qt 4.8.2

    1 Reply Last reply
    0
    • G Offline
      G Offline
      guziemic
      wrote on last edited by
      #2

      Did you add
      @
      QT += declarative
      @

      in .pro file?

      1 Reply Last reply
      0
      • D Offline
        D Offline
        demonking
        wrote on last edited by
        #3

        Ah, thx a lot :)
        I haven't seen that i have missed the line

        1 Reply Last reply
        0
        • G Offline
          G Offline
          guziemic
          wrote on last edited by
          #4

          Please add [solved] to topic of post, so other user will know that problem was solved :)

          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