Using translations in boot2qt
Unsolved
Mobile and Embedded
-
Hi,
I have been working on a Qt6 Quick project for the Rpi 4 in boot2qt with Qt version 6.5.3 and I have already embedded the app boot2qt using my own layer. After adding the translation feature to the project, the Yocto project fails to build the image complaining about LinguistTools and Qt6LinguistTools_DIR:| -- Could NOT find Qt6LinguistTools (missing: Qt6LinguistTools_DIR) | CMake Error at CMakeLists.txt:7 (find_package): | Found package configuration file: | | /media/system/SSD/Yocto/build-raspberrypi4-64/tmp/work/cortexa72-poky-linux/myapp/git-r0/recipe-sysroot/usr/lib/cmake/Qt6/Qt6Config.cmake | | but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT | FOUND. Reason given by package: | | Failed to find required Qt component "LinguistTools". | | Expected Config file at | "/media/system/SSD/Yocto/build-raspberrypi4-64/tmp/work/cortexa72-poky-linux/myapp/git-r0/recipe-sysroot/usr/lib/cmake/Qt6LinguistTools/Qt6LinguistToolsConfig.cmake" | does NOT exist | | | | Configuring with --debug-find-pkg=Qt6LinguistTools might reveal details why | the package was not found. | | Configuring with -DQT_DEBUG_FIND_PACKAGE=ON will print the values of some | of the path variables that find_package uses to try and find the package. | | | | -- Configuring incomplete, errors occurred! | See also "/media/system/SSD/Yocto/build-raspberrypi4-64/tmp/work/cortexa72-poky-linux/myapp/git-r0/build/CMakeFiles/CMakeOutput.log". | WARNING: exit code 1 from a shell command. ERROR: Task (/media/system/SSD/Yocto/sources/meta-mylayer/recipes-applications/myapp/myapp_git.bb:do_configure) failed with exit code '1'
I have already tried adding DEPENDS += "qttools" and "qttools-native" in myapp_git.bb recipe, but none of them worked. I would appreciate any suggestions or responses.
Regards,
Enayat