NXP MCU 技术论坛
直播中

李华

8年用户 1439经验值
私信 关注
[问答]

S32G2 PFE_demo代码缺少头文件怎么解决?

我正在研究 PFE,Lwip:PFE 演示代码,它是 M7 RTD-PFE 演示代码。代码未编译缺少头文件。它的 NXP SW 包——为什么缺少头文件以及如何获取这些文件。-- 有错误如何构建软件。?????????
C:/S32-DS-Workspace/lwip_s32g274a/stacks/tcpip/code/ports/platform/generic/gcc/setting/arch/cc.h:37:10: fatal error: Dev'assert.h: No such file 或目录
37 | #include "Devassert.h"
| ^~~~~~~~~~~~~
编译终止。
制作:*** [stacks/tcpip/lwip/src/netif/ppp/polarssl/subdir.mk:32: stacks/tcpip/lwip/src/netif/ppp/polarssl/arc4.o] 错误 1 ​​制作:
** * 等待未完成的工作....
在包含的文件中../stacks/tcpip/lwip/src/include/lwip/arch.h:48,
来自../stacks/tcpip/lwip/src/include/lwip/ debug.h:40,
来自../stacks/tcpip/lwip/src/include/lwip/opt.h:52,
来自../stacks/tcpip/lwip/src/include/netif/ppp/ppp_opts.h: 31,
来自../stacks/tcpip/lwip/src/netif/ppp/polarssl/des.c:42:
C:/S32-DS-Workspace/lwip_s32g274a/stacks/tcpip/code/ports/platform/generic/gcc/setting/arch/cc.h:37:10: fatal error: Devassert.h: No such file or directory
37 | #include "Devassert.h"
| ^~~~~~~~~~~~~
在 ../stacks/tcpip/lwip/src/include/lwip/arch.h:48 包含的文件中,
来自 ../stacks/tcpip/lwip/src/包括/lwip/debug.h:40,
来自../stacks/tcpip/lwip/src/include/lwip/opt.h:52,
来自../stacks/tcpip/lwip/src/include/netif/ppp/ ppp_opts.h:31,
来自 ../stacks/tcpip/lwip/src/netif/ppp/polarssl/md4.c:42:
C:/S32-DS-Workspace/lwip_s32g274a/stacks/tcpip/code/ports/platform /generic/gcc/setting/arch/cc.h:37:10: 致命错误:Devassert.h: 没有那个文件或目录
37 | #include "Devassert.h"
| ^~~~~~~~~~~~~
在包含的文件中,来自 ../stacks/tcpip/lwip/src/include/lwip/arch.h:48,
来自 ../stacks/tcpip/lwip/src/include/lwip/debug.h:40,
来自 .. /stacks/tcpip/lwip/src/include/lwip/opt.h:52,
来自../stacks/tcpip/lwip/src/include/netif/ppp/ppp_opts.h:31,
来自../stacks/tcpip /lwip/src/netif/ppp/auth.c:71:
C:/S32-DS-Workspace/lwip_s32g274a/stacks/tcpip/code/ports/platform/generic/gcc/setting/arch/cc.h:37: 10:致命错误:Devassert.h:没有那个文件或目录
37 | #include "Devassert.h"
---------------------------------------------- ----------------------------------
arm-none-eabi-gcc "@stacks/tcpip/code/apps/udpecho_raw/udpecho_raw.args" -MMD -MP -MF"stacks/tcpip/code/apps/udpecho_raw/udpecho_raw.d" -MT"stacks/tcpip /code/apps/udpecho_raw/udpecho_raw.o" -o "stacks/tcpip/code/apps/udpecho_raw/udpecho_raw.o" "../stacks/tcpip/code/apps/udpecho_raw/udpecho_raw.c"
arm-none- eabi-gcc "@stacks/tcpip/code/apps/udpecho/udpecho.args" -MMD -MP -MF"stacks/tcpip/code/apps/udpecho/udpecho.d" -MT"stacks/tcpip/code/apps /udpecho/udpecho.o" -o "stacks/tcpip/code/apps/udpecho/udpecho.o" "../stacks/tcpip/code/apps/udpecho/udpecho.c"
../stacks/tcpip/code /ports/osif/rtd/OsIf_rtd_port.c:72:10: 致命错误: Devassert.h: 没有这样的文件或目录
72 | #include "Devassert.h"
| ^~~~~~~~~~~~~

编译终止。
make: *** [stacks/tcpip/code/ports/osif/rtd/subdir.mk:20: stacks/tcpip/code/ports/osif/rtd/OsIf_rtd_port.o] 错误 1 ​​make: *** 等待未
完成作业....
构建文件:../stacks/tcpip/code/apps/tcpecho_raw/tcpecho_raw.c
在文件中包含自 ../RTD/include/Gmac_Ip_Device_Registers.h:75,
来自 ../RTD/include/Gmac_Ip_Types .h:75,
来自 ../RTD/include/Gmac_Ip.h:82,
来自 ../stacks/tcpip/code/ports/netif/gmacif/rtd/gmacif.c:174:
C:/S32-DS- Workspace/lwip_s32g274a/generate/include/Mcal.h:55:10: fatal error: Compiler.h: No such file or directory
55 | #include "编译器.h"
| ^~~~~~~~~~~~
调用:标准S32DS C编译器
arm-none-eabi-gcc "@stacks/tcpip/code/apps/tcpecho_raw/tcpecho_raw.args" -MMD -MP -MF"stacks/tcpip/code/apps/tcpecho_raw/tcpecho_raw.d" -MT"stacks/tcpip /code/apps/tcpecho_raw/tcpecho_raw.o" -o "stacks/tcpip/code/apps/tcpecho_raw/tcpecho_raw.o" "../stacks/tcpip/code/apps/tcpecho_raw/tcpecho_raw.c"
编译终止。
make: *** [stacks/tcpip/code/ports/netif/gmacif/rtd/subdir.mk:20: stacks/tcpip/code/ports/netif/gmacif/rtd/gmacif.o] 错误 1 ​​在包含的文件
中../RTD/include/OsIf.h:45,
来自 ../stacks/tcpip/code/ports/OS/sys_arch.c:109:
../RTD/include/OsIf_Internal.h:44:10: 致命错误: StandardTypes.h: 没有那个文件或目录
44 | #include "StandardTypes.h"
| ^~~~~~~~~~~~~~~~~
完成建筑:..
编译终止。
make: *** [stacks/tcpip/code/ports/OS/subdir.mk:20: stacks/tcpip/code/ports/OS/sys_arch.o] 错误 1 ​​完成

构建:../stacks/tcpip/code/ apps/udpecho_raw/udpecho_raw.c
完成构建:../stacks/tcpip/lwip/src/api/sockets.c


完成构建:../stacks/tcpip/code/apps/udpecho/udpecho.c

完成构建:.. /stacks/tcpip/code/apps/tcpecho_raw/tcpecho_raw.c“make

-j8 all”以退出代码 2 终止。构建可能不完整。
23:23:49 构建失败。7 个错误,0 个警告。(耗时 4m:46s.78ms)
//------------------------------------
../stacks/tcpip/code/ports/osif/rtd/OsIf_rtd_port.c:75:10: 致命错误:S32G274A_SCB.h: 没有这样的文件或目录
75 | #include "S32G274A_SCB.h"
| ^~~~~~~~~~~~~~~~
文件包含自 ../RTD/include/Gmac_Ip_Device_Registers.h:75,
来自 ../RTD/include/Gmac_Ip_Types.h:75,
来自 .. /RTD/include/Gmac_Ip.h:82,
来自 ../stacks/tcpip/code/ports/netif/gmacif/rtd/gmacif.c:174:
C:/S32-DS-Workspace/lwip_s32g274a/generate/include/ Mcal.h:55:10: 致命错误: Compiler.h: 没有那个文件或目录
55 | #include "编译器.h"
| ^~~~~~~~~~~~
编译终止。
编译终止。
make: *** [stacks/tcpip/code/ports/osif/rtd/subdir.mk:20: stacks/tcpip/code/ports/osif/rtd/OsIf_rtd_port.o] 错误 1
make: *** 等待未完成的工作....
make: *** [stacks/tcpip/code/ports/netif/gmacif/rtd/subdir.mk:20: stacks/tcpip/code/ports/netif/gmacif /rtd/gmacif.o] Error 1
In file included from ../RTD/include/OsIf.h:45,
from ../stacks/tcpip/code/ports/OS/sys_arch.c:109:
../RTD /include/OsIf_Internal.h:44:10: 致命错误: StandardTypes.h: 没有这样的文件或目录
44 | #include "StandardTypes.h"
| ^~~~~~~~~~~~~~~~~
编译终止。
make: *** [stacks/tcpip/code/ports/OS/subdir.mk:20: stacks/tcpip/code/ports/OS/sys_arch.o] 错误 1

更多回帖

发帖
×
20
完善资料,
赚取积分