[Solved] Awesome QML Presentation Code won't build or run on Linux or Mac
-
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 directoryI 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
-
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)
-
I am using Qt version 5.3.1 and I compiled it from source using prefix=/usr
-
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
-
Would this be the reason why it wants to install in:
/usr/qml/Qt/labs/presentation/qmldir -
It is, yes
-
Thanks, I have got the Awesome Presentation Code working now.
Peace.
-
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 :)