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.

RTOS/TDA2PXEVM: Not able to compile Network tool which is provided with SDK

Part Number: TDA2PXEVM
Other Parts Discussed in Thread: TDA2

Tool/software: TI-RTOS

Hello Experts,

I wanted to use the network tool provided by latest SDK.

network tool is not getting compiled

I have updated the RUELS.MK and COMMON_HEADER.MK file with appropriate toolchain path

But still network tool is not compiling

Below are the errors I am getting

workspace/SDK_VISION_03_06_00_00/vision_sdk/apps/tools/network_tools/build/../common/inc/tfdtp_api.h:80:24: fatal error: sys/socket.h: No such file or directory

#include <sys/socket.h>

                        ^

compilation terminated.

In file included from tfdtp_api.c:73:0:

../inc/tfdtp_api.h:80:24: fatal error: sys/socket.h: No such file or directory

#include <sys/socket.h>

                        ^

compilation terminated.

make[3]: *** [depend] Error 1

make[3]: Leaving directory `/data/work/rveer/workspace/SDK_VISION_03_06_00_00/vision_sdk/apps/tools/network_tools/common/src'

make[2]: *** [libs] Error 2

make[2]: Leaving directory `/data/work/rveer/workspace/SDK_VISION_03_06_00_00/vision_sdk/apps/tools/network_tools/build'

make[1]: *** [depend] Error 2

make[1]: Leaving directory `/data/work/rveer/workspace/SDK_VISION_03_06_00_00/vision_sdk/apps/tools/network_tools/build'

Please let me know the solution for compiling network tool

Regards,

Chaitra

  • Hi Chaitra,

    can you check if you have installed all packages listed in "2.2.3 Other mandatory software packages for build" of the VisionSDK_Linux_UserGuide.pdf.
    (I am concerned that libc-dev package might be missing on your PC).

    Regards,
    Yordan
  • Hi Yordan,

    All the manadtory packages are installed.

    Please let me know is there any other steps to compile the network tool.

    Regards,

    Chaitra

  • Hi Chaitra,

    can you check if you have '/usr/include/sys/socket.h' file on your PC?

    Regards,
    Yordan
  • HI Yordan,

    /usr/include/sys/socket.h is present in my system

    it is a system file

    we need to build network tool against below toolchain/pacakage

    sdk/ti/PROCESSOR_SDK_VISION_03_03_00_00/ti_components/networking/nsp_gmacsw_4_15_00_00/packages

    or

    sdk/ti/PROCESSOR_SDK_VISION_03_03_00_00/ti_components/networking/ndk_2_24_02_31/packages

    we have edited the source/vision/platform/ti/tda2/apps/tools/network_tools/build/RULES.MK file as mentioned below

    BUILD_OS=Linux

    ifeq ($(BUILD_OS),Linux)
    MAKE = make
    CGTOOLS_PATH=/home/chreddy/workspace/FFC_ADAS/FFC/FFC_WORKSPACE/sdk/ti/PROCESSOR_SDK_VISION_03_03_00_00/ti_components/cg_tools/linux/gcc-arm-none-eabi-4_9-2015q3
    NSP_INCLUDE_PATH=/home/chreddy/workspace/FFC_ADAS/FFC/FFC_WORKSPACE/sdk/ti/PROCESSOR_SDK_VISION_03_03_00_00/ti_components/networking/ndk_2_24_02_31/packages/ti/ndk
    endif

    please let me know if any changes are required

    Regards,

  • Hi Chaitra,

    Network Tool is a PC side tool, so for CGTOOLS_PATH you need to use path to your native gcc compiler, usually you should have:

    CGTOOLS_PATH=/usr/

    (build system later uses CC = $(CGTOOLS_PATH)/bin/gcc , thus calling /usr/bin/gcc).

    For NSP_INCLUDE_PATH you need to use <VSDK_DIR>/ti_components/networking/nsp_gmacsw_4_15_00_00/packages, can you try with:

    NSP_INCLUDE_PATH=/home/chreddy/workspace/FFC_ADAS/FFC/FFC_WORKSPACE/sdk/ti/PROCESSOR_SDK_VISION_03_03_00_00/ti_components/networking/nsp_gmacsw_4_15_00_00/packages

    Also you can check network_tools/docs/VisionSDK_UserGuide_NetworkTools.docx

    Regards,
    Yordan