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

Problem with Subdirs Project and Static Library in Android Build

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.7.2
    • None
    • QMake version 3.1
      Qt Creator 13.0.2
      Qt 6.7.2
    • Android, Windows

    Description

      When building an Android application with a Subdirs Project that includes a static library project, errors occur. Below are the example and detailed output:

      output

      16:50:35: 正在启动 "D:\Software\AndroidSDK\ndk\26.1.10909125\prebuilt\windows-x86_64\bin\make.exe" "INSTALL_ROOT=D:\source\Qt\test\build\Qt_6_7_2_Clang_arm64_v8a-Release\app\android-build" install && cd D:\source\Qt\test\build\Qt_6_7_2_Clang_arm64_v8a-Release && D:\Software\AndroidSDK\ndk\26.1.10909125\prebuilt\windows-x86_64\bin\make.exe "INSTALL_ROOT=D:\source\Qt\test\build\Qt_6_7_2_Clang_arm64_v8a-Release\app\android-build" install

      C:\Qt\6.7.2\mingw_64\bin\qmake6.exe -install qinstall -exe libapp_arm64-v8a.so D:\source\Qt\test\build\Qt_6_7_2_Clang_arm64_v8a-Release\app\android-build\libs\arm64-v8a\libapp_arm64-v8a.so
      cd app\ && ( if not exist Makefile C:\Qt\6.7.2\mingw_64\bin\qmake6.exe -o Makefile D:\source\Qt\test\app\app.pro -qtconf C:/Qt/6.7.2/android_arm64_v8a/bin/target_qt.conf -spec android-clang ) && D:/Software/AndroidSDK/ndk/26.1.10909125/prebuilt/windows-x86_64/bin/make.exe -f Makefile install
      make[1]: Entering directory 'D:/source/Qt/test/build/Qt_6_7_2_Clang_arm64_v8a-Release/app'
      C:\Qt\6.7.2\mingw_64\bin\qmake6.exe -install qinstall -exe libapp_arm64-v8a.so D:\source\Qt\test\build\Qt_6_7_2_Clang_arm64_v8a-Release\app\android-build\libs\arm64-v8a\libapp_arm64-v8a.so
      make[1]: Leaving directory 'D:/source/Qt/test/build/Qt_6_7_2_Clang_arm64_v8a-Release/app'
      cd static_lib\ && ( if not exist Makefile C:\Qt\6.7.2\mingw_64\bin\qmake6.exe -o Makefile D:\source\Qt\test\static_lib\static_lib.pro -qtconf C:/Qt/6.7.2/android_arm64_v8a/bin/target_qt.conf -spec android-clang ) && D:/Software/AndroidSDK/ndk/26.1.10909125/prebuilt/windows-x86_64/bin/make.exe -f Makefile install
      make[1]: Entering directory 'D:/source/Qt/test/build/Qt_6_7_2_Clang_arm64_v8a-Release/static_lib'
      The filename, directory name, or volume label syntax is incorrect.
      make[1]: *** [Makefile:762: install_target] Error 1
      make[1]: Leaving directory 'D:/source/Qt/test/build/Qt_6_7_2_Clang_arm64_v8a-Release/static_lib'
      make: *** [Makefile:85: sub-static_lib-install_subtargets] Error 2
      16:50:35: 进程"D:\Software\AndroidSDK\ndk\26.1.10909125\prebuilt\windows-x86_64\bin\make.exe"退出,退出代码 2 。
      Error while building/deploying project test (kit: 安卓 Qt 6.7.2 Clang arm64-v8a)
      When executing step "复制应用程序的数据"

      Attachments

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

        Activity

          People

            qtbuildsystem Qt Build System Team
            lfwqsp2641 liu yunbo
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes