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

cmake top-level prefix build fails on missing QtBuildInternalsAndroid.cmake

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 6.0.0 Beta4, 6.0.0 Beta5
    • Build System: CMake
    •  Linux x64 host (Suse v15.2) using cmake v3.18.4, compiling for Android using NDK r21

    Description

      When shadowbuilding, compile fails, the first cmake error is this:

       

      -- Could NOT find SQLite3 (missing: SQLite3_INCLUDE_DIR SQLite3_LIBRARY) 
      -- Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR) 
      CMake Error at /home/development/4suse15.2-android/qt-6.0.0/qtbase/lib/cmake/Qt6BuildInternals/Qt6BuildInternalsConfig.cmake:526 (include):
       include could not find load file:
      /home/development/4suse15.2-android/qt-6.0.0/qtbase/lib/cmake/Qt6BuildInternals/QtBuildInternalsAndroid.cmake
      Call Stack (most recent call first):
       /home/development/4suse15.2-android/qt-6.0.0/qtbase/lib/cmake/Qt6/Qt6Config.cmake:93 (find_package)
       qtsvg/CMakeLists.txt:18 (find_package)
      

       

       At this point, the file QtBuildInternalsAndroid.cmake is indeed missing.

      The same error is repeated a number of times, then the Qt config summary is shown.

      The next step fails with:

      -- Configuring incomplete, errors occurred!
      See also "/home/development/4suse15.2-android/qt-6.0.0/CMakeFiles/CMakeOutput.log".
      See also "/home/development/4suse15.2-android/qt-6.0.0/CMakeFiles/CMakeError.log".
      You have changed variables that require your cache to be deleted.
      Configure will be re-run and you may have to reset some variables.
      The following variables have changed:
      CMAKE_CXX_COMPILER= clang++
      CMAKE_C_COMPILER= clang
      CMAKE_CXX_COMPILER= clang++
      CMAKE_C_COMPILER= clang
      CMAKE_C_COMPILER= clang
      CMAKE_CXX_COMPILER= clang++
      CMAKE_CXX_COMPILER= clang++
      CMAKE_C_COMPILER= clang
      CMAKE_C_COMPILER= clang
      CMAKE_CXX_COMPILER= clang++
      CMAKE_CXX_COMPILER= clang++
      CMAKE_C_COMPILER= clang
      CMAKE_C_COMPILER= clang
      CMAKE_CXX_COMPILER= clang++
      CMAKE_CXX_COMPILER= clang++
      CMAKE_C_COMPILER= clang
      CMAKE_C_COMPILER= clang
      CMAKE_CXX_COMPILER= clang++
      CMAKE_CXX_COMPILER= clang++
      CMAKE_C_COMPILER= clang
      CMAKE_CXX_COMPILER= clang++
      CMAKE_C_COMPILER= clang
      CMAKE_C_COMPILER= clang
      CMAKE_CXX_COMPILER= clang++
      CMAKE_CXX_COMPILER= clang++
      CMAKE_C_COMPILER= clang
      CMAKE_C_COMPILER= clang
      CMAKE_CXX_COMPILER= clang++
      CMAKE_CXX_COMPILER= clang++
      CMAKE_C_COMPILER= clang
      CMAKE_CXX_COMPILER= clang++
      CMAKE_C_COMPILER= clang
      CMAKE_C_COMPILER= clang
      CMAKE_CXX_COMPILER= clang++
      CMAKE_CXX_COMPILER= clang++
      CMAKE_C_COMPILER= clang
      CMAKE_C_COMPILER= clang
      CMAKE_CXX_COMPILER= clang++
      CMAKE_CXX_COMPILER= clang++
      CMAKE_C_COMPILER= clang
      CMAKE_C_COMPILER= clang
      CMAKE_CXX_COMPILER= clang++
      CMAKE_CXX_COMPILER= clang++
      CMAKE_C_COMPILER= clang
      CMAKE_C_COMPILER= clang
      CMAKE_CXX_COMPILER= clang++CMake Error at qttranslations/translations/CMakeLists.txt:138 (add_custom_target):
        Error evaluating generator expression:    $<TARGET_FILE:Qt::lconvert>  No target "Qt::lconvert"
      CMake Error at qttranslations/translations/CMakeLists.txt:138 (add_custom_target):
        Error evaluating generator expression:    $<TARGET_FILE:Qt::lconvert>  No target "Qt::lconvert"
      CMake Error at qttranslations/translations/CMakeLists.txt:138 (add_custom_target):
        Error evaluating generator expression:    $<TARGET_FILE:Qt::lconvert>  No target "Qt::lconvert"
      -- Generating done
      CMake Generate step failed.  Build files cannot be regenerated correctly.
      CMake Error at /home/development/qt-everywhere-src-6.0.0-beta4/qtbase/cmake/QtProcessConfigureArgs.cmake:751 (message):
        CMake exited with code 1.
      

      Attachments

        1. patch-qt600b5-android_cmake.diff
          0.8 kB
          user-678dd
        2. patch-qt600b5-android_qtbase.diff
          0.8 kB
          user-678dd
        3. patch-qt600b5-android_qttranslation.diff
          2 kB
          user-678dd
        4. patch-qt600b5-nolinguist.diff
          1 kB
          user-678dd

        Issue Links

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

          Activity

            People

              jbornema Joerg Bornemann
              jirauser24743 user-678dd (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: