Uploaded image for project: 'Qt for MCUs'
  1. Qt for MCUs
  2. QTMCU-132

QUL_BIN_DIR does not get defined early enough when building platform lib

    XMLWordPrintable

Details

    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

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            taarnipuro Timo Aarnipuro
            foxxx Tuukka Kettunen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes