野火电子论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 16|回复: 1

[求助] Project ERROR: Cannot run target compiler 'g++'. Output:

[复制链接]
发表于 前天 18:57 | 显示全部楼层 |阅读模式
  1. 18:55:43: 为项目untitled执行步骤 ...
  2. 18:55:43: 正在启动 "/home/lucasyuen/sysroot/opt/prefix/bin/qmake6" /home/lucasyuen/qtprj/untitled/untitled.pro -spec devices/linux-zynq-g++ CONFIG+=debug CONFIG+=qml_debug

  3. Info: creating stash file /home/lucasyuen/qtprj/untitled/build/Zynq-Debug/.qmake.stash
  4. Project ERROR: Cannot run target compiler 'g++'. Output:
  5. ===================
  6. Using built-in specs.
  7. COLLECT_GCC=g++
  8. OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa
  9. OFFLOAD_TARGET_DEFAULT=1
  10. g++: error: unrecognized command-line option '-mfloat-abi=softfp'
  11. Target: x86_64-linux-gnu
  12. Configured with: ../src/configure -v --with-pkgversion='Ubuntu 11.4.0-1ubuntu1~22.04' --with-bugurl=file:///usr/share/doc/gcc-11/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-11 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --enable-cet --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-11-XeT9lY/gcc-11-11.4.0/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/gcc-11-XeT9lY/gcc-11-11.4.0/debian/tmp-gcn/usr --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-serialization=2
  13. Thread model: posix
  14. Supported LTO compression algorithms: zlib zstd
  15. gcc version 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04)
  16. ===================
  17. Maybe you forgot to setup the environment?
  18. 18:55:43: 进程"/home/lucasyuen/sysroot/opt/prefix/bin/qmake6"退出,退出代码 3 。
  19. Error while building/deploying project untitled (kit: Zynq)
  20. The kit Zynq has configuration issues which might be the root cause for this problem.
  21. When executing step "qmake"
  22. 18:55:43: Elapsed time: 00:00.
复制代码
我通过交叉编译生成了目标架构的库,并且检查了LibQt6Core.so是32bit的。然后我进行了kit套件配置,能够确定是用的编译器是正确的,但仍旧报这个错误,我不明白是为什么,工程中.ui文件也没生成
回复

使用道具 举报

 楼主| 发表于 昨天 14:01 | 显示全部楼层
已解决,是因为我的qmake.conf在配置时没有指定一些内容
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

联系站长|手机版|野火电子官网|野火淘宝店铺|野火电子论坛 ( 粤ICP备14069197号 ) 大学生ARM嵌入式2群

GMT+8, 2024-12-5 09:57 , Processed in 0.107274 second(s), 26 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表