
清空记录
历史记录
取消
清空记录
历史记录

(点击视频,领略RK3506核心板59元超高性价比方案)
Buildroot 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 -vQMake 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交叉编译
$ mkdir -p ./qt-demo && tar -xvf moveblocks.tar.gz -C ./qt-democd qt-demolsmain.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
开发板购买路径
