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. ---> Unable to compile and install QtQuick Desktop components
Forum Updated to NodeBB v4.3 + New Features

---> Unable to compile and install QtQuick Desktop components

Scheduled Pinned Locked Moved QML and Qt Quick
5 Posts 3 Posters 1.9k 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.
  • S Offline
    S Offline
    sunsina
    wrote on last edited by
    #1

    I was trying to learn and practice the "QtDD12 - Desktop Components for QtQuick" video available on youtube.
    I followed the linked provided with the video clip and I realised that I have to download the slides and then extra project file from "https://qt.gitorious.org/qt/qtquickcontrols/source/":https://qt.gitorious.org/qt/qtquickcontrols/source/"
    and then :
    run qmake
    make install

    My attempt to build and install the project was unsuccessful due to compilation errors.
    I am using Qt 5.1.1 on my MAC OSX 10.8.5 (64-bit) machine using clang-64.

    I got following compilation errors:
    *qt-qtquickcontrols/src/controls/Private/qquickwheelarea.cpp:82:28: error: no member named 'ScrollBegin' in namespace 'Qt'
    if (we->phase() == Qt::ScrollBegin)
    ~~~~^
    /qt-qtquickcontrols/src/controls/Private/qquickwheelarea.cpp:84:18: error: no member named 'phase' in 'QWheelEvent'
    else if (we->phase() == Qt::ScrollEnd)
    ~~ ^
    /Users/sina/Desktop/LearningQt/QML/Online Tutorial/QML Tutorial 2-QML Desktop Design Components/qt-qtquickcontrols/src/controls/Private/qquickwheelarea.cpp:84:33: error: no member named 'ScrollEnd' in namespace 'Qt'
    else if (we->phase() == Qt::ScrollEnd)
    ~~~~^
    4 errors generated.
    make[3]: *** [.obj/debug-shared/qquickwheelarea.o] Error 1
    make[2]: *** [debug-all] Error 2
    make[1]: *** [sub-controls-make_first] Error 2
    make: *** [sub-src-make_first] Error 2
    22:54:14: The process "/usr/bin/make" exited with code 2.
    Error while building/deploying project qtquickcontrols (kit: Desktop Qt 5.1.1 clang 64bit)
    When executing step 'Make' *

    I do not know if there is a pre-built version so I could install and use them otherwise how can I solve the compilation issues
    Thanks

    1 Reply Last reply
    0
    • JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      Hi,

      You don't have to build the module yourself, or even install anything extra. The desktop components are now called "Qt Quick Controls", and are already included in Qt 5.1.

      You can find the relevant documentation at http://qt-project.org/doc/qt-5.1/qtquickcontrols/qtquickcontrols-overview.html

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      0
      • S Offline
        S Offline
        sunsina
        wrote on last edited by
        #3

        Thanks for your reply
        I have a question on where can I find the youtube video clip example files (I mean the project files related to Spotify)

        I tried to build and run the examples coming with the GIT project files which I downloaded and I still get following errors:

        QQmlApplicationEngine failed to load component
        qrc:/main.qml:47 module "QtQuick.Controls" version 1.1 is not installed

        Error: Your root item has to be a Window.

        How can I fix the issue?
        Thanks

        1 Reply Last reply
        0
        • J Offline
          J Offline
          Jens
          wrote on last edited by
          #4

          Yes, you do not have to build Qt Quick Controls yourself when you are using Qt 5.1 as it is included. Note that the demo given was using unreleased code and is unlikely to work unmodified with the released version of Qt Quick Controls as some of the API changed prior to release.

          If you are looking for the spotify backend, you can find the complete spotify client (including Qt Quick Controls UI) in this repository:
          https://gitorious.org/qtify

          But in order to use it you will need a valid spotify subscription and apply for an application token and a developer account at https://developer.spotify.com/technologies/libspotify/

          1 Reply Last reply
          0
          • J Offline
            J Offline
            Jens
            wrote on last edited by
            #5

            Note that the error you are seeing seems related to the fact that you are using Qt Quick Controls 1.1 (from Qt 5.2 development branch) with an older version of qt. This is not in that repository so I don't know what you are referring to.

            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