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

Android/Windows: tests' make install target is malformed

    XMLWordPrintable

Details

    • Android
    • 64d63d036c8938b88fa47e8036f1ebe0279b75cf

    Description

      ... at least on Windows with builds using -prefix...

      The install_target target which is generated looks like this:

      install_target: first FORCE
      @if not exist C:$(INSTALL_ROOT:@msyshack@%=%)\QtBuild\clean-dev\android-x86\tests\libtst_qmath.so mkdir C:$(INSTALL_ROOT:@msyshack@%=%)\QtBuild\clean-dev\android-x86\tests\libtst_qmath.so & if not exist C:$(INSTALL_ROOT:@msyshack@%=%)\QtBuild\clean-dev\android-x86\tests\libtst_qmath.so exit 1
      -$(QINSTALL_PROGRAM) $(QMAKE_TARGET) C:$(INSTALL_ROOT:@msyshack@%=%)\QtBuild\clean-dev\android-x86\tests\libtst_qmath.so\$(QMAKE_TARGET)

      You are then supposed to run

      mingw32-make install INSTALL_ROOT=path\to\android-build

      Which then, unsurprisingly, fails.

      For comparison; this is how it would normally be generated:

      install_target: first FORCE
      @if not exist $(INSTALL_ROOT:@msyshack@%=%)\libs\x86 mkdir $(INSTALL_ROOT:@msyshack@%=%)\libs\x86 & if not exist $(INSTALL_ROOT:@msyshack@%=%)\libs\x86 exit 1
      -$(QINSTALL_PROGRAM) $(QMAKE_TARGET) $(INSTALL_ROOT:@msyshack@%=%)\libs\x86\$(QMAKE_TARGET)

       

      Edit: I can also repro this issue for tests outside of Qt.

      Attachments

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

        Activity

          People

            owolff Oliver Wolff
            manordheim Mårten Nordheim
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes