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.

[参考译文] TDA4VM:不能包含<sys/socket.h>和<netinet/in.h>

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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1057385/tda4vm-not-able-to-include-sys-socket-h-and-netinet-in-h

器件型号:TDA4VM

您好!

我正在为 A72内核编写一个应用、该应用使用 pdk_jacinto_07_03_00_29中的 socket.h 和 in.h 头文件、但无法包含这些文件。 我收到以下错误:ti/build$ make -s  enet_testapp  Board=j721e_evm core=mpu1_0 profile=release build_os=linux# compiling j721e_evm:j721e:mpu1_0:release:enet_testapp: main.cmain:23:10: fatal error: ausr/sube/linux-include/no-directory/lib-usr

我可以包括 stdio.h、string.h 和各种其他标准头文件。 此外、在构建中的 pdk_tools_path.mk 文件中、我发现使用了 gcc-arm-9.2-2019.12-x86_64 - none-elf。 因为头文件中没有套接字和。 我发现 在 gcc-arm-9.2-2019.12-x86_64-arch64-no-linux-GNU 中存在头文件。 我也尝试添加该 filepath、但遇到类似的错误。 是否可以在 pdk_tools_path.mk 文件的工具链中添加该字段路径,或以任何其他方式解决此问题。 谢谢。

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

    Meghant、  

    您需要在  要构建的同一终端上运行 pdksetupenv.bat (windows)或 pdksetupenv.sh (Linux)、以使用工具目录进行路径设置。  

    Jian