[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#1031078: qt6-speech-dev: library libqtexttospeech_mock.so referenced but not provided



Hi Jonas!

El sábado, 11 de febrero de 2023 06:15:04 -03 Jonas Smedegaard escribió:
> Package: qt6-speech-dev
> Version: 6.4.2-2
> Severity: grave
> Justification: renders package unusable
>
> When I try to build a project containing this line:
> 
>   find_package(Qt6 COMPONENTS TextToSpeech REQUIRED)
> 
> The configure fails like this:
> 
> CMake Error at
> /usr/lib/x86_64-linux-gnu/cmake/Qt6TextToSpeech/Qt6QTextToSpeechMockPluginT
> argets.cmake:96 (message): The imported target
> "Qt6::QTextToSpeechMockPlugin" references the file
> 
>     
> "/usr/lib/x86_64-linux-gnu/qt6/plugins/texttospeech/libqtexttospeech_mock.s
> o"
> 
>   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/Qt6TextToSpeech/Qt6QTextToSpeechMockPlugin
> Targets.cmake"
> 
>   but not all the files it references.
> 
> Call Stack (most recent call first):
>  
> /usr/lib/x86_64-linux-gnu/cmake/Qt6TextToSpeech/Qt6QTextToSpeechMockPluginC
> onfig.cmake:61 (include)
> /usr/lib/x86_64-linux-gnu/cmake/Qt6/QtPublicPluginHelpers.cmake:439
> (include)
> /usr/lib/x86_64-linux-gnu/cmake/Qt6TextToSpeech/Qt6TextToSpeechPlugins.cmak
> e:5 (__qt_internal_include_plugin_packages)
> /usr/lib/x86_64-linux-gnu/cmake/Qt6TextToSpeech/Qt6TextToSpeechConfig.cmake
> :133 (include) /usr/lib/x86_64-linux-gnu/cmake/Qt6/Qt6Config.cmake:167
> (find_package) plugins/speech/CMakeLists.txt:22 (find_package)

First of all, thanks for your bug report. Indeed some CMake files are being 
installed when they shouldn't be there. For the sake of completeness CMake 
files for plugins are used in order for the plugins to be found when packaging 
applications built with CMake, ie, in order to find where the plugin is and 
copy it somewhere else to ship it along the application. This is of course not 
a Debian use case so we remove those .cmake files.
 
> Concretely, the pacakge I try to build is hyperborg, available here:
> https://salsa.debian.org/tinker-team/hyperborg

Also thanks for this. After modifying the packaging (well, creating a chroot 
and removing the relevant .cmake files) I've got to build the package... with 
some modifications.

1. In the file node/CMakelists.txt you will need to add:

find_package(Qt6 COMPONENTS SerialPort) 
find_package(Qt6 COMPONENTS Sql)

around line 27. This is because around line 98 the system wants to link 
against them.

2. This is not strictly necessary but heavily recommended: please add qt6-
base-dev to your build dependencies. It is currently brought in by the other 
dependencies, and will always be there, but it's presence help us a lot to 
track symbols and packages using them.

I'll see to fix qtspeech and upload it ASAP.

Regards, Lisandro.

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: