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.

TDA4X-Issue faced with Patch release of mmalib

Dear Sir,

I had replaced the mmalib_01_00_00_00 with mmalib_01_01_00_02.Made Changes in config.mk in tidl/makerules and psdkra_tools.mk in tiovx. Whole sdk clean build done.

1.Is the process right?.

2.If so, I had tried  both configurations with numParamBits and numFeatureBits both set to 8 and 16.

In numParamBits and numFeatureBits set to 8 configuration ,observed misses and false detection in few frames which was not observed in the previous release.

a.

b)

.

3.With NumParamBits and NumFeatureBits set to 16,observed multiple bounding boxes and misses.

a)

Also the import console out for 16 bit is 

 ----------------------- TIDL Process with REF_ONLY FLOW ------------------------

#    0 . .. T    3367.98  ... .... .....
------------------ Network Compiler Traces -----------------------------
Main iteration numer: 0....
Preparing for memory allocation : internal iteration number: 0
successful Memory allocation

-------------------- Network Compiler : Analysis Results are available --------------------

SUGGESTION: [TIDL_BatchNormLayer] data/bias 16 bits is not optimal in this release.
SUGGESTION: [TIDL_FlattenLayer] ctx_output5/sep/relu_mbox_loc_flat Flatten with 16 bit is not optimal in this version.
SUGGESTION: [TIDL_FlattenLayer] ctx_output5/sep/relu_mbox_conf_flat Flatten with 16 bit is not optimal in this version.
SUGGESTION: [TIDL_FlattenLayer] ctx_output4/sep/relu_mbox_loc_flat Flatten with 16 bit is not optimal in this version.
SUGGESTION: [TIDL_FlattenLayer] ctx_output4/sep/relu_mbox_conf_flat Flatten with 16 bit is not optimal in this version.
SUGGESTION: [TIDL_FlattenLayer] ctx_output3/sep/relu_mbox_loc_flat Flatten with 16 bit is not optimal in this version.
SUGGESTION: [TIDL_FlattenLayer] ctx_output3/sep/relu_mbox_conf_flat Flatten with 16 bit is not optimal in this version.
SUGGESTION: [TIDL_FlattenLayer] ctx_output2/sep/relu_mbox_loc_flat Flatten with 16 bit is not optimal in this version.
SUGGESTION: [TIDL_FlattenLayer] ctx_output2/sep/relu_mbox_conf_flat Flatten with 16 bit is not optimal in this version.
SUGGESTION: [TIDL_FlattenLayer] ctx_output1/sep/relu_mbox_loc_flat Flatten with 16 bit is not optimal in this version.
SUGGESTION: [TIDL_FlattenLayer] ctx_output1/sep/relu_mbox_conf_flat Flatten with 16 bit is not optimal in this version.
****************************************************
**                ALL MODEL CHECK PASSED          **
****************************************************

Note:I'm using tidl version: tidl_j7_01_00_00_00.

Kindly guide us

Thanks & Regards

  • ithara,

    You also need to use the latest TIDL patch release also. This will be shared tin the same path.

  • Hi Sithara,

    It is uploaded into the same path. Please check and let us know if you have any further questions. 

    Regards

    Karthik

  • Dear Sir,

    We had to modify the image_post_proc.c and generate new PC_DSP_ALGO.out
    But on running make TARGET_PLATFORM=PC command
    we faced issues
    ======== MAKING TIDL TEST =================
    make -C ./ti_dl/test -f makefile
    make[1]: Entering directory '/home/sithara/ti/j8/psdk_rtos_auto_j7_06_02_00_21/tidl_j7_01_01_01_01/ti_dl/test'
    /usr/bin/ld: cannot find -l:dmautils.lib
    /usr/bin/ld: cannot find -l:udma.lib
    /usr/bin/ld: cannot find -l:sciclient.lib
    /usr/bin/ld: cannot find -l:ti.csl.lib
    /usr/bin/ld: cannot find -l:ti.osal.lib
    collect2: error: ld returned 1 exit status
    /home/sithara/ti/j8/psdk_rtos_auto_j7_06_02_00_21/tidl_j7_01_01_01_01/makerules/rules.mk:641: recipe for target 'outfile' failed
    make[1]: *** [outfile] Error 1
    make[1]: Leaving directory '/home/sithara/ti/j8/psdk_rtos_auto_j7_06_02_00_21/tidl_j7_01_01_01_01/ti_dl/test'
    makefile:97: recipe for target 'tidl' failed
    make: *** [tidl] Error 2

    We tried to  modify the makefile and that issue got resolved .But observed new errors.

    #
    # Copyright (c) {2015 - 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.
    #
    #
    
    ##############################################################
    ALGBASE_PATH ?= $(abspath ../../)
    include $(ALGBASE_PATH)/makerules/config.mk
    
    
    DSP_COMMON_DIR= ../../common
    DSP_MODULES = ".."
    
    ifdef SystemRoot
    OPENCV_INSTALL_DIR = $(TIDL_OPENCV_PATH)
    else
    #OPENCV_INSTALL_DIR = /data/datalocal1_videoapps01/user/kumar/tidl/lsf/opencv-3.1.0
    OPENCV_INSTALL_DIR = $(TIDL_OPENCV_PATH)
    endif
    
    LIB_DIR=algo
    
    #MMALIB_BINS_PATH = $(MMALIB_PATH)/vxlib/out/C71/release
    ifneq ($(TARGET_PLATFORM), PC)
    MMALIB_BINS_PATH = $(MMALIB_PATH)/out/C71/$(TARGET_BUILD)
    else
    ifdef SystemRoot
    MMALIB_BINS_PATH = $(MMALIB_PATH)/out/x86_64/$(TARGET_BUILD)
    else
    MMALIB_BINS_PATH = $(MMALIB_PATH)/out/x86_64/$(TARGET_BUILD)
    endif
    endif
    
    UDMA_LIB_DIR := j721e
    ifeq ($(FINAL_RELEASE_BUILD), 1)
    MMALIB_BINS_PATH := $(MMALIB_PATH)/lib/$(TARGET_BUILD)
    UDMA_LIB_DIR := j721e
    endif
    
    
    
    ##############################################################
    
    
    ##############################################################
    SUBDIRS= ./inc
    SUBDIRS+= ./src
    
    CFILES= $(foreach dir,$(SUBDIRS),$(wildcard $(dir)/*.c))
    CFILES += $(DSP_COMMON_DIR)/configparser.c
    CFILES += $(DSP_COMMON_DIR)/ti_draw_utils.c
    CFILES += $(foreach dir,$(SUBDIRS),$(wildcard $(DSP_COMMON_DIR)/ti_file_io.c))
    
    CFILES += $(DSP_COMMON_DIR)/ti_mem_manager.c
    
    ifneq ($(TARGET_PLATFORM), PC)
    #CFILES += $(DSP_COMMON_DIR)/c7x_mmu/csl_c7x_interrupt_handler.asm
    CFILES += $(DSP_COMMON_DIR)/c7x_mmu/csl_c7xecr.asm
    CFILES += $(DSP_COMMON_DIR)/c7x_mmu/enable_cache_mmu.c
    CFILES += $(DSP_COMMON_DIR)/c7x_mmu/c7x_simple_msmc_pte.c
    CFILES += $(DSP_COMMON_DIR)/c7x_mmu/csl_dspcachec7.c
    CFILES += $(DSP_COMMON_DIR)/c7x_mmu/csl_c7xl2cc.asm
    CFILES += $(DSP_COMMON_DIR)/tidl_log.c
    CFILES += $(DSP_COMMON_DIR)/app_log_writer.c
    endif
    
    ifeq ($(BUILD_WITH_STATIC_ARRAYS), 1)
    CFILES += tidl_tb_net.c
    CFILES += tidl_tb_input_tensor.c
    CFILES += tidl_tb_output_tensor.c
    endif
    ifeq ($(COMPARE_SINGLE_LAYER), 1)
    CFILES += tidl_tb_compare_layer_tensor.c
    endif
    
    ifeq ($(TARGET_PLATFORM), PC)
    CFILES:= $(filter-out %eve_sctm.c, $(CFILES))
    endif
    
    HFILES = $(foreach dir,$(SUBDIRS),$(wildcard $(dir)/*.h))
    
    ifeq ($(TIDL_BUILD_FOR_LOKI) ,1)
    OUTFILE=$(TARGET_PLATFORM)_$(CORE)_test_dl_algo_loki.out
    else
    OUTFILE=$(TARGET_PLATFORM)_$(CORE)_test_dl_algo.out
    endif
    
    ##############################################################
    
    
    ##############################################################
    
    include $(ALGBASE_PATH)/makerules/rules.mk
    
    #used inside makerules, but okay to define it afterwards
    CFLAGS+= -I inc
    CFLAGS+= -I .
    CFLAGS+= -I ../inc
    CFLAGS+= -I ../custom
    CFLAGS+= -I ../utils/perfsim
    CFLAGS+= -I $(IVISION_PATH)
    CFLAGS+= -I $(IVISION_PATH)/ti/xdais
    CFLAGS+= -I $(DSP_COMMON_DIR)
    CFLAGS+= -I $(DSP_COMMON_DIR)/c7x_mmu
    CFLAGS+= -I $(DSP_COMMON_DIR)/baseaddress/$(TARGET_SOC)/$(CORE)
    CFLAGS+= -I $(EDMA3_LLD_ROOT)/packages/ti/sdo/edma3/rm
    CFLAGS+= -I $(EDMA3_LLD_ROOT)/packages
    CFLAGS+= -I $(DSP_MODULES)/algo/inc
    CFLAGS+= -I $(MATHLIB_INSTALL_DIR)/packages
    CFLAGS+= -I $(MATHLIB_INSTALL_DIR)/packages/ti/mathlib
    CFLAGS+= -I $(OPENCV_INSTALL_DIR)/build
    CFLAGS+= -I $(OPENCV_INSTALL_DIR)/modules/core/include
    CFLAGS+= -I $(OPENCV_INSTALL_DIR)/modules/highgui/include
    CFLAGS+= -I $(OPENCV_INSTALL_DIR)/modules/imgcodecs/include
    CFLAGS+= -I $(OPENCV_INSTALL_DIR)/modules/videoio/include
    CFLAGS+= -I $(OPENCV_INSTALL_DIR)/modules/imgproc/include
    CFLAGS+= -I $(PDK_INSTALL_PATH)
    
    ifeq ($(TARGET_PLATFORM) , PC)
    CFLAGS+= -I $(DSP_TOOLS)/host_emulation/include
    endif
    
    ifeq ($(BUILD_WITH_CUDNN), 1)
    CFLAGS+= -I "$(CUDA_PATH)/include"
    endif
    ifeq ($(TIDL_BUILD_WITH_AVX) ,1)
    ifdef SystemRoot
    CFLAGS += /arch:AVX2 
    else
    CFLAGS += -mavx -mavx2
    endif
    endif
    
    CFLAGS += -DSOC_J721E
    ifeq ($(BUILD_WITH_STATIC_ARRAYS), 1)
    CFLAGS += -DBUILD_WITH_STATIC_ARRAYS
    endif
    ifeq ($(COMPARE_SINGLE_LAYER), 1)
    CFLAGS += -DBCOMPARE_SINGLE_LAYER
    endif
    
    ifeq ($(USE_HOST_FILE_IO), 1)
    CFLAGS += -DUSE_HOST_FILE_IO
    endif
    ifeq ($(USE_HOST_PRINTF), 1)
    CFLAGS += -DUSE_HOST_PRINTF
    endif
    
    
    ##############################################################
    
    
    ############## SETUP DMA AND PDK LIBRARIES ################################################
    ifeq ($(TIDL_BUILD_WITH_DMA) ,1)
     ifeq ($(TARGET_PLATFORM) , PC)
      # HOST BUILD LIBRARIES
      ifdef SystemRoot
        # MSVC LIBRARIES
        # DMAUTILS_LIB  := $(PDK_INSTALL_PATH)/ti/drv/udma/lib/j721e_hostemu/c7x-hostemu/$(TARGET_BUILD)/dmautils.lib
         UDMA_LIB      := $(PDK_INSTALL_PATH)/ti/drv/udma/lib/j721e_hostemu/c7x-hostemu/$(TARGET_BUILD)/udma.lib
         CSL_LIB       := $(PDK_INSTALL_PATH)/ti/csl/lib/j721e/c7x-hostemu/$(TARGET_BUILD)/ti.csl.lib
         SCICLIENT_LIB := $(PDK_INSTALL_PATH)/ti/drv/sciclient/lib/j721e_hostemu/c7x-hostemu/$(TARGET_BUILD)/sciclient.lib
         OSAL_LIB      := $(PDK_INSTALL_PATH)/ti/osal/lib/nonos/j721e/c7x-hostemu/$(TARGET_BUILD)/ti.osal.lib
       else
        # g++ LIBRARIES
         DMAUTILS_LIB  := $(PDK_INSTALL_PATH)/ti/drv/udma/lib/j721e_hostemu/c7x-hostemu/$(TARGET_BUILD)/dmautils.lib
         UDMA_LIB      := $(PDK_INSTALL_PATH)/ti/drv/udma/lib/j721e_hostemu/c7x-hostemu/$(TARGET_BUILD)/udma.lib
         CSL_LIB       := $(PDK_INSTALL_PATH)/ti/csl/lib/j721e/c7x-hostemu/$(TARGET_BUILD)/ti.csl.lib
         SCICLIENT_LIB := $(PDK_INSTALL_PATH)/ti/drv/sciclient/lib/j721e_hostemu/c7x-hostemu/$(TARGET_BUILD)/sciclient.lib
         OSAL_LIB      := $(PDK_INSTALL_PATH)/ti/osal/lib/nonos/j721e/c7x-hostemu/$(TARGET_BUILD)/ti.osal.lib
       endif
     else
      # TARGET BUILD LIBRARIES
       CSL_LIB       := $(PDK_INSTALL_PATH)/ti/csl/lib/j721e/c7x/$(TARGET_BUILD)/ti.csl.ae71
       SCICLIENT_LIB := $(PDK_INSTALL_PATH)/ti/drv/sciclient/lib/j721e/c7x_1/$(TARGET_BUILD)/sciclient.ae71
       OSAL_LIB      := $(PDK_INSTALL_PATH)/ti/osal/lib/nonos/j721e/c7x/$(TARGET_BUILD)/ti.osal.ae71
    
       ifeq ($(TIDL_BUILD_FOR_LOKI) ,1)
         DMAUTILS_LIB  := $(PDK_INSTALL_PATH)/ti/drv/udma/lib/j721e_loki/c7x_1/$(TARGET_BUILD)/dmautils.ae71
         UDMA_LIB      := $(PDK_INSTALL_PATH)/ti/drv/udma/lib/j721e_loki/c7x_1/$(TARGET_BUILD)/udma.ae71
       else
         DMAUTILS_LIB  := $(PDK_INSTALL_PATH)/ti/drv/udma/lib/$(UDMA_LIB_DIR)/c7x_1/$(TARGET_BUILD)/dmautils.ae71
         UDMA_LIB      := $(PDK_INSTALL_PATH)/ti/drv/udma/lib/$(UDMA_LIB_DIR)/c7x_1/$(TARGET_BUILD)/udma.ae71
       endif
     endif
    endif
    ##############################################################
    
    
    
    ifeq ($(TIDL_TEST_CUSTOM_LAYER) ,1)
    CFLAGS+= -DTIDL_TEST_CUSTOM_LAYER
    endif
    
    ifneq ($(TARGET_PLATFORM) , PC)
    
    ifeq ($(TIDL_BUILD_FOR_LOKI) ,1)
    CFLAGS+= -DLOKI_BUILD
    endif
    
    ifeq ($(CORE) , eve)
    LDFLAGS+= -l $(ARP32_TOOLS)/lib/rtsarp32_v200.lib
    LDFLAGS+= -l "./linker_$(CORE)_$(TARGET_BUILD).cmd"
    else ifeq ($(CORE) , dsp)
    LDFLAGS+= -cr -x
    LDFLAGS+= -l $(DSP_TOOLS)/lib/rts7100_le.lib
    LDFLAGS+= -l "./linker_$(CORE).cmd"
    endif
    
    else
    ifeq ($(BUILD_WITH_CUDNN),0)
    ifdef SystemRoot
    ifeq ($(TARGET_BUILD), debug)
    LDFLAGS+= /NODEFAULTLIB:msvcrtd.lib
    else
    LDFLAGS+= /NODEFAULTLIB:msvcrt.lib
    endif
    endif
    endif
    endif
    
    
    
    
    ifeq ($(TARGET_PLATFORM) , PC)
      #HOST BUILD SETUP
      ifdef SystemRoot
        #MSMC options
        LDFLAGS+= "$(DSP_MODULES)/lib/PC/$(CORE)/$(LIB_DIR)/$(TARGET_BUILD)/tidl_algo.lib"
        ifeq ($(TIDL_TEST_CUSTOM_LAYER) ,1)
          LDFLAGS+= "$(DSP_MODULES)/lib/PC/$(CORE)/$(LIB_DIR)/$(TARGET_BUILD)/tidl_custom.lib"
        endif
        LDFLAGS+= "$(MMALIB_BINS_PATH)/mmalib_cn_x86_64.lib"
        LDFLAGS+= "$(MMALIB_BINS_PATH)/mmalib_x86_64.lib"
        LDFLAGS+= "$(MMALIB_BINS_PATH)/common_x86_64.lib"
      else
        # g++ options
        LDFLAGS+= -L "$(DSP_MODULES)/lib/PC/$(CORE)/$(LIB_DIR)/$(TARGET_BUILD)/"
        LDFLAGS+= -L "$(UDMA_LIB)"
        LDFLAGS+= -L "$(SCICLIENT_LIB)"
        LDFLAGS+= -L "$(CSL_LIB)"
        LDFLAGS+= -L "$(OSAL_LIB)"
        LDFLAGS+= -L "$(MMALIB_BINS_PATH)"
        LDFLAGS+= -L $(DSP_TOOLS)/host_emulation
    
        LDFLAGS+= -ltidl_algo
        ifeq ($(TIDL_TEST_CUSTOM_LAYER) ,1)
          LDFLAGS+= -ltidl_custom
        endif
    
        #LDFLAGS+= -ldmautils
        LDFLAGS+= -L "$(DMAUTILS_LIB)"
        LDFLAGS+= -L "$(UDMA_LIB)"
        LDFLAGS+= -L "$(SCICLIENT_LIB)"
        LDFLAGS+= -L "$(CSL_LIB)"
        LDFLAGS+= -L "$(OSAL_LIB)"
        LDFLAGS+= -lmmalib_cn_x86_64
        LDFLAGS+= -lmmalib_x86_64
        LDFLAGS+= -lcommon_x86_64
    
        LDFLAGS+= -lc70-host-emulation
      endif
    
      ifdef SystemRoot
        ifeq ($(BUILD_WITH_CUDNN), 0)
          LDFLAGS+= -l $(DSP_TOOLS)/host_emulation/c70-host-emulation.lib
        endif
      endif
    
      ifeq ($(BUILD_WITH_OPENCV), 1)
        ifdef SystemRoot
    
          CFLAGS+= /DBUILD_WITH_OPENCV
          LDFLAGS+= -l "$(OPENCV_INSTALL_DIR)\..\build\lib\Release\opencv_core310.lib"
          LDFLAGS+= -l "$(OPENCV_INSTALL_DIR)\..\build\lib\Release\opencv_highgui310.lib"
          LDFLAGS+= -l "$(OPENCV_INSTALL_DIR)\..\build\lib\Release\opencv_imgcodecs310.lib"
          LDFLAGS+= -l "$(OPENCV_INSTALL_DIR)\..\build\lib\Release\opencv_imgproc310.lib"
          LDFLAGS+= -l "$(OPENCV_INSTALL_DIR)\..\build\3rdparty\lib\Release\zlib.lib"
          LDFLAGS+= -l "$(OPENCV_INSTALL_DIR)\..\build\3rdparty\lib\Release\libjasper.lib"
          LDFLAGS+= -l "$(OPENCV_INSTALL_DIR)\..\build\3rdparty\lib\Release\libjpeg.lib"
          LDFLAGS+= -l "$(OPENCV_INSTALL_DIR)\..\build\3rdparty\lib\Release\libpng.lib"
          LDFLAGS+= -l "$(OPENCV_INSTALL_DIR)\..\build\3rdparty\lib\Release\libtiff.lib"
          LDFLAGS+= -l "$(OPENCV_INSTALL_DIR)\..\build\3rdparty\lib\Release\libwebp.lib"
          LDFLAGS+= -l "$(OPENCV_INSTALL_DIR)\..\build\3rdparty\lib\Release\IlmImf.lib"
          ifeq ($(BUILD_WITH_CUDNN),0)
            LDFLAGS+= /NODEFAULTLIB:msvcrt.lib
            LDFLAGS+= -l "User32.lib"
          endif
        else
          CFLAGS+= -DBUILD_WITH_OPENCV
          LDFLAGS+= -L "$(OPENCV_INSTALL_DIR)/cmake/lib"
          LDFLAGS+= -L "/home/sithara/ti/j8/psdk_rtos_auto_j7_06_02_00_21/opencv-3.1.0)/cmake/3rdparty/lib"
          LDFLAGS+= -lopencv_imgproc -lopencv_imgcodecs -lopencv_core -lopencv_calib3d -lopencv_stitching
          LDFLAGS+=-lIlmImf -lzlib -ldl -lpthread -llibjasper -llibjpeg -llibpng -llibtiff -llibwebp -lrt
          
          ifeq ($(BUILD_WITH_CUDNN), 1)
            LDFLAGS+= -lcudart -lcublas -lcudnn -lstdc++ -lm
          endif
        endif
      endif
    else
      #TARGET BUILD SETUP
      LDFLAGS+= -l "$(DSP_MODULES)/lib/$(CORE)/$(LIB_DIR)/$(TARGET_BUILD)/tidl_algo.lib"
      ifeq ($(TIDL_TEST_CUSTOM_LAYER) ,1)
        LDFLAGS+= -l "$(DSP_MODULES)/lib/$(CORE)/$(LIB_DIR)/$(TARGET_BUILD)/tidl_custom.lib"
      endif
    
      LDFLAGS+= "$(MMALIB_BINS_PATH)/mmalib_cn_C71.lib"
      LDFLAGS+= "$(MMALIB_BINS_PATH)/mmalib_C71.lib"
      LDFLAGS+= "$(MMALIB_BINS_PATH)/common_C71.lib"
    endif
    
    ifdef SystemRoot
    LDFLAGS += $(DMAUTILS_LIB)
    LDFLAGS += $(SCICLIENT_LIB)
    LDFLAGS += $(UDMA_LIB)
    LDFLAGS += $(CSL_LIB)
    LDFLAGS += $(OSAL_LIB)
    else
    ifneq ($(TARGET_PLATFORM) , PC)
    LDFLAGS += $(DMAUTILS_LIB)
    LDFLAGS += $(SCICLIENT_LIB)
    LDFLAGS += $(UDMA_LIB)
    LDFLAGS += $(CSL_LIB)
    LDFLAGS += $(OSAL_LIB)
    endif
    
    endif
    ##############################################################
    
    
    ##############################################################
    OUTDIR =  "./out"
    
    $(OUTFILE) : outfile
    ##############################################################
    
    

    ======== MAKING TIDL TEST =================

    make -C ./ti_dl/test -f makefile
    make[1]: Entering directory '/home/sithara/ti/j8/psdk_rtos_auto_j7_06_02_00_21/tidl_j7_01_01_01_01/ti_dl/test'
    /usr/bin/ld: cannot find -lopencv_imgproc
    /usr/bin/ld: cannot find -lopencv_imgcodecs
    /usr/bin/ld: cannot find -lopencv_core
    /usr/bin/ld: cannot find -lopencv_calib3d
    /usr/bin/ld: cannot find -lopencv_stitching
    collect2: error: ld returned 1 exit status
    /home/sithara/ti/j8/psdk_rtos_auto_j7_06_02_00_21/tidl_j7_01_01_01_01/makerules/rules.mk:641: recipe for target 'outfile' failed
    make[1]: *** [outfile] Error 1
    make[1]: Leaving directory '/home/sithara/ti/j8/psdk_rtos_auto_j7_06_02_00_21/tidl_j7_01_01_01_01/ti_dl/test'
    makefile:97: recipe for target 'tidl' failed
    make: *** [tidl] Error 2

    Please guide in resolving the same

    Thanks & Regards

    Sithara Tresa Chacko

  • Dear Sir,

    1.I tried this several times,still faced the same errors. Observed some failed cases and lot of warnings while building the Opencv dependency.

    Console logs are also added.

    sithara@ubuntu:~/ti/j8/psdk_rtos_auto_j7_06_02_00_21/opencv-3.1.0/cmake$ cmake -DBUILD_opencv_highgui:BOOL="1" -DBUILD_opencv_videoio:BOOL="0" -DWITH_IPP:BOOL="0" -DWITH_IPP_A:BOOL="0" -DBUILD_WITH_DYNAMIC_IPP:BOOL="0" -DBUILD_opencv_cudacodec:BOOL="0" -DBUILD_PNG:BOOL="1" -DBUILD_opencv_cudaobjdetect:BOOL="0" -DBUILD_ZLIB:BOOL="1" -DBUILD_TESTS:BOOL="0" -DWITH_CUDA:BOOL="0" -DBUILD_opencv_cudafeatures2d:BOOL="0" -DBUILD_opencv_cudaoptflow:BOOL="0" -DBUILD_opencv_cudawarping:BOOL="0" -DINSTALL_TESTS:BOOL="0" -DBUILD_TIFF:BOOL="1" -DBUILD_JPEG:BOOL="1" -DBUILD_opencv_cudaarithm:BOOL="0" -DBUILD_PERF_TESTS:BOOL="0" -DBUILD_opencv_cudalegacy:BOOL="0" -DBUILD_opencv_cudaimgproc:BOOL="0" -DBUILD_opencv_cudastereo:BOOL="0" -DBUILD_opencv_cudafilters:BOOL="0" -DBUILD_opencv_cudabgsegm:BOOL="0" -DBUILD_SHARED_LIBS:BOOL="0" ../
    CMake Deprecation Warning at CMakeLists.txt:72 (cmake_policy):
      The OLD behavior for policy CMP0022 will be removed from a future version
      of CMake.
    
      The cmake-policies(7) manual explains that the OLD behaviors of all
      policies are deprecated and that a policy should be set to OLD only under
      specific short-term circumstances.  Projects should be ported to the NEW
      behavior and not rely on setting a policy to OLD.
    
    
    CMake Deprecation Warning at CMakeLists.txt:77 (cmake_policy):
      The OLD behavior for policy CMP0026 will be removed from a future version
      of CMake.
    
      The cmake-policies(7) manual explains that the OLD behaviors of all
      policies are deprecated and that a policy should be set to OLD only under
      specific short-term circumstances.  Projects should be ported to the NEW
      behavior and not rely on setting a policy to OLD.
    
    
    -- The CXX compiler identification is GNU 7.5.0
    -- The C compiler identification is GNU 7.5.0
    -- Check for working CXX compiler: /usr/bin/c++
    -- Check for working CXX compiler: /usr/bin/c++ -- works
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- Check for working C compiler: /usr/bin/cc
    -- Check for working C compiler: /usr/bin/cc -- works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Detecting C compile features
    -- Detecting C compile features - done
    -- Detected version of GNU GCC: 70 (700)
    -- Performing Test HAVE_CXX_FSIGNED_CHAR
    -- Performing Test HAVE_CXX_FSIGNED_CHAR - Success
    -- Performing Test HAVE_C_FSIGNED_CHAR
    -- Performing Test HAVE_C_FSIGNED_CHAR - Success
    -- Performing Test HAVE_CXX_W
    -- Performing Test HAVE_CXX_W - Success
    -- Performing Test HAVE_C_W
    -- Performing Test HAVE_C_W - Success
    -- Performing Test HAVE_CXX_WALL
    -- Performing Test HAVE_CXX_WALL - Success
    -- Performing Test HAVE_C_WALL
    -- Performing Test HAVE_C_WALL - Success
    -- Performing Test HAVE_CXX_WERROR_RETURN_TYPE
    -- Performing Test HAVE_CXX_WERROR_RETURN_TYPE - Success
    -- Performing Test HAVE_C_WERROR_RETURN_TYPE
    -- Performing Test HAVE_C_WERROR_RETURN_TYPE - Success
    -- Performing Test HAVE_CXX_WERROR_NON_VIRTUAL_DTOR
    -- Performing Test HAVE_CXX_WERROR_NON_VIRTUAL_DTOR - Success
    -- Performing Test HAVE_C_WERROR_NON_VIRTUAL_DTOR
    -- Performing Test HAVE_C_WERROR_NON_VIRTUAL_DTOR - Success
    -- Performing Test HAVE_CXX_WERROR_ADDRESS
    -- Performing Test HAVE_CXX_WERROR_ADDRESS - Success
    -- Performing Test HAVE_C_WERROR_ADDRESS
    -- Performing Test HAVE_C_WERROR_ADDRESS - Success
    -- Performing Test HAVE_CXX_WERROR_SEQUENCE_POINT
    -- Performing Test HAVE_CXX_WERROR_SEQUENCE_POINT - Success
    -- Performing Test HAVE_C_WERROR_SEQUENCE_POINT
    -- Performing Test HAVE_C_WERROR_SEQUENCE_POINT - Success
    -- Performing Test HAVE_CXX_WFORMAT
    -- Performing Test HAVE_CXX_WFORMAT - Success
    -- Performing Test HAVE_C_WFORMAT
    -- Performing Test HAVE_C_WFORMAT - Success
    -- Performing Test HAVE_CXX_WERROR_FORMAT_SECURITY
    -- Performing Test HAVE_CXX_WERROR_FORMAT_SECURITY - Success
    -- Performing Test HAVE_C_WERROR_FORMAT_SECURITY
    -- Performing Test HAVE_C_WERROR_FORMAT_SECURITY - Success
    -- Performing Test HAVE_CXX_WMISSING_DECLARATIONS
    -- Performing Test HAVE_CXX_WMISSING_DECLARATIONS - Success
    -- Performing Test HAVE_C_WMISSING_DECLARATIONS
    -- Performing Test HAVE_C_WMISSING_DECLARATIONS - Success
    -- Performing Test HAVE_CXX_WMISSING_PROTOTYPES
    -- Performing Test HAVE_CXX_WMISSING_PROTOTYPES - Failed
    -- Performing Test HAVE_C_WMISSING_PROTOTYPES
    -- Performing Test HAVE_C_WMISSING_PROTOTYPES - Success
    -- Performing Test HAVE_CXX_WSTRICT_PROTOTYPES
    -- Performing Test HAVE_CXX_WSTRICT_PROTOTYPES - Failed
    -- Performing Test HAVE_C_WSTRICT_PROTOTYPES
    -- Performing Test HAVE_C_WSTRICT_PROTOTYPES - Success
    -- Performing Test HAVE_CXX_WUNDEF
    -- Performing Test HAVE_CXX_WUNDEF - Success
    -- Performing Test HAVE_C_WUNDEF
    -- Performing Test HAVE_C_WUNDEF - Success
    -- Performing Test HAVE_CXX_WINIT_SELF
    -- Performing Test HAVE_CXX_WINIT_SELF - Success
    -- Performing Test HAVE_C_WINIT_SELF
    -- Performing Test HAVE_C_WINIT_SELF - Success
    -- Performing Test HAVE_CXX_WPOINTER_ARITH
    -- Performing Test HAVE_CXX_WPOINTER_ARITH - Success
    -- Performing Test HAVE_C_WPOINTER_ARITH
    -- Performing Test HAVE_C_WPOINTER_ARITH - Success
    -- Performing Test HAVE_CXX_WSHADOW
    -- Performing Test HAVE_CXX_WSHADOW - Success
    -- Performing Test HAVE_C_WSHADOW
    -- Performing Test HAVE_C_WSHADOW - Success
    -- Performing Test HAVE_CXX_WSIGN_PROMO
    -- Performing Test HAVE_CXX_WSIGN_PROMO - Success
    -- Performing Test HAVE_C_WSIGN_PROMO
    -- Performing Test HAVE_C_WSIGN_PROMO - Failed
    -- Performing Test HAVE_CXX_WNO_NARROWING
    -- Performing Test HAVE_CXX_WNO_NARROWING - Success
    -- Performing Test HAVE_C_WNO_NARROWING
    -- Performing Test HAVE_C_WNO_NARROWING - Success
    -- Performing Test HAVE_CXX_WNO_DELETE_NON_VIRTUAL_DTOR
    -- Performing Test HAVE_CXX_WNO_DELETE_NON_VIRTUAL_DTOR - Success
    -- Performing Test HAVE_C_WNO_DELETE_NON_VIRTUAL_DTOR
    -- Performing Test HAVE_C_WNO_DELETE_NON_VIRTUAL_DTOR - Failed
    -- Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS
    -- Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS - Failed
    -- Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS
    -- Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS - Failed
    -- Performing Test HAVE_CXX_FDIAGNOSTICS_SHOW_OPTION
    -- Performing Test HAVE_CXX_FDIAGNOSTICS_SHOW_OPTION - Success
    -- Performing Test HAVE_C_FDIAGNOSTICS_SHOW_OPTION
    -- Performing Test HAVE_C_FDIAGNOSTICS_SHOW_OPTION - Success
    -- Performing Test HAVE_CXX_WNO_LONG_LONG
    -- Performing Test HAVE_CXX_WNO_LONG_LONG - Success
    -- Performing Test HAVE_C_WNO_LONG_LONG
    -- Performing Test HAVE_C_WNO_LONG_LONG - Success
    -- Performing Test HAVE_CXX_PTHREAD
    -- Performing Test HAVE_CXX_PTHREAD - Success
    -- Performing Test HAVE_C_PTHREAD
    -- Performing Test HAVE_C_PTHREAD - Success
    -- Performing Test HAVE_CXX_FOMIT_FRAME_POINTER
    -- Performing Test HAVE_CXX_FOMIT_FRAME_POINTER - Success
    -- Performing Test HAVE_C_FOMIT_FRAME_POINTER
    -- Performing Test HAVE_C_FOMIT_FRAME_POINTER - Success
    -- Performing Test HAVE_CXX_MSSE
    -- Performing Test HAVE_CXX_MSSE - Success
    -- Performing Test HAVE_C_MSSE
    -- Performing Test HAVE_C_MSSE - Success
    -- Performing Test HAVE_CXX_MSSE2
    -- Performing Test HAVE_CXX_MSSE2 - Success
    -- Performing Test HAVE_C_MSSE2
    -- Performing Test HAVE_C_MSSE2 - Success
    -- Performing Test HAVE_CXX_MNO_AVX
    -- Performing Test HAVE_CXX_MNO_AVX - Success
    -- Performing Test HAVE_C_MNO_AVX
    -- Performing Test HAVE_C_MNO_AVX - Success
    -- Performing Test HAVE_CXX_MSSE3
    -- Performing Test HAVE_CXX_MSSE3 - Success
    -- Performing Test HAVE_C_MSSE3
    -- Performing Test HAVE_C_MSSE3 - Success
    -- Performing Test HAVE_CXX_MNO_SSSE3
    -- Performing Test HAVE_CXX_MNO_SSSE3 - Success
    -- Performing Test HAVE_C_MNO_SSSE3
    -- Performing Test HAVE_C_MNO_SSSE3 - Success
    -- Performing Test HAVE_CXX_MNO_SSE4_1
    -- Performing Test HAVE_CXX_MNO_SSE4_1 - Success
    -- Performing Test HAVE_C_MNO_SSE4_1
    -- Performing Test HAVE_C_MNO_SSE4_1 - Success
    -- Performing Test HAVE_CXX_MNO_SSE4_2
    -- Performing Test HAVE_CXX_MNO_SSE4_2 - Success
    -- Performing Test HAVE_C_MNO_SSE4_2
    -- Performing Test HAVE_C_MNO_SSE4_2 - Success
    -- Performing Test HAVE_CXX_FFUNCTION_SECTIONS
    -- Performing Test HAVE_CXX_FFUNCTION_SECTIONS - Success
    -- Performing Test HAVE_C_FFUNCTION_SECTIONS
    -- Performing Test HAVE_C_FFUNCTION_SECTIONS - Success
    -- Performing Test HAVE_CXX_FVISIBILITY_HIDDEN
    -- Performing Test HAVE_CXX_FVISIBILITY_HIDDEN - Success
    -- Performing Test HAVE_C_FVISIBILITY_HIDDEN
    -- Performing Test HAVE_C_FVISIBILITY_HIDDEN - Success
    -- Performing Test HAVE_CXX_FVISIBILITY_INLINES_HIDDEN
    -- Performing Test HAVE_CXX_FVISIBILITY_INLINES_HIDDEN - Success
    -- Performing Test HAVE_C_FVISIBILITY_INLINES_HIDDEN
    -- Performing Test HAVE_C_FVISIBILITY_INLINES_HIDDEN - Failed
    -- Looking for pthread.h
    -- Looking for pthread.h - found
    -- Check if the system is big endian
    -- Searching 16 bit integer
    -- Looking for sys/types.h
    -- Looking for sys/types.h - found
    -- Looking for stdint.h
    -- Looking for stdint.h - found
    -- Looking for stddef.h
    -- Looking for stddef.h - found
    -- Check size of unsigned short
    -- Check size of unsigned short - done
    -- Using unsigned short
    -- Check if the system is big endian - little endian
    -- Looking for fseeko
    -- Looking for fseeko - found
    -- Looking for unistd.h
    -- Looking for unistd.h - found
    -- Check size of off64_t
    -- Check size of off64_t - failed
    -- Performing Test HAVE_C_WNO_SHORTEN_64_TO_32
    -- Performing Test HAVE_C_WNO_SHORTEN_64_TO_32 - Failed
    -- Performing Test HAVE_C_WNO_ATTRIBUTES
    -- Performing Test HAVE_C_WNO_ATTRIBUTES - Success
    -- Performing Test HAVE_C_WNO_STRICT_PROTOTYPES
    -- Performing Test HAVE_C_WNO_STRICT_PROTOTYPES - Success
    -- Performing Test HAVE_C_WNO_MISSING_PROTOTYPES
    -- Performing Test HAVE_C_WNO_MISSING_PROTOTYPES - Success
    -- Performing Test HAVE_C_WNO_MISSING_DECLARATIONS
    -- Performing Test HAVE_C_WNO_MISSING_DECLARATIONS - Success
    -- Looking for assert.h
    -- Looking for assert.h - found
    -- Looking for fcntl.h
    -- Looking for fcntl.h - found
    -- Looking for io.h
    -- Looking for io.h - not found
    -- Looking for jbg_newlen
    -- Looking for jbg_newlen - not found
    -- Looking for mmap
    -- Looking for mmap - found
    -- Looking for search.h
    -- Looking for search.h - found
    -- Looking for string.h
    -- Looking for string.h - found
    -- Looking for unistd.h
    -- Looking for unistd.h - found
    -- Performing Test HAVE_C_WNO_UNUSED_BUT_SET_VARIABLE
    -- Performing Test HAVE_C_WNO_UNUSED_BUT_SET_VARIABLE - Success
    -- Performing Test HAVE_C_WNO_UNDEF
    -- Performing Test HAVE_C_WNO_UNDEF - Success
    -- Performing Test HAVE_C_WNO_UNUSED
    -- Performing Test HAVE_C_WNO_UNUSED - Success
    -- Performing Test HAVE_C_WNO_SIGN_COMPARE
    -- Performing Test HAVE_C_WNO_SIGN_COMPARE - Success
    -- Performing Test HAVE_C_WNO_CAST_ALIGN
    -- Performing Test HAVE_C_WNO_CAST_ALIGN - Success
    -- Performing Test HAVE_C_WNO_SHADOW
    -- Performing Test HAVE_C_WNO_SHADOW - Success
    -- Performing Test HAVE_C_WNO_MAYBE_UNINITIALIZED
    -- Performing Test HAVE_C_WNO_MAYBE_UNINITIALIZED - Success
    -- Performing Test HAVE_C_WNO_POINTER_TO_INT_CAST
    -- Performing Test HAVE_C_WNO_POINTER_TO_INT_CAST - Success
    -- Performing Test HAVE_C_WNO_INT_TO_POINTER_CAST
    -- Performing Test HAVE_C_WNO_INT_TO_POINTER_CAST - Success
    -- Performing Test HAVE_C_WNO_UNUSED_PARAMETER
    -- Performing Test HAVE_C_WNO_UNUSED_PARAMETER - Success
    -- Performing Test HAVE_CXX_WNO_MISSING_DECLARATIONS
    -- Performing Test HAVE_CXX_WNO_MISSING_DECLARATIONS - Success
    -- Performing Test HAVE_CXX_WNO_UNUSED_PARAMETER
    -- Performing Test HAVE_CXX_WNO_UNUSED_PARAMETER - Success
    -- Performing Test HAVE_C_WNO_UNUSED_VARIABLE
    -- Performing Test HAVE_C_WNO_UNUSED_VARIABLE - Success
    -- Performing Test HAVE_C_WNO_UNUSED_FUNCTION
    -- Performing Test HAVE_C_WNO_UNUSED_FUNCTION - Success
    -- Found JPEG: libjpeg  
    -- Could NOT find Jasper (missing: JASPER_LIBRARIES JASPER_INCLUDE_DIR) 
    -- Performing Test HAVE_C_WNO_IMPLICIT_FUNCTION_DECLARATION
    -- Performing Test HAVE_C_WNO_IMPLICIT_FUNCTION_DECLARATION - Success
    -- Performing Test HAVE_C_WNO_UNINITIALIZED
    -- Performing Test HAVE_C_WNO_UNINITIALIZED - Success
    -- Performing Test HAVE_C_WNO_UNUSED_BUT_SET_PARAMETER
    -- Performing Test HAVE_C_WNO_UNUSED_BUT_SET_PARAMETER - Success
    -- Performing Test HAVE_C_WNO_STRICT_OVERFLOW
    -- Performing Test HAVE_C_WNO_STRICT_OVERFLOW - Success
    -- Looking for semaphore.h
    -- Looking for semaphore.h - found
    -- Performing Test HAVE_CXX_WNO_SHADOW
    -- Performing Test HAVE_CXX_WNO_SHADOW - Success
    -- Performing Test HAVE_CXX_WNO_UNUSED
    -- Performing Test HAVE_CXX_WNO_UNUSED - Success
    -- Performing Test HAVE_CXX_WNO_SIGN_COMPARE
    -- Performing Test HAVE_CXX_WNO_SIGN_COMPARE - Success
    -- Performing Test HAVE_CXX_WNO_UNDEF
    -- Performing Test HAVE_CXX_WNO_UNDEF - Success
    -- Performing Test HAVE_CXX_WNO_UNINITIALIZED
    -- Performing Test HAVE_CXX_WNO_UNINITIALIZED - Success
    -- Performing Test HAVE_CXX_WNO_SWITCH
    -- Performing Test HAVE_CXX_WNO_SWITCH - Success
    -- Performing Test HAVE_CXX_WNO_PARENTHESES
    -- Performing Test HAVE_CXX_WNO_PARENTHESES - Success
    -- Performing Test HAVE_CXX_WNO_ARRAY_BOUNDS
    -- Performing Test HAVE_CXX_WNO_ARRAY_BOUNDS - Success
    -- Performing Test HAVE_CXX_WNO_EXTRA
    -- Performing Test HAVE_CXX_WNO_EXTRA - Success
    -- Performing Test HAVE_CXX_WNO_DEPRECATED_DECLARATIONS
    -- Performing Test HAVE_CXX_WNO_DEPRECATED_DECLARATIONS - Success
    -- Checking for module 'gtk+-3.0'
    --   No package 'gtk+-3.0' found
    -- Checking for module 'gtk+-2.0'
    --   No package 'gtk+-2.0' found
    -- Checking for module 'gthread-2.0'
    --   Found gthread-2.0, version 2.56.4
    -- Checking for module 'gstreamer-base-1.0'
    --   No package 'gstreamer-base-1.0' found
    -- Checking for module 'gstreamer-video-1.0'
    --   No package 'gstreamer-video-1.0' found
    -- Checking for module 'gstreamer-app-1.0'
    --   No package 'gstreamer-app-1.0' found
    -- Checking for module 'gstreamer-riff-1.0'
    --   No package 'gstreamer-riff-1.0' found
    -- Checking for module 'gstreamer-pbutils-1.0'
    --   No package 'gstreamer-pbutils-1.0' found
    -- Checking for module 'gstreamer-base-0.10'
    --   No package 'gstreamer-base-0.10' found
    -- Checking for module 'gstreamer-video-0.10'
    --   No package 'gstreamer-video-0.10' found
    -- Checking for module 'gstreamer-app-0.10'
    --   No package 'gstreamer-app-0.10' found
    -- Checking for module 'gstreamer-riff-0.10'
    --   No package 'gstreamer-riff-0.10' found
    -- Checking for module 'gstreamer-pbutils-0.10'
    --   No package 'gstreamer-pbutils-0.10' found
    -- Checking for module 'libdc1394-2'
    --   No package 'libdc1394-2' found
    -- Checking for module 'libdc1394'
    --   No package 'libdc1394' found
    -- Checking for module 'libv4l1'
    --   No package 'libv4l1' found
    -- Checking for module 'libv4l2'
    --   No package 'libv4l2' found
    -- Looking for linux/videodev.h
    -- Looking for linux/videodev.h - not found
    -- Looking for linux/videodev2.h
    -- Looking for linux/videodev2.h - found
    -- Looking for sys/videoio.h
    -- Looking for sys/videoio.h - not found
    -- Checking for module 'libavcodec'
    --   No package 'libavcodec' found
    -- Checking for module 'libavformat'
    --   No package 'libavformat' found
    -- Checking for module 'libavutil'
    --   No package 'libavutil' found
    -- Checking for module 'libswscale'
    --   No package 'libswscale' found
    -- Checking for module 'libavresample'
    --   No package 'libavresample' found
    -- Looking for libavformat/avformat.h
    -- Looking for libavformat/avformat.h - not found
    -- Looking for ffmpeg/avformat.h
    -- Looking for ffmpeg/avformat.h - not found
    -- Checking for module 'libgphoto2'
    --   No package 'libgphoto2' found
    -- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
    -- To enable PlantUML support, set PLANTUML_JAR environment variable or pass -DPLANTUML_JAR=<filepath> option to cmake
    -- Found PythonInterp: /usr/bin/python2.7 (found suitable version "2.7.17", minimum required is "2.7") 
    -- Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS) (Required is exact version "2.7.17")
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
    ImportError: No module named numpy.distutils
    -- Found PythonInterp: /usr/bin/python3 (found suitable version "3.6.9", minimum required is "3.4") 
    -- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.6m.so (found suitable exact version "3.6.9") 
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
    ModuleNotFoundError: No module named 'numpy'
    -- Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH) 
    -- Could NOT find Matlab (missing: MATLAB_MEX_SCRIPT MATLAB_INCLUDE_DIRS MATLAB_ROOT_DIR MATLAB_LIBRARIES MATLAB_LIBRARY_DIRS MATLAB_MEXEXT MATLAB_ARCH MATLAB_BIN) 
    -- VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file
    -- Module opencv_highgui disabled because opencv_videoio dependency can't be resolved!
    -- 
    -- General configuration for OpenCV 3.1.0 =====================================
    --   Version control:               unknown
    -- 
    --   Platform:
    --     Host:                        Linux 5.3.0-46-generic x86_64
    --     CMake:                       3.10.2
    --     CMake generator:             Unix Makefiles
    --     CMake build tool:            /usr/bin/make
    --     Configuration:               Release
    -- 
    --   C/C++:
    --     Built as dynamic libs?:      NO
    --     C++ Compiler:                /usr/bin/c++  (ver 7.5.0)
    --     C++ flags (Release):         -fPIC   -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG  -DNDEBUG
    --     C++ flags (Debug):           -fPIC   -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden -g  -O0 -DDEBUG -D_DEBUG
    --     C Compiler:                  /usr/bin/cc
    --     C flags (Release):           -fPIC   -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -O3 -DNDEBUG  -DNDEBUG
    --     C flags (Debug):             -fPIC   -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -g  -O0 -DDEBUG -D_DEBUG
    --     Linker flags (Release):
    --     Linker flags (Debug):
    --     Precompiled headers:         YES
    --     Extra dependencies:          stdc++ dl m pthread rt
    --     3rdparty dependencies:       zlib libjpeg libwebp libpng libtiff libjasper IlmImf
    -- 
    --   OpenCV modules:
    --     To be built:                 core flann imgproc ml objdetect photo video features2d imgcodecs shape superres calib3d stitching videostab
    --     Disabled:                    videoio world
    --     Disabled by dependency:      highgui
    --     Unavailable:                 cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev java python2 python3 ts viz
    -- 
    --   GUI: 
    --     QT:                          NO
    --     GTK+:                        NO
    --     GThread :                    YES (ver 2.56.4)
    --     GtkGlExt:                    NO
    --     OpenGL support:              NO
    --     VTK support:                 NO
    -- 
    --   Media I/O: 
    --     ZLib:                        build (ver 1.2.8)
    --     JPEG:                        libjpeg (ver 90)
    --     WEBP:                        build (ver 0.3.1)
    --     PNG:                         build (ver 1.6.19)
    --     TIFF:                        build (ver 42 - 4.0.2)
    --     JPEG 2000:                   build (ver 1.900.1)
    --     OpenEXR:                     build (ver 1.7.1)
    --     GDAL:                        NO
    -- 
    --   Video I/O:
    --     DC1394 1.x:                  NO
    --     DC1394 2.x:                  NO
    --     FFMPEG:                      NO
    --       codec:                     NO
    --       format:                    NO
    --       util:                      NO
    --       swscale:                   NO
    --       resample:                  NO
    --       gentoo-style:              NO
    --     GStreamer:                   NO
    --     OpenNI:                      NO
    --     OpenNI PrimeSensor Modules:  NO
    --     OpenNI2:                     NO
    --     PvAPI:                       NO
    --     GigEVisionSDK:               NO
    --     UniCap:                      NO
    --     UniCap ucil:                 NO
    --     V4L/V4L2:                    NO/YES
    --     XIMEA:                       NO
    --     Xine:                        NO
    --     gPhoto2:                     NO
    -- 
    --   Parallel framework:            pthreads
    -- 
    --   Other third-party libraries:
    --     Use IPP:                     NO
    --     Use IPP Async:               NO
    --     Use VA:                      NO
    --     Use Intel VA-API/OpenCL:     NO
    --     Use Eigen:                   NO
    --     Use Cuda:                    NO
    --     Use OpenCL:                  YES
    --     Use custom HAL:              NO
    -- 
    --   OpenCL:
    --     Version:                     dynamic
    --     Include path:                /home/sithara/ti/j8/psdk_rtos_auto_j7_06_02_00_21/opencv-3.1.0/3rdparty/include/opencl/1.2
    --     Use AMDFFT:                  NO
    --     Use AMDBLAS:                 NO
    -- 
    --   Python 2:
    --     Interpreter:                 /usr/bin/python2.7 (ver 2.7.17)
    -- 
    --   Python 3:
    --     Interpreter:                 /usr/bin/python3 (ver 3.6.9)
    -- 
    --   Python (for build):            /usr/bin/python2.7
    -- 
    --   Java:
    --     ant:                         NO
    --     JNI:                         NO
    --     Java wrappers:               NO
    --     Java tests:                  NO
    -- 
    --   Matlab:                        Matlab not found or implicitly disabled
    -- 
    --   Documentation:
    --     Doxygen:                     NO
    --     PlantUML:                    NO
    -- 
    --   Tests and samples:
    --     Tests:                       NO
    --     Performance tests:           NO
    --     C/C++ Examples:              NO
    -- 
    --   Install path:                  /usr/local
    -- 
    --   cvconfig.h is in:              /home/sithara/ti/j8/psdk_rtos_auto_j7_06_02_00_21/opencv-3.1.0/cmake
    -- -----------------------------------------------------------------
    -- 
    -- Configuring done
    -- Generating done
    CMake Warning:
      Manually-specified variables were not used by the project:
    
        BUILD_WITH_DYNAMIC_IPP
    
    
    -- Build files have been written to: /home/sithara/ti/j8/psdk_rtos_auto_j7_06_02_00_21/opencv-3.1.0/cmake
    
    

    Console log after make from cmake folder:cmake_make.txt

    2.Was the changes made by us  in makefile of test folder(attached in the previous query) really necessary? Did we missed something in that case too?

    Kindly guide.

    Thanks & Regards

    Sithara Tresa Chacko

  • Your changes in the make file were not necessary.

    Did you set the "TIDL_OPENCV_PATH" to the opencv folder where you built the library?

    Check whether thebelow libraries are avaialble in the opencv folder where you ran Cmake. These steps are not spefici to TIDL.

    /usr/bin/ld: cannot find -lopencv_imgproc
    /usr/bin/ld: cannot find -lopencv_imgcodecs
    /usr/bin/ld: cannot find -lopencv_core
    /usr/bin/ld: cannot find -lopencv_calib3d
    /usr/bin/ld: cannot find -lopencv_stitching

    http://software-dl.ti.com/jacinto7/esd/processor-sdk-rtos-jacinto7/latest/exports/docs/tidl_j7_01_01_00_10/ti_dl/docs/user_guide_html/md_tidl_build_instruction.html#tidl_build_Environment