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

CMake configuration error with gui extra libs

    XMLWordPrintable

Details

    • Task
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 5.12.3, 5.12.4
    • GUI: OpenGL
    • None
    • Ubuntu 18.04, Android NDKr19c

    • Android

    Description

      CMake configuration for android fails with error:

      CMake Error at install/qt/Linux-x86_64-android-armeabi-v7a-clang-app-c++14-static-ndk-r19c-android-19-qt-c++14-release-gcc4.9-clang-clang-c++-opensource/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake:15 (message):
        The imported target "Qt5::Gui" references the file
      
           "/opt/data/tools/android/android-ndk-r19c/platforms/android-19/arch-arm/usr/lib/libEGL.so"
      
        but this file does not exist.  Possible reasons include:
      
        * The file was deleted, renamed, or moved to another location.
      
        * An install or uninstall procedure did not complete successfully.
      
        * The installation package was faulty and contained
      
           "/mnt/fast_work/v4android-cmake/install/qt/Linux-x86_64-android-armeabi-v7a-clang-app-c++14-static-ndk-r19c-android-19-qt-c++14-release-gcc4.9-clang-clang-c++-opensource/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake"
      
        but not all the files it references.
      
      Call Stack (most recent call first):
        install/qt/Linux-x86_64-android-armeabi-v7a-clang-app-c++14-static-ndk-r19c-android-19-qt-c++14-release-gcc4.9-clang-clang-c++-opensource/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:48 (_qt5_Gui_check_file_exists)
        install/qt/Linux-x86_64-android-armeabi-v7a-clang-app-c++14-static-ndk-r19c-android-19-qt-c++14-release-gcc4.9-clang-clang-c++-opensource/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:70 (_qt5gui_find_extra_libs)
        install/qt/Linux-x86_64-android-armeabi-v7a-clang-app-c++14-static-ndk-r19c-android-19-qt-c++14-release-gcc4.9-clang-clang-c++-opensource/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake:174 (include)
        install/qt/Linux-x86_64-android-armeabi-v7a-clang-app-c++14-static-ndk-r19c-android-19-qt-c++14-release-gcc4.9-clang-clang-c++-opensource/lib/cmake/Qt5/Qt5Config.cmake:28 (find_package)
      

      The problem is that `lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:70` contains absolute path to `libEGL.so` in NDK. And if NDK path differs on local host, then it can not be found.

      Attachments

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

        Activity

          People

            lagocs Laszlo Agocs
            vok1980 Vyacheslav O. Koshcheyev
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes