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

Modules built with Conan cannot be found by user projects

    XMLWordPrintable

Details

    • Android, Windows

    Description

      Building qt3d using Conan for Android on Windows and Linux works correctly with the official profiles and conan_file.py files. However, building the example 3d-text with the built qt3d module doesn't seem to work. 

      The CMakeLists.txt file contains the following extra lines:

      include(C:/Qt/AdditionalLibraries/Qt/qt3d-6.0.0/build/conan_paths.cmake)
      

      and just before the "find_package()" calls

      list(APPEND CMAKE_FIND_ROOT_PATH "C:/Users/VBOX/.conan/data/qt3d/6.0.0/qt/beta/package/b2a69d4718d74f3227fc561c7aabc8db71b19f90")
      

      The command used to configure and build the project (in the build folder)

      C:\Qt\6.0.0\android_arm64_v8a\bin\qt-cmake.bat -GNinja -S .. -B . -DANDROID_SDK_ROOT=%ANDROID_SDK_ROOT% -DANDROID_NDK_ROOT=%ANDROID_NDK_ROOT% -DQT_ADDITIONAL_PACKAGES_PREFIX_PATH=C:/Qt/AdditionalLibraries/Qt/qt3d-6.0.0/build
      

      Also tried the command with QT_ADDITIONAL_PACKAGES_PREFIX_PATH pointing to the Conan build cache for the qt3d module. And also tried setting the following in the qt-cmake command while commenting out the include of conan_paths.cmake in the CMakeLists.txt file.

      -DQT_DISABLE_NO_DEFAULT_PATH_IN_QT_PACKAGES=ON
      

      All cases fail to configure to find Qt3D module components, logs are attached.

      Attachments

        Issue Links

          Activity

            People

              qtbuildsystem Qt Build System Team
              assam Assam Boudjelthia
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated: