cancel
Showing results for 
Search instead for 
Did you mean: 

qt cross compile fail for STM32MP257F-DK

LeonSu
Associate

Hello! everyone.

//-------------- Host -------------

OS: Ubuntu 22.04

Kernel: Linux leonsu-MINIPC-VC66-C2 6.8.0-52-generic 

//----------- board ----------

STM32MP257F-DK

kernel: Linux stm32mp2-e3-aa-db 6.6.48 

//-----------------------------------------

I followed the STM32MPU Developer Package[1] and  X-LINUX-QT Expansion Package[2] to setup up the SDK and X-LINUX-QT Developer Package, respectively.

SDK Version: 6.0.0

 X-LINUX-QT Developer Package Version: 2.0.1

 

I try to build qt example followed the section 7.1[2], I get some error message in following:

Spoiler

/home/leonsu/STM32MPU-Ecosystem/Developer-Package/SDK/sysroots/x86_64-ostl_sdk-linux/usr/libexec/aarch64-ostl-linux/gcc/aarch64-ostl-linux/13.3.0/ld: warning: libicui18n.so.72, needed by /home/leonsu/STM32MPU-Ecosystem/Developer-Package/SDK/sysroots/cortexa35-ostl-linux/usr/lib/libQt6Core.so.6.5.3, not found (try using -rpath or -rpath-link)
/home/leonsu/STM32MPU-Ecosystem/Developer-Package/SDK/sysroots/x86_64-ostl_sdk-linux/usr/libexec/aarch64-ostl-linux/gcc/aarch64-ostl-linux/13.3.0/ld: warning: libicuuc.so.72, needed by /home/leonsu/STM32MPU-Ecosystem/Developer-Package/SDK/sysroots/cortexa35-ostl-linux/usr/lib/libQt6Core.so.6.5.3, not found (try using -rpath or -rpath-link)
/home/leonsu/STM32MPU-Ecosystem/Developer-Package/SDK/sysroots/x86_64-ostl_sdk-linux/usr/libexec/aarch64-ostl-linux/gcc/aarch64-ostl-linux/13.3.0/ld: /home/leonsu/STM32MPU-Ecosystem/Developer-Package/SDK/sysroots/cortexa35-ostl-linux/usr/lib/libQt6Core.so.6.5.3: undefined reference to `ucnv_getFromUCallBack_72'

........

 

/home/leonsu/STM32MPU-Ecosystem/Developer-Package/SDK/sysroots/x86_64-ostl_sdk-linux/usr/libexec/aarch64-ostl-linux/gcc/aarch64-ostl-linux/13.3.0/ld: /home/leonsu/STM32MPU-Ecosystem/Developer-Package/SDK/sysroots/cortexa35-ostl-linux/usr/lib/libQt6Core.so.6.5.3: undefined reference to `uenum_next_72'
/home/leonsu/STM32MPU-Ecosystem/Developer-Package/SDK/sysroots/x86_64-ostl_sdk-linux/usr/libexec/aarch64-ostl-linux/gcc/aarch64-ostl-linux/13.3.0/ld: /home/leonsu/STM32MPU-Ecosystem/Developer-Package/SDK/sysroots/cortexa35-ostl-linux/usr/lib/libQt6Core.so.6.5.3: undefined reference to `ucal_setMillis_72'
collect2: error: ld returned 1 exit status
gmake[2]: *** [CMakeFiles/KDABBoatDemo.dir/build.make:305: KDABBoatDemo] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:88: CMakeFiles/KDABBoatDemo.dir/all] Error 2
gmake: *** [Makefile:91: all] Error 2

the version of libicu70 in SDK is libicui18n.so.74 not match to libicui18n.so.72, show in following

001.png

How do I fix the error. 

Thank in advance.

reference:

1.STM32MPU Developer Package, https://wiki.st.com/stm32mpu/wiki/STM32MPU_Developer_Package

2.X-LINUX-QT Expansion Package, https://wiki.st.com/stm32mpu/wiki/X-LINUX-QT_Expansion_Package

 

0 REPLIES 0