Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.12.1
-
B2Qt on Win10
Description
try to build a qt application with localization support on Win10 using Boot2Qt:
CMake Error at C:/Qt/5.12.1/Boot2Qt/intel- corei7-64/toolchain/sysroots/corei7-64-poky- linux/usr/lib/cmake/Qt5LinguistTools/Qt5LinguistToolsConfig.cmake:25 (message): The package "Qt5LinguistTools" references the file "C:/Qt/5.12.1/Boot2Qt/intel-corei7-64/toolchain/sysroots/corei7-64 -poky-linux/usr//usr/bin/lrelease" 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 "C:/Qt/5.12.1/Boot2Qt/intel-corei7-64/toolchain/sysroots/corei7-64 -poky-linux/usr/lib/cmake/Qt5LinguistTools/Qt5LinguistToolsConfig.cmake" but not all the files it references. Call Stack (most recent call first): C:/Qt/5.12.1/Boot2Qt/intel-corei7-64/toolchain/sysroots/corei7-64-poky- linux/usr/lib/cmake/Qt5LinguistTools/Qt5LinguistToolsConfig.cmake:41 (_qt5_LinguistTools_check_file_exists) CMakeLists.txt:37 (find_package) Configuring incomplete, errors occurred!
Workaround may be changing Qt5LinguistToolsConfig.cmake:
set(imported_location "${_qt5_linguisttools_install_prefix}//usr/bin/lrelease")
to
set(imported_location "${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}/lrelease${OE_QMAKE_BIN_SUFFIX}")