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

make install tries to copy library to "/libs" without prefix

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • Some future release
    • Build System
    • None

    Description

      Hello,

      trying to build the qt 5.5 branch for android with the following configure call:

      export JAVA_HOME="/usr/lib/jvm/java"
      export ANDROID_SDK_ROOT="/opt/android/adt-bundle-linux-x86_64-20131030/sdk"
      NDK="/opt/android/android-ndk-r9c"
      TOOLCHAIN_VERSION="4.8"
      HOST="linux-x86_64"
      export ANDROID_API_VERSION="android-21"
      
      DEPLOY_TARGET=$(pwd)/result/
      ARTIFACTS=$(pwd)/artifacts/
      
      mkdir -p $DEPLOY_TARGET
      
      git submodule foreach --recursive "git clean -dfx"
      ./configure -opensource -confirm-license \
          --prefix=$DEPLOY_TARGET \
          -xplatform android-g++ -nomake tests -nomake examples -android-ndk $NDK \
          -android-sdk $ANDROID_SDK_ROOT -android-ndk-host $HOST \
          -android-toolchain-version $TOOLCHAIN_VERSION \
          -skip qttranslations -skip qtwebkit -skip qtserialport \
          -skip qt3d -skip qtactiveqt -skip qtconnectivity -skip qtdoc -skip qtdocgallery -skip qtenginio -skip qtfeedback -skip qtlocation -skip qtmacextras -skip qtmultimedia -skip qtpim -skip qtqa -skip qtrepotools -skip qtsensors -skip qtserialport -skip qtsystems -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwinextras \
          -skip qtwebkit-examples -no-warnings-are-errors -no-widgets -no-compile-examples -pch
      

      Results in make install trying to create "/libs" in my root dir:

      make[3]: Entering directory '/var/lib/jenkins/jobs/qt-android/workspace/qttools/src/qtplugininfo'
      mkdir: cannot create directory ‘/libs’: Permission denied
      Makefile:623: recipe for target 'install_target' failed
      

      If I do:

      
      sed -i "s/\$(INSTALL_ROOT)/$ESCAPED_DEPLOY_TARGET/g" qttools/src/qtplugininfo/Makefile
      

      between make and make install it works.

      Is this an issue with the build system or am i doing something wrong?

      (Note: I have a similar issue with the 5.4 branch. It tries to create /libs there too (issued by qttools/src/qdbus/qdbus apparently)).

      Attachments

        Issue Links

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

          Activity

            People

              esabraha Eskil Abrahamsen Blomfeldt
              ablu Erik Schilling
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes