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

'Some (but not all) targets in this export set were already defined' error during building from source process

    XMLWordPrintable

Details

    • Linux/X11
    • 94cc48a0f (dev), 4deb2aa3a (6.5), ae4ddd8ce (6.6)

    Description

      A customer is following the cross-compile tutorial:
      https://wiki.qt.io/Cross-Compile_Qt_6_for_Raspberry_Pi

      The issue happens during 'Building Qt 6 for Host Machine' step which should be no different than normal building from source. And the issue should not be related to board either (since it is just about host kit). So after all, I think it is not related to cross-compile at all, just an error during building from source process. But just as record, the target is Raspberry Pi Compute Module 4 with EGLFS (so no display server). Host is Ubuntu 22.

      Anyway, after executing the following command:

      cmake ../qt5/ -GNinja -DCMAKE_BUILD_TYPE=Release -DQT_BUILD_EXAMPLES=OFF -DQT_BUILD_TESTS=OFF -DCMAKE_INSTALL_PREFIX=$HOME/qt-host
      

      (BTW, I think the command should be the same as normal building from source command using configure and passing arguments)
      the following error happens:

      CMake Error at /usr/lib/x86_64-linux-gnu/cmake/draco/draco-targets.cmake:37 (message):
      Some (but not all) targets in this export set were already defined.
      

      The error message is the same as what is being described here:
      https://bugreports.qt.io/browse/QTBUG-106371
      except that the error happens at configuration of Qt3D instead of Quick3D.

      Reportedly, -qt-qt3d-assimp or deleting system assimp dev package does not help. However, by following a 3rd party tutorial the build succeded:
      https://github.com/PhysicsX/QTonRaspberryPi/blob/main/README.md

      Output to command line tool is attached for some finer details.

      Update: customer says that building only qtbase is free from such bug. That is understandable since then Qt3D is not built.

      Attachments

        Issue Links

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

          Activity

            People

              alexandru.croitor Alexandru Croitor
              luqiaochen Luqiao Chen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes