I've encountered an issue while setting up a Qt6 project with CMake on Linux Mint.
Despite successful installation of Qt6 and its components, I'm facing a problem with Qt6LinguistTools.
Specifically, when I use find_package(Qt6 REQUIRED LinguistTools) in my CMakeLists.txt, CMake generates an error indicating that the lprodump file is missing.
Here's the error message I receive:
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Qt6LinguistTools/Qt6LinguistToolsTargets.cmake:131 (message):
The imported target "Qt6::lprodump" references the file
"/usr/lib/qt6/libexec/lprodump"
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/Qt6LinguistTools/Qt6LinguistToolsTargets.cmake"
but not all the files it references.
I've tried reinstalling Qt6 and its components, but the file still does not appear in the expected directory.
Is there a specific package in Linux Mint (Ubuntu) that contains the lprodump file for Qt6, or is there a known workaround for this issue?
Everything was working correctly before, and I haven't knowingly changed anything in my setup that would cause this problem.
To resolve the issue with the missing
lprodumpfile, install theqt6-tools-dev-tools.Use the following command:
This should address the missing file problem.
To verify that the file is indeed in the package, you can use the
dpkgutility:Output:
As seen, the file is presented in the list.