Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-49431

web view example minibrowser hard coded to install to /opt

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.6.0 RC, 5.6.0
    • 5.6.0 Beta
    • WebView
    • None
    • CentOS 6.6
    • 356c60f2aaf7881f08a07aaf38bece8bbaa39d8d

    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

        Activity

          People

            stromme Christian
            warnold Wayne Arnold
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes