Building Qt for MCU Evaluation



  • Hello everone,

    I am trying to build the new Qt for MCU for an STM32F769 board but have no success to do that properly. I am using the 1.0.1-eval version for that and stucking to configure the cmake build process. Somehow the cmake is not able to find the Qt 5 package in my project. Does anybody has the same issue? Here is the cmakes output:

    Running C:\Program Files\CMake\bin\cmake.exe C:/Users/martwe/Documents/FirstQtMCU "-GCodeBlocks - NMake Makefiles JOM" "-DCMAKE_BUILD_TYPE:STRING=Release" "-DCMAKE_TOOLCHAIN_FILE:INTERNAL=C:\Qt\QtMCUs\1.0.1-eval\CMake\stm32f769i-discovery.cmake" in C:\Users\martwe\AppData\Local\Temp\QtCreator-wgnjsP\qtc-cmake-qMkgucGm.
    -- TOOLCHAIN_DIR: C:/Program Files (x86)/GNU Tools ARM Embedded/8 2019-q3-update
    -- BUILD_TYPE: Release
    -- TOOLCHAIN_DIR: C:/Program Files (x86)/GNU Tools ARM Embedded/8 2019-q3-update
    -- BUILD_TYPE: Release
    -- The CXX compiler identification is GNU 8.3.1
    -- Check for working CXX compiler: C:/Program Files (x86)/GNU Tools ARM Embedded/8 2019-q3-update/bin/arm-none-eabi-g++.exe
    -- Check for working CXX compiler: C:/Program Files (x86)/GNU Tools ARM Embedded/8 2019-q3-update/bin/arm-none-eabi-g++.exe -- works
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- IPO is enabled
    CMake Error at C:/Qt/QtMCUs/1.0.1-eval/CMake/QulTranslationTools.cmake:2 (find_package):
    By not providing "FindQt5.cmake" in CMAKE_MODULE_PATH this project has
    asked CMake to find a package configuration file provided by "Qt5", but
    CMake did not find one.

    Could not find a package configuration file provided by "Qt5" (requested
    version 5.14) with any of the following names:

    Qt5Config.cmake
    qt5-config.cmake
    

    Add the installation prefix of "Qt5" to CMAKE_PREFIX_PATH or set "Qt5_DIR"
    to a directory containing one of the above files. If "Qt5" provides a
    separate development package or SDK, be sure it has been installed.
    Call Stack (most recent call first):
    C:/Qt/QtMCUs/1.0.1-eval/CMake/QulConfig.cmake:43 (include)
    CMakeLists.txt:4 (find_package)

    Cmake is asking for Qt5Config.cmake and qt5-config.cmake but I can't find one of those inside the eval directory.


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Qt for MCU is a commercial product, you should rather contact the Qt company about matter.



  • Hello,

    I found a workaround by myself. Actually the problem lies in the multilanguage feature, which needs some Qt tools for configuring it correctly with cmake. One Workaround is just install one binary of Qt 5.14.0 e.g. msvc2017 32 bit and assigne CMAKE_PREFIX_PATH to the location where the missing cmake file is located e.g. CMAKE_PREFIX_PATH:INTERNAL=C:\Qt\5.14.0\msvc2017\lib\cmake\Qt5. After that, cmake is then running to the end giving some warnings, but this can be ignored and all demos can be build and flashed on the target board.



  • Hi MMMartin,

    It does look like you need to install the desktop MSVC2017 64 bit kit in order for the QT for MCU kit to compile.
    It would have helped if the install instructions in getting started with Qt for MCU video would have identified what components of Qt need to be installed if only Qt for MCU is desired, and not the entire Qt software, which is a huge install. The need for this is shown in the video at 13:00.

    Hope this helps,

    -onlyMCU


Log in to reply