Details
-
Bug
-
Resolution: Invalid
-
P2: Important
-
None
-
Qt for MCUs 2.3
Description
When building a platform in Qt for MCUs 2.3.0 in case QUL_BIN_DIR is not set and Qt 6 is not in the PATH, following error is output:
CMake Error at lib/cmake/Qul/QulTranslationTools.cmake:53 (message):
lupdate tool was not found in any of the locations
Call Stack (most recent call first):
CMakeLists.txt:184 (include)
It seems that QulTranslationTools.cmake is included on line 184 of the toplevel CMakeLists.txt. However, QUL_BIN_DIR is defined in install.cmake of the src directory, which isn't included until line 235 of the toplevel CMakeLists.txt.
There exists multiple workarounds for this:
1) Set the variable manually with -DQUL_BIN_DIR=/path-to/Qt/QtMCUs/2.3.0/bin
2) Provide cmake call with CMAKE_PREFIX_PATH which makes find_package(Qt6 6.2 ..) to succeed
3) Have Qt 6 in the PATH