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

PkgConfig .pc files not generated for Android

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.8.2
    • Build System: CMake
    • None
    • Android, Windows

    Description

      Hello,

      I need to comment out these lines inside qt6/qtbase/cmake/QtPkgConfigHelpers.cmake:

          # if((NOT UNIX OR QT_FEATURE_framework)
          #     AND NOT MINGW OR CMAKE_VERSION VERSION_LESS "3.20" OR ANDROID)
          #     return()
          # endif() 

      so that the pkg-config files are generated correctly on Windows and when cross-compiling for Android.

      On Android, the generated pkg-config files do not contain the library suffix _arm64-v8a or _armeabi-v7a, so I have to:

      files=os.listdir(".")
      [shutil.copy(f, f.replace("_arm64-v8a","")) for f in files if "_arm64-v8a" in f] 

      inside my lib folder.

      Liza

      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
            lizabelos Liza Belos
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes