18174478428 发表于 2021-7-12 20:07:24

内置QT,编译出现错误

Project ERROR: Cannot run target compiler 'aarch64-rockchip-linux-gnu-g++'. Output:
===================
===================
Maybe you forgot to setup the environment?

aarch64-rockchip-linux-gnu-g++ -v
Using built-in specs.
COLLECT_GCC=/home/winner/work/pk3586/rk356x_linux_release_20210511/prebuilts/gcc/linux-x86/aarch64/gcc-buildroot-9.3.0-2020.03-x86_64_aarch64-rockchip-linux-gnu/bin/aarch64-rockchip-linux-gnu-g++.br_real
COLLECT_LTO_WRAPPER=/home/winner/work/pk3586/rk356x_linux_release_20210511/prebuilts/gcc/linux-x86/aarch64/gcc-buildroot-9.3.0-2020.03-x86_64_aarch64-rockchip-linux-gnu/bin/../libexec/gcc/aarch64-rockchip-linux-gnu/9.3.0/lto-wrapper
Target: aarch64-rockchip-linux-gnu
Configured with: ./configure --prefix=/home/yhx/RK356X/SDK/buildroot/output/rockchip_toolchain/host --sysconfdir=/home/yhx/RK356X/SDK/buildroot/output/rockchip_toolchain/host/etc --enable-static --target=aarch64-rockchip-linux-gnu --with-sysroot=/home/yhx/RK356X/SDK/buildroot/output/rockchip_toolchain/host/aarch64-rockchip-linux-gnu/sysroot --enable-__cxa_atexit --with-gnu-ld --disable-libssp --disable-multilib --disable-decimal-float --with-gmp=/home/yhx/RK356X/SDK/buildroot/output/rockchip_toolchain/host --with-mpc=/home/yhx/RK356X/SDK/buildroot/output/rockchip_toolchain/host --with-mpfr=/home/yhx/RK356X/SDK/buildroot/output/rockchip_toolchain/host --with-pkgversion='Buildroot 2018.02-rc3-g548dfbfc13-dirty' --with-bugurl=http://bugs.buildroot.net/ --disable-libquadmath --enable-tls --enable-plugins --enable-lto --enable-threads --with-isl=/home/yhx/RK356X/SDK/buildroot/output/rockchip_toolchain/host --with-abi=lp64 --with-cpu=cortex-a55 --enable-languages=c,c++ --with-build-time-tools=/home/yhx/RK356X/SDK/buildroot/output/rockchip_toolchain/host/aarch64-rockchip-linux-gnu/bin --enable-shared --enable-libgomp
Thread model: posix
gcc version 9.3.0 (Buildroot 2018.02-rc3-g548dfbfc13-dirty)

18174478428 发表于 2021-7-13 11:35:31

不管我怎么配置交叉编译环境,总是提示g++找不到,请问这是rockchip提供的交叉编译工具有问题吗?

Liuth 发表于 2021-7-15 15:27:33

请使用sdk里提供的gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu工具

18174478428 发表于 2021-7-21 14:14:09

本帖最后由 18174478428 于 2021-7-21 17:37 编辑

Liuth 发表于 2021-7-15 15:27
请使用sdk里提供的gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu工具
用gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu工具确实能编译通过,可是编译完成后在平台上跑不起
页: [1]
查看完整版本: 内置QT,编译出现错误