CMake challenge for Boot2Qt on IMX8QM with Windows Dev PC

Hi there,

my system:

  • Target device: Apalis IMX8QM with boot2qt image
  • Dev PC: Windows 10, Qt for Device Creation

I tried the Qt quick examples. It works if i use qmake in the build settings of project creation. However, the same is not true if i use CMake. Right after project creation QtCreator throws me this error message:

Syntax error in cmake code at C:/Users/x/Desktop/build-TestSwipeCMake-Boot2Qt_6_2_0_NXP_i_MX_8QuadMax_MEK-Debug/CMakeFiles/3.19.5/CMakeCXXCompiler.cmake:2 when parsing string -mcpu=cortex-a72.cortex-a53 -march=armv8-a+crc+crypto --sysroot=D:\Qt/6.2.0/Boot2Qt/imx8qm-mek/toolchain/sysroots/cortexa72-cortexa53-crypto-poky-linux Invalid character escape ‘\Q’. CMakeLists.txt:3 (project)

Something similar is true if i try out the main examples like “Charts”. There i also get a CMake configuration warning, telling me that cmake_prefix_path is not set.

Hello @Norman ,

Looks like CMake is complaining about the first backslash in the path “\Q”. Could you maybe try to set as file ( TO_CMAKE_PATH “path” “variable” )
as suggested here