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. Using QtDeclarative

Using QtDeclarative

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 2 Posters 3.5k 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.
  • T Offline
    T Offline
    THuNaS
    wrote on last edited by
    #1

    Hi guys,

    I'm trying to use QtDeclarative within my project, but as soon as I include it on the .pro file and try to build it I get the following error:

    :: error: cannot find -lQtDeclarative
    :: error: collect2: ld returned 1 exit status

    Here is my .pro file entry to use Qt Declarative:

    QT += core gui phonon declarative

    I run it under QtCreator 2.0.1.

    Does anybody have any idea why I am not able to use it?
    It may look somehow to obvious for many of you but I couldn't find out why yet.

    Thanks

    1 Reply Last reply
    0
    • B Offline
      B Offline
      baysmith
      wrote on last edited by
      #2

      What you have done is correct. There must be something else wrong. Perhaps it is accessing an earlier version (<4.7) of Qt, the Qt installation is bad, etc.

      Nokia Certified Qt Specialist.

      1 Reply Last reply
      0
      • T Offline
        T Offline
        THuNaS
        wrote on last edited by
        #3

        There was no previous Qt Creator installed in my system. Is there any way to download the declarative module and then install it?
        I believe this module was supposed to come with Qt Creator, like the phonon module - which works, by the way.
        :(

        1 Reply Last reply
        0
        • B Offline
          B Offline
          baysmith
          wrote on last edited by
          #4

          You can get the latest Qt SDK from http://qt.nokia.com/downloads

          Nokia Certified Qt Specialist.

          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