Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [Solved] Awesome QML Presentation Code won't build or run on Linux or Mac
Qt 6.11 is out! See what's new in the release blog

[Solved] Awesome QML Presentation Code won't build or run on Linux or Mac

Scheduled Pinned Locked Moved General and Desktop
8 Posts 2 Posters 4.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.
  • D Offline
    D Offline
    drewpotter
    wrote on last edited by
    #1

    Dear All,

    I have discovered this amazing QML Presentation code, mentioned on the Qt blog:
    http://blog.qt.digia.com/blog/2011/05/30/a-qml-presentation-system/

    The code is here:
    https://qt.gitorious.org/qt-labs/qml-presentation-system/source/653149a7cd455f2619af2bd54280eebecef87ea4:

    When I try and follow the instructions to run 'make install' I just get some errors:

    $ qmake
    Info: creating stash file /Users/denisepotter/Downloads/qt-labs-qml-presentation-system/.qmake.stash

    $ make
    cd src/ && ( test -e Makefile || /usr/bin/qmake /Users/denisepotter/Downloads/qt-labs-qml-presentation-system/src/src.pro -o Makefile ) && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile
    WARNING: qmlfiles2build: Cannot access directory '/usr/qml/Qt/labs/presentation'
    WARNING: qmlfiles2build: Cannot access directory '/usr/qml/Qt/labs/presentation'
    WARNING: qmlfiles2build: Cannot access directory '/usr/qml/Qt/labs/presentation'
    WARNING: qmlfiles2build: Cannot access directory '/usr/qml/Qt/labs/presentation'
    WARNING: qmlfiles2build: Cannot access directory '/usr/qml/Qt/labs/presentation'
    WARNING: qmlfiles2build: Cannot access directory '/usr/qml/Qt/labs/presentation'
    cp -f qmldir /usr/qml/Qt/labs/presentation/qmldir
    cp: /usr/qml/Qt/labs/presentation/qmldir: No such file or directory

    I would love to use this code in my App to have amazing presentations but I am stuck with regards to getting this example up and running.

    Any help would be greatly appreciated,

    Drew

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Which version of Qt are you running ? And how did you install it ?

      The error comes from the fact that your are trying to copy files and folder in the /usr folder which you don't have write access to (it's normal)

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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

        I am using Qt version 5.3.1 and I compiled it from source using prefix=/usr

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          That what I would call a Bad Idea (™)

          You could be overwriting your distribution provided Qt with that.

          Either use a prefix like /usr/local/, /opt/local/, a folder in your home directory or just the default but not /usr

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • D Offline
            D Offline
            drewpotter
            wrote on last edited by
            #5

            Would this be the reason why it wants to install in:
            /usr/qml/Qt/labs/presentation/qmldir

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              It is, yes

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • D Offline
                D Offline
                drewpotter
                wrote on last edited by
                #7

                Thanks, I have got the Awesome Presentation Code working now.

                Peace.

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  You're welcome !

                  Now you have it working, please update the thread title prepending [solved] so other forum users may know a solution has been found :)

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  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