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.

Issue in building network_tools on pc side



C:\network_tools\build>gmake
gmake depend
gmake[1]: Entering directory 'C:/network_tools/build'
gmake libs TARGET=depend
gmake[2]: Entering directory 'C:/network_tools/build'
gmake -fMAKEFILE.MK -CC:/network_tools/build/../common/src MODULE=common depend
gmake[3]: Entering directory 'C:/network_tools/common/src'
common: Making Directories, if not already created
mkdir -p C:/network_tools/build/../lib//
mkdir -p C:/network_tools/build/../lib/obj/common/
mkdir -p C:/network_tools/build/../bin/
common: Building dependancies
"c:/Program Files (x86)/CodeBlocks/MinGW"/bin/gcc         -IC:/network_tools/build/../common/inc -I../inc -I../priv -I. -Ic:/ti/nsp_gmacsw_4_15_00_00/packages -IC:/network_tools/build/../common/inc -I../inc -I../priv -I. -Ic:/ti/nsp_gmacsw_4_15_00_00/packages   tfdtp_api.c  osa.c  network_api.c  osa_file.c  -M > MAKEFILE.DEPEND
gmake[3]: Leaving directory 'C:/network_tools/common/src'
gmake -fMAKEFILE.MK -CC:/network_tools/build/../network_ctrl/src MODULE=network_ctrl depend
gmake[3]: Entering directory 'C:/network_tools/network_ctrl/src'
network_ctrl: Making Directories, if not already created
mkdir -p C:/network_tools/build/../lib//
mkdir -p C:/network_tools/build/../lib/obj/network_ctrl/
mkdir -p C:/network_tools/build/../bin/
network_ctrl: Building dependancies
"c:/Program Files (x86)/CodeBlocks/MinGW"/bin/gcc         -IC:/network_tools/build/../common/inc -I../inc -I../priv -I. -Ic:/ti/nsp_gmacsw_4_15_00_00/packages -IC:/network_tools/build/../common/inc -I../inc -I../priv -I. -Ic:/ti/nsp_gmacsw_4_15_00_00/packages   network_ctrl_handle_mmc_wr.c  network_ctrl_handle_stereo_set_dynamic_params.c  network_ctrl_handle_mem_rd.c  network_ctrl_handle_sys_reset.c  network_ctrl_handle_stereo_calib_image_save.c  network_ctrl_handle_mem_save.c  network_ctrl_handle_echo.c  network_ctrl_handle_qspi_wr.c  network_ctrl_handle_iss_raw_save.c  network_ctrl_main.c  network_ctrl_handle_stereo_set_params.c  network_ctrl_handle_object_detect_set_dynamic_params.c  -M > MAKEFILE.DEPEND
network_ctrl_handle_mmc_wr.c:63:35: fatal error: experimental/filesystem: No such file or directory
compilation terminated.
gmake[3]: *** [C:/network_tools/build/COMMON_FOOTER.MK:46: depend] Error 1
gmake[3]: Leaving directory 'C:/network_tools/network_ctrl/src'
gmake[2]: *** [Makefile:18: libs] Error 2
gmake[2]: Leaving directory 'C:/network_tools/build'
gmake[1]: *** [Makefile:38: depend] Error 2
gmake[1]: Leaving directory 'C:/network_tools/build'
gmake: *** [Makefile:7: exe] Error 2

I am trying to build the network tools on pc side(windows) but i am getting an issue while building it.

i am using code blocks 

Thanks and Regards,

Aneesh

  • Hello Aneesh,

    Please provide more detailed information on what you are attempting to design.

    What processor are you using? 

    What kind of error are you seeing? 

    With this information, I can better direct this inquiry to the proper group.

    Regards,

    ~Leonard 

     

  • Hi Leonard,

    I am trying to build the pc side network tools

    The board is TDA2PX.

    I have attached a txt file for the error i am seeing

    Regards,

    Aneesh

  • Hi Aneesh,

      I have alerted the Auto Processor team to this inquiry.  Also, there was not a txt file in your previous post; please use the paperclip icon in the toolbar to attach a file, or, copy/paste the text into the body of the response post.

    ~Leonard

  • C:\network_tools\build>gmake
    gmake depend
    gmake[1]: Entering directory 'C:/network_tools/build'
    gmake libs TARGET=depend
    gmake[2]: Entering directory 'C:/network_tools/build'
    gmake -fMAKEFILE.MK -CC:/network_tools/build/../common/src MODULE=common depend
    gmake[3]: Entering directory 'C:/network_tools/common/src'
    common: Making Directories, if not already created
    mkdir -p C:/network_tools/build/../lib//
    mkdir -p C:/network_tools/build/../lib/obj/common/
    mkdir -p C:/network_tools/build/../bin/
    common: Building dependancies
    "c:/Program Files (x86)/CodeBlocks/MinGW"/bin/gcc         -IC:/network_tools/build/../common/inc -I../inc -I../priv -I. -Ic:/ti/nsp_gmacsw_4_15_00_00/packages -IC:/network_tools/build/../common/inc -I../inc -I../priv -I. -Ic:/ti/nsp_gmacsw_4_15_00_00/packages   tfdtp_api.c  osa.c  network_api.c  osa_file.c  -M > MAKEFILE.DEPEND
    gmake[3]: Leaving directory 'C:/network_tools/common/src'
    gmake -fMAKEFILE.MK -CC:/network_tools/build/../network_ctrl/src MODULE=network_ctrl depend
    gmake[3]: Entering directory 'C:/network_tools/network_ctrl/src'
    network_ctrl: Making Directories, if not already created
    mkdir -p C:/network_tools/build/../lib//
    mkdir -p C:/network_tools/build/../lib/obj/network_ctrl/
    mkdir -p C:/network_tools/build/../bin/
    network_ctrl: Building dependancies
    "c:/Program Files (x86)/CodeBlocks/MinGW"/bin/gcc         -IC:/network_tools/build/../common/inc -I../inc -I../priv -I. -Ic:/ti/nsp_gmacsw_4_15_00_00/packages -IC:/network_tools/build/../common/inc -I../inc -I../priv -I. -Ic:/ti/nsp_gmacsw_4_15_00_00/packages   network_ctrl_handle_mmc_wr.c  network_ctrl_handle_stereo_set_dynamic_params.c  network_ctrl_handle_mem_rd.c  network_ctrl_handle_sys_reset.c  network_ctrl_handle_stereo_calib_image_save.c  network_ctrl_handle_mem_save.c  network_ctrl_handle_echo.c  network_ctrl_handle_qspi_wr.c  network_ctrl_handle_iss_raw_save.c  network_ctrl_main.c  network_ctrl_handle_stereo_set_params.c  network_ctrl_handle_object_detect_set_dynamic_params.c  -M > MAKEFILE.DEPEND
    network_ctrl_handle_mmc_wr.c:63:35: fatal error: experimental/filesystem: No such file or directory
    compilation terminated.
    gmake[3]: *** [C:/network_tools/build/COMMON_FOOTER.MK:46: depend] Error 1
    gmake[3]: Leaving directory 'C:/network_tools/network_ctrl/src'
    gmake[2]: *** [Makefile:18: libs] Error 2
    gmake[2]: Leaving directory 'C:/network_tools/build'
    gmake[1]: *** [Makefile:38: depend] Error 2
    gmake[1]: Leaving directory 'C:/network_tools/build'
    gmake: *** [Makefile:7: exe] Error 2

  • Hi Leonard ,

    I have attached the file in the above "networktoolbuild.txt .

    regards,

    Aneesh

  • Hi Aneesh,

    Do you have all the dependencies in their proper paths?

    Regards,
    Anand

  • Hi Anand

    Yes, the dependencies are there in their proper paths .

    I have attched my rules.mk file content for your kind verification.

    BASE_DIR = $(abspath .)
    CONFIG=
    BUILD_OS=Windows_NT

    ifeq ($(BUILD_OS),Windows_NT)
    MAKE = gmake
    CGTOOLS_PATH="c:/Program Files (x86)/codeblocks-17.12mingw-nosetup/MinGW"
    NSP_INCLUDE_PATH=c:/ti/nsp_gmacsw_4_15_00_00/packages
    endif

    ifeq ($(BUILD_OS),Linux)
    MAKE = make
    CGTOOLS_PATH=/usr/
    NSP_INCLUDE_PATH=/datalocal/ti_components/networking/nsp_gmacsw_4_15_00_00/packages
    endif

    export CONFIG
    export BASE_DIR
    export MAKE
    export CGTOOLS_PATH
    export NSP_INCLUDE_PATH
    export BUILD_OS

    Regards,

    Aneesh

  • Hi Aneesh,

    If it's not a dependency or tool issue, let's check the error on line 63 of network_ctrl_handle_mmc_wr.c . Which version of the SDK did you pickup the network tools from? I tried building, and I'm able to build without any errors. Can you maybe attach that file as well?

  • Hi Anand,

    The sdk version is 3.0.3 .

    The file which is in the error log was also in place.

    Regards,

    Aneesh

  • Hi Aneesh,

    Thank you for your reply. Please attach the network_ctrl_handle_mmc_wr.c file. It says some error in line 63. I don't see the error in my version. I need to see what's wrong in the file. 

  • Hi anand,

    I have attached the file.

    Regards,

    Aneesh

    /******************************************************************************
    Copyright (c) [2012 - 2017] Texas Instruments Incorporated
    
    All rights reserved not granted herein.
    
    Limited License.
    
     Texas Instruments Incorporated grants a world-wide, royalty-free, non-exclusive
     license under copyrights and patents it now or hereafter owns or controls to
     make,  have made, use, import, offer to sell and sell ("Utilize") this software
     subject to the terms herein.  With respect to the foregoing patent license,
     such license is granted  solely to the extent that any such patent is necessary
     to Utilize the software alone.  The patent license shall not apply to any
     combinations which include this software, other than combinations with devices
     manufactured by or for TI ("TI Devices").  No hardware patent is licensed
     hereunder.
    
     Redistributions must preserve existing copyright notices and reproduce this
     license (including the above copyright notice and the disclaimer and
     (if applicable) source code license limitations below) in the documentation
     and/or other materials provided with the distribution
    
     Redistribution and use in binary form, without modification, are permitted
     provided that the following conditions are met:
    
     * No reverse engineering, decompilation, or disassembly of this software
       is permitted with respect to any software provided in binary form.
    
     * Any redistribution and use are licensed by TI for use only with TI Devices.
    
     * Nothing shall obligate TI to provide you with source code for the software
       licensed and provided to you in object code.
    
     If software source code is provided to you, modification and redistribution of
     the source code are permitted provided that the following conditions are met:
    
     * Any redistribution and use of the source code, including any resulting
       derivative works, are licensed by TI for use only with TI Devices.
    
     * Any redistribution and use of any object code compiled from the source code
       and any resulting derivative works, are licensed by TI for use only with TI
       Devices.
    
     Neither the name of Texas Instruments Incorporated nor the names of its
     suppliers may be used to endorse or promote products derived from this software
     without specific prior written permission.
    
     DISCLAIMER.
    
     THIS SOFTWARE IS PROVIDED BY TI AND TI�S LICENSORS "AS IS" AND ANY EXPRESS OR
     IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
     MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     IN NO EVENT SHALL TI AND TI�S LICENSORS BE LIABLE FOR ANY DIRECT, INDIRECT,
     INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
     LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
     PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
     LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
     OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
     ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    ******************************************************************************/
    #include "network_ctrl_priv.h"
    #include <osa_file.h>
    #include <experimental/filesystem>
    #include <string>
    #include <iostream>
    namespace fs = std::experimental::filesystem;
    #define NETWORKCTRL_APP_IMAGE_FILE_SIZE   (40*1024*1024U)
    #define NETWORKCTRL_BIN_FILE_SIZE   (1*1024*1024U)
    
    
    UInt32   pDataBuf[NETWORKCTRL_APP_IMAGE_FILE_SIZE];
    
    void handleMmcsdSendFile()
    {
        Int32 status;
        UInt32 size;
    
        status = OSA_fileReadFile(
            gNetworkCtrl_obj.params[0],
            (UInt8 *)(pDataBuf),
            NETWORKCTRL_APP_IMAGE_FILE_SIZE,
            &size);
    
        if (0 == status)
        {
            printf("Send Command!\n");
            SendCommand(gNetworkCtrl_obj.command, pDataBuf, size);
            printf("Wait for receive command!\n");
            RecvResponse(gNetworkCtrl_obj.command, NULL);
        }
        else
        {
            printf("File read failed!\n");
        }
    }
    
    void handleMmcsdSendBinFile()
    {
        Int32 status;
        UInt32 size;
        
    	std::cout << "--------------------------------------" << std::endl;
    	char   filename[128];
    
    	memset(filename, '\0', 128);
    	UInt32  * pBinDataBuf = new UInt32[NETWORKCTRL_BIN_FILE_SIZE];
    
    	fs::path p = gNetworkCtrl_obj.params[0];
    
    	char c_string[128];
    	std::string tempfilename;
    	std::string str = p.generic_string();
    
    	strcpy_s(c_string, str.c_str());
    
    	char *buf = (char *)pBinDataBuf;
    	tempfilename = p.filename().generic_string();
    	memcpy(filename, tempfilename.c_str(), tempfilename.length());
    		
    	buf[0] = (char)strlen(filename);
    	memcpy(buf + 1, filename, buf[0]);
    
        status = OSA_fileReadFile(
    		c_string,
    		((Uint8*)buf) + 1 + strlen(filename),
    		NETWORKCTRL_BIN_FILE_SIZE,
    		&size);
    
        if (0 == status)
        {
            printf("Send Command!\n");
    		SendCommand(gNetworkCtrl_obj.command, buf, size + 1 + buf[0]);
    		printf("%s,size=%d, Command=%s\n", filename, strlen(filename), gNetworkCtrl_obj.command);
            printf("Wait for receive command!\n");
            RecvResponse(gNetworkCtrl_obj.command, NULL);
        }
        else
        {
            printf("File read failed!\n");
        }
    }
    
    

  • Hi Aneesh,

    The file you have attached looks very different from what I have, I see C++ code in yours. Did you make those changes? The compilation is failing in your case because it is not able to find <experimental/filesystem>. Did the file come like this or did you make these changes?

  • Hi anand,

    I did not make any changes in the file, Yes, the file is like his in the network_tools folder.

    Regards,

    Aneesh

  • Hi Aneesh,

    That's interesting. Are you using vision sdk 3.0 itself? Or did you download the network tools separately? Because I see your network tools in C:/ and not in an sdk relative path. As a last resort you could you rename the file to .cpp and then try the make? Because I see that gcc is trying to compile the file.

  • Hi Anand,

    When i build the tools without network_cntrl it is working. If i build all tools even after changing the file to .cpp .

    Regards,

    Aneesh

  • Hi Aneesh,

    What do you mean by building the tools without network_ctrl? Also, is the build failing even after you renamed it to .cpp? 

  • Hi Aneesh,

    Any updates on this?

    Regards,
    Anand

  • Hi anand,

    When i comment the network_cntrl part in the make file of build folder i can able to build the remaining tools except the network_cntrl.

    But if i try to build all tools without any comment in makefile i am getting the error even after changing the wdr file from .c to .cpp

    Regards,

    Aneesh

  • Hi Aneesh,

    Definitely the network tools you have doesn't look like the which is shipped with the SDK. Are you using vision sdk? If yes which version are you using? 

  • Hi Anand

    Yes,I am using Vision SDK and the version is 3.0.3

    Regards,

    Aneesh

  • Hi Aneesh,

    Delete the cpp code from the file and rebuild. Like in network_ctrl_handle_mmc_wr, remove the function handleMmcsdSendBinFile() and c++ includes : lines 63 to 66. Do similar changes in other files too and try rebuilding. I just checked the network _tools in the vision_sdk version you mentioned. There is no cpp code in that. You might want to keep a backup of these files.