Working "QT for Qnx" Project was copied from one ubuntu OS laptop to another.
But facing some issues in building the project configuration and the kit configuration
Please share the solution
I have attached the screenshots
The error logs as as below;
"[cmake] Running /usr/local/bin/cmake -S /home/smit/Downloads/QT_IC_LIB_2025JUN06_2 -B /home/smit/Downloads/QT_IC_LIB_2025JUN06_2/build/Qt_6_9_1_for_QNX_7_1_ARMv8-Debug in /home/smit/Downloads/QT_IC_LIB_2025JUN06_2/build/Qt_6_9_1_for_QNX_7_1_ARMv8-Debug.
[cmake] CMake Warning at build/Qt_6_9_1_for_QNX_7_1_ARMv8-Debug/.qtc/package-manager/auto-setup.cmake:403 (message):
[cmake] Qt Creator: CMake version 3.24 is needed for MaintenanceTool find_package()
[cmake] provider. To disable this warning set
[cmake] QT_CREATOR_SKIP_MAINTENANCE_TOOL_PROVIDER to ON.
[cmake] Call Stack (most recent call first):
[cmake] CMakeLists.txt:3 (project)
[cmake]
[cmake]
[cmake] -- The CXX compiler identification is QCC 8.3.0
[cmake] -- Check for working CXX compiler: /home/smit/qnx710_1/host/linux/x86_64/usr/bin/q++
[cmake] -- Check for working CXX compiler: /home/smit/qnx710_1/host/linux/x86_64/usr/bin/q++ -- broken
[cmake] CMake Error at /usr/local/share/cmake-3.16/Modules/CMakeTestCXXCompiler.cmake:53 (message):
[cmake] The C++ compiler
[cmake]
[cmake] "/home/smit/qnx710_1/host/linux/x86_64/usr/bin/q++"
[cmake]
[cmake] is not able to compile a simple test program.
[cmake]
[cmake] It fails with the following output:
[cmake]
[cmake] Change Dir: /home/smit/Downloads/QT_IC_LIB_2025JUN06_2/build/Qt_6_9_1_for_QNX_7_1_ARMv8-Debug/CMakeFiles/CMakeTmp
[cmake]
[cmake] Run Build Command(s):/usr/bin/ninja cmTC_7942f && [1/2] Building CXX object CMakeFiles/cmTC_7942f.dir/testCXXCompiler.cxx.o
[cmake] FAILED: CMakeFiles/cmTC_7942f.dir/testCXXCompiler.cxx.o
[cmake] /home/smit/qnx710_1/host/linux/x86_64/usr/bin/q++ -Vgcc_ntoaarch64le --sysroot=/home/smit/qnx710_1/target/qnx7 -lang-c++ -DQT_QML_DEBUG -Wp,-MD,CMakeFiles/cmTC_7942f.dir/testCXXCompiler.cxx.o.d -Wp,-MT,CMakeFiles/cmTC_7942f.dir/testCXXCompiler.cxx.o -Wp,-MF,CMakeFiles/cmTC_7942f.dir/testCXXCompiler.cxx.o.d -o CMakeFiles/cmTC_7942f.dir/testCXXCompiler.cxx.o -c testCXXCompiler.cxx
[cmake] cc: unknown option: '--sysroot=/home/smit/qnx710_1/target/qnx7'
[cmake] ninja: build stopped: subcommand failed.
[cmake]
[cmake]
[cmake]
[cmake]
[cmake]
[cmake] CMake will not be able to correctly generate this project.
[cmake] Call Stack (most recent call first):
[cmake] CMakeLists.txt:3 (project)
[cmake]
[cmake]
[cmake] -- Configuring incomplete, errors occurred!
[cmake] See also "/home/smit/Downloads/QT_IC_LIB_2025JUN06_2/build/Qt_6_9_1_for_QNX_7_1_ARMv8-Debug/CMakeFiles/CMakeOutput.log".
[cmake] See also "/home/smit/Downloads/QT_IC_LIB_2025JUN06_2/build/Qt_6_9_1_for_QNX_7_1_ARMv8-Debug/CMakeFiles/CMakeError.log".
[cmake]
[cmake] The command "/usr/local/bin/cmake -S /home/smit/Downloads/QT_IC_LIB_2025JUN06_2 -B /home/smit/Downloads/QT_IC_LIB_2025JUN06_2/build/Qt_6_9_1_for_QNX_7_1_ARMv8-Debug" terminated with exit code 1.
[cmake]
[cmake] Elapsed time: 00:00.
[cmake] Running /usr/local/bin/cmake -S /home/smit/Downloads/QT_IC_LIB_2025JUN06_2 -B /home/smit/Downloads/QT_IC_LIB_2025JUN06_2/build/Qt_6_9_1_for_QNX_7_1_ARMv8-Debug -DQT_QMAKE_EXECUTABLE:FILEPATH=/mnt/4ED41108D410F3C5/Qt/QT/6.9.1/qnx71_aarch64le/bin/qmake -DCMAKE_TOOLCHAIN_FILE:FILEPATH=/mnt/4ED41108D410F3C5/Qt/QT/6.9.1/qnx71_aarch64le/lib/cmake/Qt6/qt.toolchain.cmake -DCMAKE_GENERATOR:STRING=Ninja -DCMAKE_CXX_COMPILER_TARGET:STRING=aarch64-qnx-gnu -DCMAKE_CXX_FLAGS_INIT:STRING=-DQT_QML_DEBUG -DCMAKE_C_COMPILER:FILEPATH=/home/smit/qnx710_1/host/linux/x86_64/usr/bin/qcc -DCMAKE_PREFIX_PATH:PATH=/mnt/4ED41108D410F3C5/Qt/QT/6.9.1/qnx71_aarch64le -DCMAKE_PROJECT_INCLUDE_BEFORE:FILEPATH=/home/smit/Downloads/QT_IC_LIB_2025JUN06_2/build/Qt_6_9_1_for_QNX_7_1_ARMv8-Debug/.qtc/package-manager/auto-setup.cmake -DQT_MAINTENANCE_TOOL:FILEPATH=/mnt/4ED41108D410F3C5/Qt/QT/MaintenanceTool -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_CXX_COMPILER:FILEPATH=/home/smit/qnx710_1/host/linux/x86_64/usr/bin/qcc -DCMAKE_COLOR_DIAGNOSTICS:BOOL=ON -DCMAKE_C_COMPILER_TARGET:STRING=aarch64-qnx-gnu -UCMAKE_SYSROOT -DQT_CREATOR_SKIP_MAINTENANCE_TOOL_PROVIDER:BOOL=ON in /home/smit/Downloads/QT_IC_LIB_2025JUN06_2/build/Qt_6_9_1_for_QNX_7_1_ARMv8-Debug.
[cmake] -- The CXX compiler identification is QCC 8.3.0
[cmake] -- Check for working CXX compiler: /home/smit/qnx710_1/host/linux/x86_64/usr/bin/q++
[cmake] -- Check for working CXX compiler: /home/smit/qnx710_1/host/linux/x86_64/usr/bin/q++ -- broken
[cmake] CMake Error at /usr/local/share/cmake-3.16/Modules/CMakeTestCXXCompiler.cmake:53 (message):
[cmake] The C++ compiler
[cmake]
[cmake] "/home/smit/qnx710_1/host/linux/x86_64/usr/bin/q++"
[cmake]
[cmake] is not able to compile a simple test program.
[cmake]
[cmake] It fails with the following output:
[cmake]
[cmake] Change Dir: /home/smit/Downloads/QT_IC_LIB_2025JUN06_2/build/Qt_6_9_1_for_QNX_7_1_ARMv8-Debug/CMakeFiles/CMakeTmp
[cmake]
[cmake] Run Build Command(s):/usr/bin/ninja cmTC_af65b && [1/2] Building CXX object CMakeFiles/cmTC_af65b.dir/testCXXCompiler.cxx.o
[cmake] FAILED: CMakeFiles/cmTC_af65b.dir/testCXXCompiler.cxx.o
[cmake] /home/smit/qnx710_1/host/linux/x86_64/usr/bin/q++ -Vgcc_ntoaarch64le --sysroot=/home/smit/qnx710_1/target/qnx7 -lang-c++ -DQT_QML_DEBUG -Wp,-MD,CMakeFiles/cmTC_af65b.dir/testCXXCompiler.cxx.o.d -Wp,-MT,CMakeFiles/cmTC_af65b.dir/testCXXCompiler.cxx.o -Wp,-MF,CMakeFiles/cmTC_af65b.dir/testCXXCompiler.cxx.o.d -o CMakeFiles/cmTC_af65b.dir/testCXXCompiler.cxx.o -c testCXXCompiler.cxx
[cmake] cc: unknown option: '--sysroot=/home/smit/qnx710_1/target/qnx7'
[cmake] ninja: build stopped: subcommand failed.
[cmake]
[cmake]
[cmake]
[cmake]
[cmake]
[cmake] CMake will not be able to correctly generate this project.
[cmake] Call Stack (most recent call first):
[cmake] CMakeLists.txt:3 (project)
[cmake]
[cmake]
[cmake] -- Configuring incomplete, errors occurred!
[cmake] See also "/home/smit/Downloads/QT_IC_LIB_2025JUN06_2/build/Qt_6_9_1_for_QNX_7_1_ARMv8-Debug/CMakeFiles/CMakeOutput.log".
[cmake] See also "/home/smit/Downloads/QT_IC_LIB_2025JUN06_2/build/Qt_6_9_1_for_QNX_7_1_ARMv8-Debug/CMakeFiles/CMakeError.log".
[cmake]
[cmake] The command "/usr/local/bin/cmake -S /home/smit/Downloads/QT_IC_LIB_2025JUN06_2 -B /home/smit/Downloads/QT_IC_LIB_2025JUN06_2/build/Qt_6_9_1_for_QNX_7_1_ARMv8-Debug -DQT_QMAKE_EXECUTABLE:FILEPATH=/mnt/4ED41108D410F3C5/Qt/QT/6.9.1/qnx71_aarch64le/bin/qmake -DCMAKE_TOOLCHAIN_FILE:FILEPATH=/mnt/4ED41108D410F3C5/Qt/QT/6.9.1/qnx71_aarch64le/lib/cmake/Qt6/qt.toolchain.cmake -DCMAKE_GENERATOR:STRING=Ninja -DCMAKE_CXX_COMPILER_TARGET:STRING=aarch64-qnx-gnu -DCMAKE_CXX_FLAGS_INIT:STRING=-DQT_QML_DEBUG -DCMAKE_C_COMPILER:FILEPATH=/home/smit/qnx710_1/host/linux/x86_64/usr/bin/qcc -DCMAKE_PREFIX_PATH:PATH=/mnt/4ED41108D410F3C5/Qt/QT/6.9.1/qnx71_aarch64le -DCMAKE_PROJECT_INCLUDE_BEFORE:FILEPATH=/home/smit/Downloads/QT_IC_LIB_2025JUN06_2/build/Qt_6_9_1_for_QNX_7_1_ARMv8-Debug/.qtc/package-manager/auto-setup.cmake -DQT_MAINTENANCE_TOOL:FILEPATH=/mnt/4ED41108D410F3C5/Qt/QT/MaintenanceTool -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_CXX_COMPILER:FILEPATH=/home/smit/qnx710_1/host/linux/x86_64/usr/bin/qcc -DCMAKE_COLOR_DIAGNOSTICS:BOOL=ON -DCMAKE_C_COMPILER_TARGET:STRING=aarch64-qnx-gnu -UCMAKE_SYSROOT -DQT_CREATOR_SKIP_MAINTENANCE_TOOL_PROVIDER:BOOL=ON" terminated with exit code 1.
[cmake]
[cmake] Elapsed time: 00:00.
[cmake] Running /usr/local/bin/cmake -S /home/smit/Downloads/QT_IC_LIB_2025JUN06_2 -B /home/smit/Downloads/QT_IC_LIB_2025JUN06_2/build/Qt_6_9_1_for_QNX_7_1_ARMv8-Debug in /home/smit/Downloads/QT_IC_LIB_2025JUN06_2/build/Qt_6_9_1_for_QNX_7_1_ARMv8-Debug.
[cmake] -- The CXX compiler identification is QCC 8.3.0
[cmake] -- Check for working CXX compiler: /home/smit/qnx710_1/host/linux/x86_64/usr/bin/q++
[cmake] -- Check for working CXX compiler: /home/smit/qnx710_1/host/linux/x86_64/usr/bin/q++ -- broken
[cmake] CMake Error at /usr/local/share/cmake-3.16/Modules/CMakeTestCXXCompiler.cmake:53 (message):
[cmake] The C++ compiler
[cmake]
[cmake] "/home/smit/qnx710_1/host/linux/x86_64/usr/bin/q++"
[cmake]
[cmake] is not able to compile a simple test program.
[cmake]
[cmake] It fails with the following output:
[cmake]
[cmake] Change Dir: /home/smit/Downloads/QT_IC_LIB_2025JUN06_2/build/Qt_6_9_1_for_QNX_7_1_ARMv8-Debug/CMakeFiles/CMakeTmp
[cmake]
[cmake] Run Build Command(s):/usr/bin/ninja cmTC_e5f93 && [1/2] Building CXX object CMakeFiles/cmTC_e5f93.dir/testCXXCompiler.cxx.o
[cmake] FAILED: CMakeFiles/cmTC_e5f93.dir/testCXXCompiler.cxx.o
[cmake] /home/smit/qnx710_1/host/linux/x86_64/usr/bin/q++ -Vgcc_ntoaarch64le --sysroot=/home/smit/qnx710_1/target/qnx7 -lang-c++ -DQT_QML_DEBUG -Wp,-MD,CMakeFiles/cmTC_e5f93.dir/testCXXCompiler.cxx.o.d -Wp,-MT,CMakeFiles/cmTC_e5f93.dir/testCXXCompiler.cxx.o -Wp,-MF,CMakeFiles/cmTC_e5f93.dir/testCXXCompiler.cxx.o.d -o CMakeFiles/cmTC_e5f93.dir/testCXXCompiler.cxx.o -c testCXXCompiler.cxx
[cmake] cc: unknown option: '--sysroot=/home/smit/qnx710_1/target/qnx7'
[cmake] ninja: build stopped: subcommand failed.
[cmake]
[cmake]
[cmake]
[cmake]
[cmake]
[cmake] CMake will not be able to correctly generate this project.
[cmake] Call Stack (most recent call first):
[cmake] CMakeLists.txt:3 (project)
[cmake]
[cmake]
[cmake] -- Configuring incomplete, errors occurred!
[cmake] See also "/home/smit/Downloads/QT_IC_LIB_2025JUN06_2/build/Qt_6_9_1_for_QNX_7_1_ARMv8-Debug/CMakeFiles/CMakeOutput.log".
[cmake] See also "/home/smit/Downloads/QT_IC_LIB_2025JUN06_2/build/Qt_6_9_1_for_QNX_7_1_ARMv8-Debug/CMakeFiles/CMakeError.log".
[cmake]
[cmake] The command "/usr/local/bin/cmake -S /home/smit/Downloads/QT_IC_LIB_2025JUN06_2 -B /home/smit/Downloads/QT_IC_LIB_2025JUN06_2/build/Qt_6_9_1_for_QNX_7_1_ARMv8-Debug" terminated with exit code 1.
[cmake]
[cmake] Elapsed time: 00:00.
[cmake] Running /usr/local/bin/cmake -S /home/smit/Downloads/QT_IC_LIB_2025JUN06_2 -B /home/smit/Downloads/QT_IC_LIB_2025JUN06_2/build/Qt_6_9_1_for_QNX_7_1_ARMv8-Debug in /home/smit/Downloads/QT_IC_LIB_2025JUN06_2/build/Qt_6_9_1_for_QNX_7_1_ARMv8-Debug.
[cmake] -- The CXX compiler identification is QCC 8.3.0
[cmake] -- Check for working CXX compiler: /home/smit/qnx710_1/host/linux/x86_64/usr/bin/q++
[cmake] -- Check for working CXX compiler: /home/smit/qnx710_1/host/linux/x86_64/usr/bin/q++ -- broken
[cmake] CMake Error at /usr/local/share/cmake-3.16/Modules/CMakeTestCXXCompiler.cmake:53 (message):
[cmake] The C++ compiler
[cmake]
[cmake] "/home/smit/qnx710_1/host/linux/x86_64/usr/bin/q++"
[cmake]
[cmake] is not able to compile a simple test program.
[cmake]
[cmake] It fails with the following output:
[cmake]
[cmake] Change Dir: /home/smit/Downloads/QT_IC_LIB_2025JUN06_2/build/Qt_6_9_1_for_QNX_7_1_ARMv8-Debug/CMakeFiles/CMakeTmp
[cmake]
[cmake] Run Build Command(s):/usr/bin/ninja cmTC_1c69d && [1/2] Building CXX object CMakeFiles/cmTC_1c69d.dir/testCXXCompiler.cxx.o
[cmake] FAILED: CMakeFiles/cmTC_1c69d.dir/testCXXCompiler.cxx.o
[cmake] /home/smit/qnx710_1/host/linux/x86_64/usr/bin/q++ -Vgcc_ntoaarch64le --sysroot=/home/smit/qnx710_1/target/qnx7 -lang-c++ -DQT_QML_DEBUG -Wp,-MD,CMakeFiles/cmTC_1c69d.dir/testCXXCompiler.cxx.o.d -Wp,-MT,CMakeFiles/cmTC_1c69d.dir/testCXXCompiler.cxx.o -Wp,-MF,CMakeFiles/cmTC_1c69d.dir/testCXXCompiler.cxx.o.d -o CMakeFiles/cmTC_1c69d.dir/testCXXCompiler.cxx.o -c testCXXCompiler.cxx
[cmake] cc: unknown option: '--sysroot=/home/smit/qnx710_1/target/qnx7'
[cmake] ninja: build stopped: subcommand failed.
[cmake]
[cmake]
[cmake]
[cmake]
[cmake]
[cmake] CMake will not be able to correctly generate this project.
[cmake] Call Stack (most recent call first):
[cmake] CMakeLists.txt:3 (project)
[cmake]
[cmake]
[cmake] -- Configuring incomplete, errors occurred!
[cmake] See also "/home/smit/Downloads/QT_IC_LIB_2025JUN06_2/build/Qt_6_9_1_for_QNX_7_1_ARMv8-Debug/CMakeFiles/CMakeOutput.log".
[cmake] See also "/home/smit/Downloads/QT_IC_LIB_2025JUN06_2/build/Qt_6_9_1_for_QNX_7_1_ARMv8-Debug/CMakeFiles/CMakeError.log".
[cmake]
[cmake] The command "/usr/local/bin/cmake -S /home/smit/Downloads/QT_IC_LIB_2025JUN06_2 -B /home/smit/Downloads/QT_IC_LIB_2025JUN06_2/build/Qt_6_9_1_for_QNX_7_1_ARMv8-Debug" terminated with exit code 1.
[cmake]
[cmake] Elapsed time: 00:00.
[cmake] Running /usr/local/bin/cmake -S /home/smit/Downloads/QT_IC_LIB_2025JUN06_2 -B /home/smit/Downloads/QT_IC_LIB_2025JUN06_2/build/Qt_6_9_1_for_QNX_7_1_ARMv8-Debug in /home/smit/Downloads/QT_IC_LIB_2025JUN06_2/build/Qt_6_9_1_for_QNX_7_1_ARMv8-Debug.
[cmake] -- The CXX compiler identification is QCC 8.3.0
[cmake] -- Check for working CXX compiler: /home/smit/qnx710_1/host/linux/x86_64/usr/bin/q++
[cmake] -- Check for working CXX compiler: /home/smit/qnx710_1/host/linux/x86_64/usr/bin/q++ -- broken
[cmake] CMake Error at /usr/local/share/cmake-3.16/Modules/CMakeTestCXXCompiler.cmake:53 (message):
[cmake] The C++ compiler
[cmake]
[cmake] "/home/smit/qnx710_1/host/linux/x86_64/usr/bin/q++"
[cmake]
[cmake] is not able to compile a simple test program.
[cmake]
[cmake] It fails with the following output:
[cmake]
[cmake] Change Dir: /home/smit/Downloads/QT_IC_LIB_2025JUN06_2/build/Qt_6_9_1_for_QNX_7_1_ARMv8-Debug/CMakeFiles/CMakeTmp
[cmake]
[cmake] Run Build Command(s):/usr/bin/ninja cmTC_376f2 && [1/2] Building CXX object CMakeFiles/cmTC_376f2.dir/testCXXCompiler.cxx.o
[cmake] FAILED: CMakeFiles/cmTC_376f2.dir/testCXXCompiler.cxx.o
[cmake] /home/smit/qnx710_1/host/linux/x86_64/usr/bin/q++ -Vgcc_ntoaarch64le --sysroot=/home/smit/qnx710_1/target/qnx7 -lang-c++ -DQT_QML_DEBUG -Wp,-MD,CMakeFiles/cmTC_376f2.dir/testCXXCompiler.cxx.o.d -Wp,-MT,CMakeFiles/cmTC_376f2.dir/testCXXCompiler.cxx.o -Wp,-MF,CMakeFiles/cmTC_376f2.dir/testCXXCompiler.cxx.o.d -o CMakeFiles/cmTC_376f2.dir/testCXXCompiler.cxx.o -c testCXXCompiler.cxx
[cmake] cc: unknown option: '--sysroot=/home/smit/qnx710_1/target/qnx7'
[cmake] ninja: build stopped: subcommand failed.
[cmake]
[cmake]
[cmake]
[cmake]
[cmake]
[cmake] CMake will not be able to correctly generate this project.
[cmake] Call Stack (most recent call first):
[cmake] CMakeLists.txt:3 (project)
[cmake]
[cmake]
[cmake] -- Configuring incomplete, errors occurred!
[cmake] See also "/home/smit/Downloads/QT_IC_LIB_2025JUN06_2/build/Qt_6_9_1_for_QNX_7_1_ARMv8-Debug/CMakeFiles/CMakeOutput.log".
[cmake] See also "/home/smit/Downloads/QT_IC_LIB_2025JUN06_2/build/Qt_6_9_1_for_QNX_7_1_ARMv8-Debug/CMakeFiles/CMakeError.log".
[cmake]
[cmake] The command "/usr/local/bin/cmake -S /home/smit/Downloads/QT_IC_LIB_2025JUN06_2 -B /home/smit/Downloads/QT_IC_LIB_2025JUN06_2/build/Qt_6_9_1_for_QNX_7_1_ARMv8-Debug" terminated with exit code 1.
[cmake]
[cmake] Elapsed time: 00:00.
"
[image: d5fa876c-01af-48f4-a2f3-5dd2969d6d87.png] [image: 1b4e53e1-1231-42d1-9443-0208bcc0c9b1.png] [image: 54ea14a9-a5ed-4352-aa2f-9cb466811cd7.png]