Hi
We are using the SDK built by the command "bitbake -c populate_sdk imx-image-full", and try to configure the kit on Qt creator.
But There is an error when we try to build a CMake project ( only has a windows, created by Qt creator named “untitled”), see the message as follow:
```
[cmake] Running /home/vmware/Qt/Tools/CMake/bin/cmake -S /home/vmware/untitled1 -B /home/vmware/untitled1/build/IMX8_Qt_6_7_0_cross_compiler-Debug in /home/vmware/untitled1/build/IMX8_Qt_6_7_0_cross_compiler-Debug.
[cmake] -- The CXX compiler identification is GNU 13.2.0
[cmake] -- Detecting CXX compiler ABI info
[cmake] -- Detecting CXX compiler ABI info - failed
[cmake] -- Check for working CXX compiler: /opt/fsl-imx-xwayland/6.6-scarthgap/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-gcc
[cmake] -- Check for working CXX compiler: /opt/fsl-imx-xwayland/6.6-scarthgap/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-gcc - broken
[cmake] CMake Error at /home/vmware/Qt/Tools/CMake/share/cmake-3.29/Modules/CMakeTestCXXCompiler.cmake:73 (message):
[cmake] The C++ compiler
[cmake]
[cmake] "/opt/fsl-imx-xwayland/6.6-scarthgap/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-gcc"
[cmake]
[cmake] is not able to compile a simple test program.
[cmake]
[cmake] It fails with the following output:
[cmake]
[cmake] Change Dir: '/home/vmware/untitled1/build/IMX8_Qt_6_7_0_cross_compiler-Debug/CMakeFiles/CMakeScratch/TryCompile-F8xff4'
[cmake]
[cmake] Run Build Command(s): /home/vmware/Qt/Tools/Ninja/ninja -v cmTC_59d22
[cmake] [1/2] /opt/fsl-imx-xwayland/6.6-scarthgap/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-gcc -DQT_QML_DEBUG -fdiagnostics-color=always -o CMakeFiles/cmTC_59d22.dir/testCXXCompiler.cxx.o -c /home/vmware/untitled1/build/IMX8_Qt_6_7_0_cross_compiler-Debug/CMakeFiles/CMakeScratch/TryCompile-F8xff4/testCXXCompiler.cxx
[cmake] [2/2] : && /opt/fsl-imx-xwayland/6.6-scarthgap/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-gcc -DQT_QML_DEBUG CMakeFiles/cmTC_59d22.dir/testCXXCompiler.cxx.o -o cmTC_59d22 && :
[cmake] FAILED: cmTC_59d22
[cmake] : && /opt/fsl-imx-xwayland/6.6-scarthgap/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-gcc -DQT_QML_DEBUG CMakeFiles/cmTC_59d22.dir/testCXXCompiler.cxx.o -o cmTC_59d22 && :
[cmake] /opt/fsl-imx-xwayland/6.6-scarthgap/sysroots/x86_64-pokysdk-linux/usr/libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/13.2.0/ld: cannot find Scrt1.o: No such file or directory
[cmake] /opt/fsl-imx-xwayland/6.6-scarthgap/sysroots/x86_64-pokysdk-linux/usr/libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/13.2.0/ld: cannot find crti.o: No such file or directory
[cmake] /opt/fsl-imx-xwayland/6.6-scarthgap/sysroots/x86_64-pokysdk-linux/usr/libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/13.2.0/ld: cannot find crtbeginS.o: No such file or directory
[cmake] /opt/fsl-imx-xwayland/6.6-scarthgap/sysroots/x86_64-pokysdk-linux/usr/libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/13.2.0/ld: cannot find -lgcc: No such file or directory
[cmake] /opt/fsl-imx-xwayland/6.6-scarthgap/sysroots/x86_64-pokysdk-linux/usr/libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/13.2.0/ld: cannot find -lgcc_s: No such file or directory
[cmake] /opt/fsl-imx-xwayland/6.6-scarthgap/sysroots/x86_64-pokysdk-linux/usr/libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/13.2.0/ld: cannot find -lc: No such file or directory
[cmake] /opt/fsl-imx-xwayland/6.6-scarthgap/sysroots/x86_64-pokysdk-linux/usr/libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/13.2.0/ld: cannot find -lgcc: No such file or directory
[cmake] /opt/fsl-imx-xwayland/6.6-scarthgap/sysroots/x86_64-pokysdk-linux/usr/libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/13.2.0/ld: cannot find -lgcc_s: No such file or directory
[cmake] /opt/fsl-imx-xwayland/6.6-scarthgap/sysroots/x86_64-pokysdk-linux/usr/libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/13.2.0/ld: cannot find crtendS.o: No such file or directory
[cmake] /opt/fsl-imx-xwayland/6.6-scarthgap/sysroots/x86_64-pokysdk-linux/usr/libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/13.2.0/ld: cannot find crtn.o: No such file or directory
[cmake] collect2: error: ld returned 1 exit status
[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]
[cmake] The command "/home/vmware/Qt/Tools/CMake/bin/cmake -S /home/vmware/untitled1 -B /home/vmware/untitled1/build/IMX8_Qt_6_7_0_cross_compiler-Debug" terminated with exit code 1.
[cmake]
[cmake] Elapsed time: 00:00.
```
And here are the configurations of the kit
(g++ is the file in the same path as gcc)
How could we solve this problem. We are not sure if is correct that we comment out the code about test-compiling.
Best regards
Mingheng
Hello,
You are using other BSP that is not from NXP, so the BSP from NXP has the proper toolchain to compile and build this part, SO or its simple the toolchain or you download and try the NXP BSP.
Regards