This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] Linux/AM5728:致命错误:GNU/stubs-soft.h:无此类文件或目录# include <GNU/stubs-soft.h>

Guru**** 2003005 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/586656/linux-am5728-fatal-error-gnu-stubs-soft-h-no-such-file-or-directory-include-gnu-stubs-soft-h

器件型号:AM5728

工具/软件:Linux

我在 从 Qt/编译简单程序期间遇到此错误

在/home/ilya/Desktop/sitara/sdk/ti-processor-sdk-linux-am57xx-evm-03.02.00.05/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/features.h:389:0中包含的文件中、
来自/usr/include/x86_64-linux-gnu/c ++/4.8/bits/OS_defins.h:39、
来自/usr/include/x86_64-linux-gnu/c ++/4.8/bits/c++config.h:426、
来自/usr/include/c ++/4.8/cstddef:41、
从./../../Desktop/sitara/sdk/ti-processor-sdk-linux-am57xx-evm-03.02.00.05/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qglobal.h:39、
从./../../Desktop/sitara/sdk/ti-processor-sdk-linux-am57xx-evm-03.02.00.05/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtGui/qwindowdefs.h:37、
从./../../Desktop/sitara/sdk/ti-processor-sdk-linux-am57xx-evm-03.02.00.05/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtWidgets/qwidget.h:37、
从./../../Desktop/sitara/sdk/ti-processor-sdk-linux-am57xx-evm-03.02.00.05/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtWidgets/qmainwindow.h:37、
从./../../Desktop/sitara/sdk/ti-processor-sdk-linux-am57xx-evm-03.02.00.05/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtWidgets/QMainWindow:1、
从 Mainwindow.h:4、
从 main.cpp:1:
/home/ilya/Desktop/sitara/sdk/ti-processor-sdk-linux-am57xx-evm-03.02.00.05/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/gnu/stubs.h:6:29:致命错误:GNU/stubs-soft.h:无此类文件或目录
#包含
^μ A
编译已终止。
make:***[main.o]错误1
16:57:24:进程"/usr/bin/make "退出、代码为2。
构建/部署项目测试时出错(套件:linaro-toolchain)
执行步骤"make"时

我的环境是:

调试器-/gcc-linaro-5.3-2016.02-x86_64 arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gdb
编译器-/gcc-linaro-5.3-2016.02-x86_64 arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc
QT 版本-/ti-processor-sdk-linux-am57xx-evm-03.02.00.05/linux-devkit/sysroots/x86_64 Arago-linux/usr/bin/qt5/qmake
对于运行 Qt、我使用我的脚本:
CD /home/ilya/Desktop/sitara/sdk/ti-processor-sdk-linux-am57xx-evm-03.02.00.05/linux-devkit
源环境设置
qtcreator   
在我的文件.pro 中:

Qt +=内核 GUI

ggreaterthan (QT_maj_version、4):Qt +=小部件

Target = TEST
模板=应用程序


sources += main.cpp\
mainwindow.cpp

headers += mainwindow.h

FORMS += Mainwindow.ui

target.path +=/home/root
安装+=目标

一段时间前、我运行了一个具有类似设置的程序、它可以正常工作、但当我添加了一些文件时(最可能是因为#include ...)、出现此错误。
此错误的原因是什么?
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    Yuri、您好!

    请阅读 此主题。

    此致、
    Kemal

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    Thx、Kemal 为您答疑解难。
    我回到以前的环境版本(ti-processor-sdk-linux-am57xx-evm-03.02.00.05)、现在开始工作。
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    你(们)好,Yuri。  

    我作为你有一个问题。 您能向我分享您的解决方案吗?  

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。