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

Sometimes INSTALL_ROOT is undefined in Makefile

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.7.0 Beta
    • Build System
    • None

      I noticed several times such errors but I don't know how to reproduce it. I am using -prefix option to build Qt.

      make[3]: Leaving directory '/home/scratch/sources/qt5/qt-57-build-android/qttools/src/qdoc'
      cd qtplugininfo/ && ( test -e Makefile || /home/scratch/sources/qt5/qt-57-build-android/qtbase/bin/qmake /home/scratch/sources/qt5/qt5-git/qttools/src/qtplugininfo/qtplugininfo.pro -qtconf /home/scratch/sources/qt5/qt-57-build-android/qtbase/bin/qt.conf -o Makefile ) && make -f Makefile install
      
      make[3]: Entering directory '/home/scratch/sources/qt5/qt-57-build-android/qttools/src/qtplugininfo'
      
      mkdir: cannot create directory ‘/libs’: Permission denied
      
      Makefile:1025: recipe for target 'install_target' failed
      make[3]: *** [install_target] Error 1
      make[3]: Leaving directory '/home/scratch/sources/qt5/qt-57-build-android/qttools/src/qtplugininfo'
      Makefile:211: recipe for target 'sub-qtplugininfo-install_subtargets' failed
      make[2]: *** [sub-qtplugininfo-install_subtargets] Error 2
      make[2]: Leaving directory '/home/scratch/sources/qt5/qt-57-build-android/qttools/src'
      Makefile:56: recipe for target 'sub-src-install_subtargets' failed
      make[1]: *** [sub-src-install_subtargets] Error 2
      make[1]: Leaving directory '/home/scratch/sources/qt5/qt-57-build-android/qttools'
      Makefile:841: recipe for target 'module-qttools-install_subtargets' failed
      make: *** [module-qttools-install_subtargets] Error 2
      

      The reason is the INSTALL_ROOT variable is undefined in the Makefile, which leads to
      an install path to root directory :

      install_target: first FORCE
              @test -d $(INSTALL_ROOT)/libs/armeabi-v7a/ || mkdir -p $(INSTALL_ROOT)/libs/armeabi-v7a/
              -$(INSTALL_PROGRAM) ../../bin/$(QMAKE_TARGET) $(INSTALL_ROOT)/libs/armeabi-v7a/$(QMAKE_TARGET)
      

      Attached qttools/src/qtplugininfo/Makefile

        1. Makefile-bug
          88 kB
          fabrice salvaire
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            buddenha Oswald Buddenhagen
            fabricesalvaire fabrice salvaire
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes