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

Fails to install for platform android-g++

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.7.1
    • Build System
    • None
    • Linux.

      I'm trying to build Qt 5.7.1 from Linux for android-platform as described in the wiki.

      I invoke the build like this:

      $ ./configure -xplatform android-g++ \
      -prefix /home/markand/android/libqt \
      -confirm-license \
      -opensource \
      -nomake tests \
      -nomake examples \
      -android-ndk /home/markand/android/ndk \
      -android-sdk /home/markand/android \
      -android-ndk-host linux-x86_64 \
      -android-toolchain-version 4.9 \
      -skip qttranslations \
      -skip qtserialport \
      -no-warnings-are-errors
      $ make
      $ make install
      

      The build works fine but install fails with the following errors:

      cd qtplugininfo/ && ( test -e Makefile || /tmp/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qmake /tmp/qt-everywhere-opensource-src-5.7.1/qttools/src/qtplugininfo/qtplugininfo.pro -qtconf /tmp/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qt.conf -o Makefile ) && make -f Makefile install
      make[3]: Entering directory '/tmp/qt-everywhere-opensource-src-5.7.1/qttools/src/qtplugininfo'
      mkdir: cannot create directory ‘/libs’: Permission denied
      make[3]: *** [Makefile:782: install_target] Error 1
      make[3]: Leaving directory '/tmp/qt-everywhere-opensource-src-5.7.1/qttools/src/qtplugininfo'
      make[2]: *** [Makefile:212: sub-qtplugininfo-install_subtargets] Error 2
      make[2]: Leaving directory '/tmp/qt-everywhere-opensource-src-5.7.1/qttools/src'
      make[1]: *** [Makefile:57: sub-src-install_subtargets] Error 2
      make[1]: Leaving directory '/tmp/qt-everywhere-opensource-src-5.7.1/qttools'
      make: *** [Makefile:871: module-qttools-install_subtargets] Error 2
      

      According to the error, I think there is a variable that is not expanded because the install target should not use /libs from root.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            esabraha Eskil Abrahamsen Blomfeldt
            markand David Demelier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes