Bug#876704: qt4-demos: QML examples in qt4-demos fail to run, /qmlapplicationviewer in wrong location
Package: qt4-demos
Version: 4:4.8.7+dfsg-11
Severity: normal
Dear Maintainer,
Open a qt4 QML demo in QT creator (notably the Dial Control but happens with other examples too)
fails with tne message:
Could not copy file "/usr/share/qt4/doc/html/helper/qmlapplicationviewer" to
"/home/user/dialcontrol/qmlapplicationviewer"
The real location of the requested directory and files is:
/usr/lib/qt4/demos/helper/qmlappicationviewer
Clearly the above location must be changed.
Copying the directory with to:
/home/user/dialcontrol/
Solves the main problem. But the example won't run either unless you change in main.cpp
the line:
viewer.setMainQmlFile(QLatin1String("/qml/dialcontrol/dialcontrol.qml"));
to:
viewer.setMainQmlFile(QLatin1String("/dialcontrol/qml/dialcontrol/dialcontrol.qml"));
Very frustrating for someone who is trying to learn qt.
I have no idea if the same happens with qt5-demos
*** End of the template - remove these template lines ***
-- System Information:
Debian Release: 9.1
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.9.0-3-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages qt4-demos depends on:
ii libc6 2.24-11+deb9u1
ii libgcc1 1:6.3.0-18
ii libgl1-mesa-glx [libgl1] 13.0.6-1+b2
ii libphonon4 4:4.9.0-4
ii libqt4-declarative 4:4.8.7+dfsg-11
ii libqt4-designer 4:4.8.7+dfsg-11
ii libqt4-help 4:4.8.7+dfsg-11
ii libqt4-network 4:4.8.7+dfsg-11
ii libqt4-opengl 4:4.8.7+dfsg-11
ii libqt4-script 4:4.8.7+dfsg-11
ii libqt4-scripttools 4:4.8.7+dfsg-11
ii libqt4-sql 4:4.8.7+dfsg-11
ii libqt4-svg 4:4.8.7+dfsg-11
ii libqt4-test 4:4.8.7+dfsg-11
ii libqt4-xml 4:4.8.7+dfsg-11
ii libqt4-xmlpatterns 4:4.8.7+dfsg-11
ii libqtcore4 4:4.8.7+dfsg-11
ii libqtdbus4 4:4.8.7+dfsg-11
ii libqtgui4 4:4.8.7+dfsg-11
ii libstdc++6 6.3.0-18
Versions of packages qt4-demos recommends:
ii libqt4-declarative-gestures 4:4.8.7+dfsg-11
ii libqt4-declarative-particles 4:4.8.7+dfsg-11
ii qt4-dev-tools 4:4.8.7+dfsg-11
ii qt4-doc 4:4.8.7+dfsg-11
Versions of packages qt4-demos suggests:
ii qt4-qmlviewer 4:4.8.7+dfsg-11
-- no debconf information
Reply to: