cancel
Showing results for 
Search instead for 
Did you mean: 

Hi: I can't find qmake in 4.0.1-openstlinux-5.15-yocto-kirkstone-mp1-v22.06.15. When I use qtcreater5.15, I can't create STM32 code.

zxiao.4
Associate III

When I use cmake,

/opt/st/stm32mp1/4.0.1-openstlinux-5.15-yocto-kirkstone-mp1-v22.06.15/sysroots/x86_64-ostl_sdk-linux/usr/share/cmake-3.22/Modules/CMakeTestCXXCompiler.cmake:62: error: The C++ compiler "/opt/st/stm32mp1/4.0.1-openstlinux-5.15-yocto-kirkstone-mp1-v22.06.15/sysroots/x86_64-ostl_sdk-linux/usr/bin/arm-ostl-linux-gnueabi/arm-ostl-linux-gnueabi-g++" is not able to compile a simple test program. It fails with the following output: Change Dir: /home/zxb/qt_proj/build-untitled1-Stm32mp1-Debug/CMakeFiles/CMakeTmp Run Build Command(s):/opt/st/stm32mp1/4.0.1-openstlinux-5.15-yocto-kirkstone-mp1-v22.06.15/sysroots/x86_64-ostl_sdk-linux/usr/bin/ninja cmTC_1f845 && [1/2] Building CXX object CMakeFiles/cmTC_1f845.dir/testCXXCompiler.cxx.o [2/2] Linking CXX executable cmTC_1f845 FAILED: cmTC_1f845 : && /opt/st/stm32mp1/4.0.1-openstlinux-5.15-yocto-kirkstone-mp1-v22.06.15/sysroots/x86_64-ostl_sdk-linux/usr/bin/arm-ostl-linux-gnueabi/arm-ostl-linux-gnueabi-g++ --sysroot=/opt/st/stm32mp1/4.0.1-openstlinux-5.15-yocto-kirkstone-mp1-v22.06.15/sysroots/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi -O2 -pipe -g -feliminate-unused-debug-types -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed CMakeFiles/cmTC_1f845.dir/testCXXCompiler.cxx.o -o cmTC_1f845  && : /opt/st/stm32mp1/4.0.1-openstlinux-5.15-yocto-kirkstone-mp1-v22.06.15/sysroots/x86_64-ostl_sdk-linux/usr/libexec/arm-ostl-linux-gnueabi/gcc/arm-ostl-linux-gnueabi/11.2.0/real-ld: error: cmTC_1f845 uses VFP register arguments, CMakeFiles/cmTC_1f845.dir/testCXXCompiler.cxx.o does not /opt/st/stm32mp1/4.0.1-openstlinux-5.15-yocto-kirkstone-mp1-v22.06.15/sysroots/x86_64-ostl_sdk-linux/usr/libexec/arm-ostl-linux-gnueabi/gcc/arm-ostl-linux-gnueabi/11.2.0/real-ld: failed to merge target specific data of file CMakeFiles/cmTC_1f845.dir/testCXXCompiler.cxx.o collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed.

I got this...​How can I configure Qtcreator to work normally?

1 REPLY 1
Olivier GALLIEN
ST Employee

Hi @zxiao.4​ ,

Not sure it will fix your problem but please update to 4.0.2 release and let us know if you still have issue

OpenSTLinux Distribution patch release V4.0.2 is available

Olivier

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.