Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Can't run Qt5 Launch Demo on OSX Mountain Lion
Forum Updated to NodeBB v4.3 + New Features

Can't run Qt5 Launch Demo on OSX Mountain Lion

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 3 Posters 3.1k 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.
  • T Offline
    T Offline
    tshead
    wrote on last edited by
    #1

    I've installed the Qt5 binaries for OSX and cloned the Qt5 launch demo using git. I'm able to create a new QtQuick 2.0 project in creator and run it. However, when I load the Qt5 launch demo project in creator, and run it with QMLViewer, I get

    @Starting /Users/tshead/Qt5.0.0/5.0.0/clang_64/bin/QMLViewer.app/Contents/MacOS/QMLViewer /Users/tshead/src/qt5-launch-demo/main.qml
    Qml debugging is enabled. Only use this in a safe environment!
    file:///Users/tshead/src/qt5-launch-demo/main.qml:41:1: Type DemoMain unavailable
    DemoMain {
    ^
    file:///Users/tshead/src/qt5-launch-demo/DemoMain.qml:42:1: module "QtQuick" version 2.0 is not installed
    import QtQuick 2.0
    ^ @

    and an empty window. If I run it with QMLScene, I get

    @Starting /Users/tshead/Qt5.0.0/5.0.0/clang_64/bin/qmlscene /Users/tshead/src/qt5-launch-demo/main.qml
    file:///Users/tshead/src/qt5-launch-demo/main.qml:41 Type DemoMain unavailable
    file:///Users/tshead/src/qt5-launch-demo/DemoMain.qml:121 Type SlideDeck unavailable
    file:///Users/tshead/src/qt5-launch-demo/SlideDeck.qml:45 module "Qt.labs.presentation" is not installed

    /Users/tshead/Qt5.0.0/5.0.0/clang_64/bin/qmlscene exited with code 255@

    and no window at all. I assume this is a configuration issue somewhere, but am new to QML. Any suggestions?

    Many thanks,
    Tim

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      QMLViewer is for QtQuick1, IIRC. Please read the README in the Launch Demo - it asks to use qmlscene + presentation system.

      (Z(:^

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

        Hi Tim,

        I had a very similar issue when trying to run qt5 launch demo with qmlscene. Try downloading the source code of qml presentation (git clone https://git.gitorious.org/qt-labs/qml-presentation-system.git ), then go to the qml-presentation-system directory and type make install. This solved my problem :)

        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