Details
Description
configured Qt to install to a local user writable directory with --prefix=/home/dev/qt/qt-5.6.0
on running make install
the webview example is attempting to install to /opt/
thus ending the install with an error. as a normal user I don't have permission to write to /opt
make[2]: Entering directory `/home/dev/qt/qt-build-560/qtwebview/examples' cd webview/ && ( test -e Makefile || /home/dev/qt/qt-build-560/qtbase/bin/qmake /home/dev/qt/qt-5.6.0/qtwebview/examples/webview/webview.pro -o Makefile ) && make -f Makefile install make[3]: Entering directory `/home/dev/qt/qt-build-560/qtwebview/examples/webview' cd minibrowser/ && ( test -e Makefile || /home/dev/qt/qt-build-560/qtbase/bin/qmake /home/dev/qt/qt-5.6.0/qtwebview/examples/webview/minibrowser/minibrowser.pro -o Makefile ) && make -f Makefile install make[4]: Entering directory `/home/dev/qt/qt-build-560/qtwebview/examples/webview/minibrowser' mkdir: cannot create directory `/opt/minibrowser': Permission denied make[4]: *** [install_target] Error 1 make[4]: Leaving directory `/home/dev/qt/qt-build-560/qtwebview/examples/webview/minibrowser' make[3]: *** [sub-minibrowser-install_subtargets] Error 2 make[3]: Leaving directory `/home/dev/qt/qt-build-560/qtwebview/examples/webview' make[2]: *** [sub-webview-install_subtargets] Error 2 make[2]: Leaving directory `/home/dev/qt/qt-build-560/qtwebview/examples' make[1]: *** [sub-examples-install_subtargets] Error 2 make[1]: Leaving directory `/home/dev/qt/qt-build-560/qtwebview' make: *** [module-qtwebview-install_subtargets] Error 2
the deployment.pri file
android-no-sdk { target.path = /data/user/qt export(target.path) INSTALLS += target } else:android { x86 { target.path = /libs/x86 } else: armeabi-v7a { target.path = /libs/armeabi-v7a } else { target.path = /libs/armeabi } export(target.path) INSTALLS += target } else:unix { isEmpty(target.path) { qnx { target.path = /tmp/$${TARGET}/bin } else { target.path = /opt/$${TARGET}/bin } export(target.path) } INSTALLS += target } export(INSTALLS)
Attachments
For Gerrit Dashboard: QTBUG-49431 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
141107,2 | Remove deployment.pri from the minibrowser example | 5.6 | qt/qtwebview | Status: MERGED | +2 | 0 |