Problem importing the target Qt6::quick3dspatialaudio with cmake

Asked by Thomas CRESSON

I just updated my Ubuntu from 22.10 to 23.04 (this morning) and went from Qt 6.2.4-1 to Qt 6.4.2-4. Since then, my C++ project that was configuring and compiling just fine (with CMake and GCC) now fails to configure with the following error :

CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Qt6Qml/QmlPlugins/Qt6quick3dspatialaudioTargets.cmake:96 (message):
  The imported target "Qt6::quick3dspatialaudio" references the file

     "/usr/lib/x86_64-linux-gnu/qt6/qml/QtQuick3D/SpatialAudio/libquick3dspatialaudioplugin.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

     "/usr/lib/x86_64-linux-gnu/cmake/Qt6Qml/QmlPlugins/Qt6quick3dspatialaudioTargets.cmake"

  but not all the files it references.

It fails when I execute the following "find_package":

find_package(Qt6 REQUIRED COMPONENTS Qml)

Do you have any way to fix this temporarily ?

Thank you in advance for your help.

Best regards,
Thomas CRESSON

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu qt6-multimedia Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
Best Manfred Hampl (m-hampl) said :
#1

As far as I can see, the mentioned file is part of the package qml6-module-qtquick3d-spatialaudio
I suggest that you install (or - if it is already installed - then reinstall) that package.

Revision history for this message
Thomas CRESSON (tcresson) said :
#2

Thanks Manfred Hampl, that solved my question.