文基于触觉智能RK3506星闪开发板Buildroot系统进行演示,配套RK3506核心板(3核A7+M0多核异构)宽温级59元/工业级68元,一片也是含税批量价~
?
Buildroot SDK安装与环境搭建
- 
SDK安装  
?
?md5sum?arm-buildroot-linux-gnueabihf_sdk-buildroot.tar.gz
?
?tar -xvf arm-buildroot-linux-gnueabihf_sdk-buildroot.tar.gz -C ./
- 
交叉编译环境搭建  
?
?cd?./arm-buildroot-linux-gnueabihf_sdk-buildroot?./relocate-sdk.sh
搭建环境后,查看qmake版本和交叉编译工具链版本:
?
$ ./bin/arm-buildroot-linux-gnueabihf-gcc -v?使用内建 specs。COLLECT_GCC=/mnt//rk3506/rk3506_linux-250211/rk3506_linux6.1/buildroot/output/rockchip_rk3506-emmc/images/tmp/arm-buildroot-linux-gnueabihf_sdk-buildroot/bin/arm-buildroot-linux-gnueabihf-gcc.br_realCOLLECT_LTO_WRAPPER=/mnt/rk3506/rk3506_linux-250211/rk3506_linux6.1/buildroot/output/rockchip_rk3506-emmc/images/tmp/arm-buildroot-linux-gnueabihf_sdk-buildroot/bin/../libexec/gcc/arm-buildroot-linux-gnueabihf/12.4.0/lto-wrapper目标:arm-buildroot-linux-gnueabihf配置为:./configure --prefix=/mnt/rk3506/rk3506_linux-250211/rk3506_linux6.1/buildroot/output/rockchip_rk3506-emmc/host --sysconfdir=/mnt/rk3506/rk3506_linux-250211/rk3506_linux6.1/buildroot/output/rockchip_rk3506-emmc/host/etc?--enable-static --target=arm-buildroot-linux-gnueabihf --with-sysroot=/mnt/rk3506/rk3506_linux-250211/rk3506_linux6.1/buildroot/output/rockchip_rk3506-emmc/host/arm-buildroot-linux-gnueabihf/sysroot?--enable-__cxa_atexit --with-gnu-ld --disable-libssp --disable-multilib --disable-decimal-float --enable-plugins --enable-lto --with-gmp=/mnt/rk3506/rk3506_linux-250211/rk3506_linux6.1/buildroot/output/rockchip_rk3506-emmc/host?--with-mpc=/mnt/rk3506/rk3506_linux-250211/rk3506_linux6.1/buildroot/output/rockchip_rk3506-emmc/host --with-mpfr=/mnt/rk3506/rk3506_linux-250211/rk3506_linux6.1/buildroot/output/rockchip_rk3506-emmc/host --with-pkgversion='Buildroot -g0b15601a4-dirty'?--with-bugurl=https://gitlab.com/buildroot.org/buildroot/-/issues --without-zstd --disable-libquadmath --disable-libquadmath-support --enable-tls --enable-threads --without-isl --without-cloog --with-abi=aapcs-linux --with-cpu=cortex-a7 --with-fpu=neon-vfpv4?--with-float=hard --with-mode=arm --enable-languages=c,c++ --with-build-time-tools=/mnt/rk3506/rk3506_linux-250211/rk3506_linux6.1/buildroot/output/rockchip_rk3506-emmc/host/arm-buildroot-linux-gnueabihf/bin --enable-shared --disable-libgomp线程模型:posixSupported LTO compression algorithms: zlibgcc 版本 12.4.0 (Buildroot -g0b15601a4-dirty)$ ./bin/qmake -v?QMake version 3.1Using Qt version 5.15.11?in?/mnt/rk3506/rk3506_linux-250211/rk3506_linux6.1/buildroot/output/rockchip_rk3506-emmc/images/tmp/arm-buildroot-linux-gnueabihf/sysroot/usr/lib
Qt交叉编译
- 
Qt源码demo  
?
$?mkdir?-p ./qt-demo && tar -xvf moveblocks.tar.gz -C ./qt-demo?cd?qt-demo?lsmain.cpp ?moveblocks.pro
- 
交叉编译  
?
?/home/rk3506/rk3506_linux-250211/rk3506_linux6.1/buildroot/output/rockchip_rk3506-emmc/images/tmp/arm-buildroot-linux-gnueabihf_sdk-buildroot/bin/qmake ./?make?make install?lsmain.cpp ?Makefile ?moveblocks ?moveblocks.pro
Qt验证
- ?
 
?adb push Z:moveblocks /tmp
?
?chmod? a+x /tmp/moveblocks?/tmp/moveblocks
							阅读全文
							
						
					
								
								
								
1219