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

Building qtbase for Android with examples fails to configure

    XMLWordPrintable

Details

    • Android
    • 3f4082c0e847c21f468d38609766e8cf1e446531 (qt/qtbase/dev) f0845713858d701adcbf84869816e18b05a142eb (qt/qtbase/6.2)

    Description

      Trying to configure qtbase for Android with examples enabled gives the error

      CMake Error at examples/widgets/tools/echoplugin/echowindow/CMakeLists.txt:22 (install):
        install TARGETS given no LIBRARY DESTINATION for module target
        "echopluginwindow".
      

      The commands executed are:

      basedir=`pwd`
      mkdir qtbase
      pushd qtbase
      /usr/bin/cmake  -DWARNINGS_ARE_ERRORS=OFF -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=/usr/bin/gcc-11 -DCMAKE_CXX_COMPILER=/usr/bin/g++-11 -G Ninja -DFEATURE_developer_build=ON -DCMAKE_CXX_FLAGS=-Wfatal-errors -DQT_BUILD_TESTS=ON -DQT_BUILD_EXAMPLES=ON /home/andreasbuhr/development/qtdev/qtbase
      /usr/bin/cmake --build .
      popd
      
      mkdir qtbase-android
      pushd qtbase-android
      /usr/bin/cmake  -DWARNINGS_ARE_ERRORS=OFF -DCMAKE_BUILD_TYPE=Debug -GNinja -DCMAKE_TOOLCHAIN_FILE=/home/andreasbuhr/Android/Sdk/ndk/21.3.6528147/build/cmake/android.toolchain.cmake -DANDROID_SDK_ROOT=/home/andreasbuhr/Android/Sdk -DQT_HOST_PATH=$basedir/qtbase -DFEATURE_developer_build=ON -DCMAKE_CXX_FLAGS=-Wfatal-errors -DQT_BUILD_TESTS=ON -DQT_BUILD_EXAMPLES=ON -DQT_ANDROID_ABIS=armeabi-v7a /home/andreasbuhr/development/qtdev/qtbase
      /usr/bin/cmake --build .
      popd
      

      The error with some more context is

      Qt Sql Drivers:
        DB2 (IBM) .............................. no
        InterBase .............................. no
        MySql .................................. no
        OCI (Oracle) ........................... no
        ODBC ................................... no
        PostgreSQL ............................. no
        SQLite ................................. yes
          Using system provided SQLite ......... no
      
      Qt is now configured for building. Just run 'cmake --build . --parallel'
      
      Once everything is built, Qt is installed. You should NOT run 'cmake --install .'
      Note that this build cannot be deployed to other machines or devices.
      
      To configure and build other Qt modules, you can use the following convenience script:
              /home/andreasbuhr/development/qtdev/androidbuild/qtbase-android/bin/qt-configure-module
      
      If reconfiguration fails for some reason, try to remove 'CMakeCache.txt' from the build directory 
      
      -- Configuring 'androidnotifier' for the following Android ABIs: armeabi-v7a(default)
      -- Configuring 'echopluginwindow' for the following Android ABIs: armeabi-v7a(default)
      CMake Error at examples/widgets/tools/echoplugin/echowindow/CMakeLists.txt:22 (install):
        install TARGETS given no LIBRARY DESTINATION for module target
        "echopluginwindow".
      
      
      -- Configuring incomplete, errors occurred!
      See also "/home/andreasbuhr/development/qtdev/androidbuild/qtbase-android/CMakeFiles/CMakeOutput.log".
      See also "/home/andreasbuhr/development/qtdev/androidbuild/qtbase-android/CMakeFiles/CMakeError.log".
      

      Attachments

        Issue Links

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

          Activity

            People

              semlanik Alexey Edelev
              andreasbuhr Andreas Buhr
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes