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

'-prefix' path ignored on Android configure with qttools component

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • 5.5.0
    • Build System
    • None
    • OSX

    Description

      'make install' command try to install to the '/libs/armeabi-v7a/' directory instead of one specified by 'configure -prefix':

      > export ANDROID_API_VERSION=19_r04
      > ./configure \
          -confirm-license \
          -nomake examples \
          -nomake tests \
          -opensource \
          -xplatform android-g++ \
          -android-sdk "${MYSDK}" \
          -android-ndk "${MYNDK}" \
          -android-ndk-platform android-19 \
          -android-arch armeabi-v7a \
          -no-warnings-are-errors \
          -android-ndk-host darwin-x86_64 \
          -verbose \
          -static \
          -prefix "${QT_INSTALL_DIR}" \
          -debug-and-release \
          -skip qt3d \
          -skip qtactiveqt \
          -skip qtandroidextras \
          -skip qtcanvas3d \
          -skip qtconnectivity \
          -skip qtdeclarative \
          -skip qtdoc \
          -skip qtenginio \
          -skip qtgraphicaleffects \
          -skip qtimageformats \
          -skip qtlocation \
          -skip qtmacextras \
          -skip qtmultimedia \
          -skip qtquick1 \
          -skip qtquickcontrols \
          -skip qtscript \
          -skip qtsensors \
          -skip qtserialport \
          -skip qtsvg \
          -skip qttranslations \
          -skip qtwayland \
          -skip qtwebchannel \
          -skip qtwebengine \
          -skip qtwebkit \
          -skip qtwebkit-examples \
          -skip qtwebsockets \
          -skip qtwinextras \
          -skip qtx11extras \
          -skip qtxmlpatterns
      > make install
      ...
      mkdir: /libs/armeabi-v7a/: Permission denied
      

      The reason is Makefile from qtplugininfo directory:

      > grep 'mkdir.*INSTALL_ROOT' qttools/src/qtplugininfo/Makefile 
      	@test -d $(INSTALL_ROOT)/libs/armeabi-v7a/ || mkdir -p $(INSTALL_ROOT)/libs/armeabi-v7a/
      

      Attachments

        Issue Links

          Activity

            People

              esabraha Eskil Abrahamsen Blomfeldt
              ruslo Ruslan Baratov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: