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.

IPNC DM365 V2.0.0 build Error

when i  run "IPNC Application Build Procedure", In /IPNC dir, type "make sysall" commond, the Error is this:

alg_vidEnc.c: In function ‘ALG_vidEncCreate’:

alg_vidEnc.c:156: error: ‘IH264VENC_Params’ has no member named ‘sliceMode’

alg_vidEnc.c:157: error: ‘IH264VENC_Params’ has no member named ‘outputDataMode’

alg_vidEnc.c:157: error: ‘IH264VENC_TI_ENTIREFRAME’ undeclared (first use in this function)

alg_vidEnc.c:157: error: (Each undeclared identifier is reported only once

alg_vidEnc.c:157: error: for each function it appears in.)

alg_vidEnc.c:158: error: ‘IH264VENC_Params’ has no member named ‘sliceFormat’

alg_vidEnc.c:158: error: ‘IH264VENC_TI_BYTESTREAM’ undeclared (first use in this function)

alg_vidEnc.c: In function ‘ALG_vidEncSetDynamicParams’:

alg_vidEnc.c:254: error: ‘IH264VENC_DynamicParams’ has no member named ‘rcQMinI’

alg_vidEnc.c:255: error: ‘IH264VENC_DynamicParams’ has no member named ‘rcQMaxI’

alg_vidEnc.c:260: error: ‘IH264VENC_DynamicParams’ has no member named ‘disableMVDCostFactor’

alg_vidEnc.c:261: error: ‘IH264VENC_DynamicParams’ has no member named ‘putDataGetSpaceFxn’

alg_vidEnc.c:262: error: ‘IH264VENC_DynamicParams’ has no member named ‘dataSyncHandle’

alg_vidEnc.c: In function ‘ALG_vidEncRun’:

alg_vidEnc.c:631: warning: pointer targets in passing argument 2 of ‘OSA_fileWriteVideoData’ differ in signedness

alg_vidEnc.c:631: warning: pointer targets in passing argument 3 of ‘OSA_fileWriteVideoData’ differ in signedness

alg_vidEnc.c:638: warning: dereferencing type-punned pointer will break strict-aliasing rules

alg_vidEnc.c:648: warning: assignment from incompatible pointer type

alg_vidEnc.c:690: error: ‘IH264VENC_InArgs’ has no member named ‘numOutputDataUnits’

alg_vidEnc.c:715: warning: passing argument 4 of ‘VIDENC1_process’ from incompatible pointer type

make[6]: *** [alg_vidEnc.o] Error 1

make[6]: Leaving directory `/opt/ipnc/av_capture/framework/alg/src'

make[5]: *** [xdc] Error 2

make[5]: Leaving directory `/opt/ipnc/av_capture/framework/alg/src'

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

make[4]: Leaving directory `/opt/ipnc/av_capture/framework'

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

make[3]: Leaving directory `/opt/ipnc'

make[2]: *** [exe] Error 2

make[2]: Leaving directory `/opt/ipnc'

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

make[1]: Leaving directory `/opt/ipnc'

make: *** [sysall] Error 2

 

  • Hi,

    Looks like your codec libraries dont exist in the correct path or it did not get build through the XDC tools. Can you please provide the complete build log point the exact error?

    Regards.

    Anshuman

    PS: Please mark the post as verified, if you think it has answered your question. Thanks.

  • Thanks for the detailed reply by Anshuman. I re-installed the DVSDK_2_10_01_18, in / IPNC directory, run make sysall instruction, the error is as follows:

    ======== Building alg_config ======== Configuring application using alg_server.cfg XDCPATH="/opt/dvsdk_2_10_01_18/codec_engine_2_24/examples;/opt/dvsdk_2_10_01_18/dm365_codecs_01_00_06/packages;/opt/dvsdk_2_10_01_18/codec_engine_2_24/packages;/opt/dvsdk_2_10_01_18/xdais_6_24/packages;/opt/dvsdk_2_10_01_18/framework_components_2_25_00_04/packages;/opt/dvsdk_2_10_01_18/edma3_lld_1_06_00_01/packages;/opt/dvsdk_2_10_01_18/linuxutils_2_24_03/packages" /opt/dvsdk_2_10_01_18/xdctools_3_15_01_59/xs xdc.tools.configuro -c /opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le -o alg_config -t gnu.targets.MVArm9 -p ti.platforms.evmDM365 alg_server.cfg making package.mak (because of package.bld) ... generating interfaces for package alg_config (because package/package.xdc.inc is older than package.xdc) ... configuring alg_server.x470MV from package/cfg/alg_server_x470MV.cfg ... js: "/opt/ipnc/av_capture/framework/alg/src/alg_server.cfg", line 74: xdc.services.global.XDCException: xdc.PACKAGE_NOT_FOUND: can't locate the package 'ti.sdo.codecs.iprun.ce' along the path: '/opt/dvsdk_2_10_01_18/codec_engine_2_24/examples;/opt/dvsdk_2_10_01_18/dm365_codecs_01_00_06/packages;/opt/dvsdk_2_10_01_18/codec_engine_2_24/packages;/opt/dvsdk_2_10_01_18/xdais_6_24/packages;/opt/dvsdk_2_10_01_18/framework_components_2_25_00_04/packages;/opt/dvsdk_2_10_01_18/edma3_lld_1_06_00_01/packages;/opt/dvsdk_2_10_01_18/linuxutils_2_24_03/packages;/opt/dvsdk_2_10_01_18/xdctools_3_15_01_59/packages;..;'. Ensure that the package path is set correctly. "./package/cfg/alg_server_x470MV.cfg", line 474 "./package/cfg/alg_server_x470MV.cfg", line 429 gmake: *** [package/cfg/alg_server_x470MV.c]

     Error 1 js: "/opt/dvsdk_2_10_01_18/xdctools_3_15_01_59/packages/xdc/tools/Cmdr.xs", line 51: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.

    make[6]: *** [alg_config] Error 1 make[6]: Leaving directory `/opt/ipnc/av_capture/framework/alg/src' make[5]: *** [xdc] Error 2 make[5]: Leaving directory `/opt/ipnc/av_capture/framework/alg/src' make[4]: *** [libs] Error 2 make[4]: Leaving directory `/opt/ipnc/av_capture/framework' make[3]: *** [libs] Error 2 make[3]: Leaving directory `/opt/ipnc' make[2]: *** [exe] Error 2 make[2]: Leaving directory `/opt/ipnc' make[1]: *** [all] Error 2 make[1]: Leaving directory `/opt/ipnc' make: *** [sysall] Error 2

     

     

  • In /opt/ipnc ,the rules.make file is this:

    #

    # This make variable must be set before the demos or examples

    # can be built.  It must be set to either dm355 or dm6446

    #

     

    MVTOOL_DIR := /opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le

     

    BASE_HOME := /opt

     

    HOME := $(BASE_HOME)/ipnc

    DVSDK_BASE_DIR := $(BASE_HOME)/dvsdk_2_10_01_18

     

    TARGET_FS := $(HOME)/target/filesys

    KERNELDIR := $(HOME)/ti-davinci

    BASE_DIR := $(HOME)/av_capture/build

    TFTP_HOME := $(HOME)/tftp

     

    #SYSTEM := DVR

    #SYSTEM := EVM

    SYSTEM := IPNC

     

    HARDWARE :=DM365

    #HARDWARE :=DM368

     

    CONFIG :=

     

    include $(DVSDK_BASE_DIR)/Rules.make

     

     

    # Where to copy the resulting executables and data to (when executing 'make

    # install') in a proper file structure. This EXEC_DIR should either be visible

    # from the target, or you will have to copy this (whole) directory onto the

    # target filesystem.

    EXEC_DIR=$(TARGET_FS)/opt/ipnc

     

    # The directory that points to the IPNC software package

    IPNC_DIR=$(HOME)/ipnc_app

     

    # The directory to application interface

    IPNC_INTERFACE_DIR=$(IPNC_DIR)/interface

     

    # The directory to application interface include files

    PUBLIC_INCLUDE_DIR=$(IPNC_INTERFACE_DIR)/inc

     

    # The directory to application interface library files

    APP_LIB_DIR=$(IPNC_INTERFACE_DIR)/lib

     

    # The directory to root file system

    ROOT_FILE_SYS = $(TARGET_FS)

     

    AEWB_LIBS :=

     

    ifeq ($(SYSTEM), DVR)

    BOARD_ID := BOARD_UD_DVR

    IMGS_ID := IMGS_NONE

    TARGET_FS_DIR := $(TARGET_FS)/opt/dvr

    AEWB_ID := AEWB_NONE

    endif

     

    ifeq ($(SYSTEM), IPNC)

    BOARD_ID := BOARD_AP_IPNC

    IMGS_ID := IMGS_MICRON_MT9P031_5MP

    TARGET_FS_DIR := $(TARGET_FS)/opt/ipnc

    AEWB_ID := AEWB_ENABLE

    endif

     

    ifeq ($(SYSTEM), EVM)

    BOARD_ID := BOARD_TI_EVM

    IMGS_ID := IMGS_MICRON_MT9P031_5MP

    TARGET_FS_DIR := $(TARGET_FS)/opt/ipnc

    AEWB_ID := AEWB_ENABLE

    endif

     

    export IPNC_DIR

    export PUBLIC_INCLUDE_DIR

    export APP_LIB_DIR

    export TARGET_FS

    export SYSTEM

    export LINUXKERNEL_INSTALL_DIR

    export EXEC_DIR

    export TARGET_FS_DIR

    export KERNELDIR

    export BASE_DIR

    export CONFIG

    export DVSDK_BASE_DIR

    export CMEM_INSTALL_DIR

    export MVTOOL_PREFIX

    export IMGS_ID

    export BOARD_ID

    export DVSDK_DEMOS_DIR

    export AEWB_ID

    export AEWB_LIBS

    export MVTOOL_DIR

    Thanks for reply.

     

  • Thanks Anshuman's coaching. The reason is not my DVSDK installed version, right now, thank you!

    f hs

  • f hs said:

    Thanks for the detailed reply by Anshuman. I re-installed the DVSDK_2_10_01_18, in / IPNC directory, run make sysall instruction, the error is as follows:

    ======== Building alg_config ======== Configuring application using alg_server.cfg XDCPATH="/opt/dvsdk_2_10_01_18/codec_engine_2_24/examples;/opt/dvsdk_2_10_01_18/dm365_codecs_01_00_06/packages;/opt/dvsdk_2_10_01_18/codec_engine_2_24/packages;/opt/dvsdk_2_10_01_18/xdais_6_24/packages;/opt/dvsdk_2_10_01_18/framework_components_2_25_00_04/packages;/opt/dvsdk_2_10_01_18/edma3_lld_1_06_00_01/packages;/opt/dvsdk_2_10_01_18/linuxutils_2_24_03/packages" /opt/dvsdk_2_10_01_18/xdctools_3_15_01_59/xs xdc.tools.configuro -c /opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le -o alg_config -t gnu.targets.MVArm9 -p ti.platforms.evmDM365 alg_server.cfg making package.mak (because of package.bld) ... generating interfaces for package alg_config (because package/package.xdc.inc is older than package.xdc) ... configuring alg_server.x470MV from package/cfg/alg_server_x470MV.cfg ... js: "/opt/ipnc/av_capture/framework/alg/src/alg_server.cfg", line 74: xdc.services.global.XDCException: xdc.PACKAGE_NOT_FOUND: can't locate the package 'ti.sdo.codecs.iprun.ce' along the path: '/opt/dvsdk_2_10_01_18/codec_engine_2_24/examples;/opt/dvsdk_2_10_01_18/dm365_codecs_01_00_06/packages;/opt/dvsdk_2_10_01_18/codec_engine_2_24/packages;/opt/dvsdk_2_10_01_18/xdais_6_24/packages;/opt/dvsdk_2_10_01_18/framework_components_2_25_00_04/packages;/opt/dvsdk_2_10_01_18/edma3_lld_1_06_00_01/packages;/opt/dvsdk_2_10_01_18/linuxutils_2_24_03/packages;/opt/dvsdk_2_10_01_18/xdctools_3_15_01_59/packages;..;'. Ensure that the package path is set correctly. "./package/cfg/alg_server_x470MV.cfg", line 474 "./package/cfg/alg_server_x470MV.cfg", line 429 gmake: *** [package/cfg/alg_server_x470MV.c]

     Error 1 js: "/opt/dvsdk_2_10_01_18/xdctools_3_15_01_59/packages/xdc/tools/Cmdr.xs", line 51: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.

    make[6]: *** [alg_config] Error 1 make[6]: Leaving directory `/opt/ipnc/av_capture/framework/alg/src' make[5]: *** [xdc] Error 2 make[5]: Leaving directory `/opt/ipnc/av_capture/framework/alg/src' make[4]: *** [libs] Error 2 make[4]: Leaving directory `/opt/ipnc/av_capture/framework' make[3]: *** [libs] Error 2 make[3]: Leaving directory `/opt/ipnc' make[2]: *** [exe] Error 2 make[2]: Leaving directory `/opt/ipnc' make[1]: *** [all] Error 2 make[1]: Leaving directory `/opt/ipnc' make: *** [sysall] Error 2

     

     


    I have the same error!
    Reading the previous posts isn't clear, which is the solution?

    regards

     

  • I found, I used the dvsdk and xdctools downloaded from here which versions are the same of the dvsdk inside IPNC 2.0 pakage ... but the xdctools content is not the same
    with IPNC 2.0 dvsdk I can compile without errors

    regards



  • I assume you are using the DVSDK that comes with IPNC release ver 2.0

    If you are still facing problem, please share the alg_server.cfg file

     

    Regards,

    Anshuman

    PS: Please mark this post as verified, if you think it has answered your question. Thanks.

  • I have the same error,too!

    This is my alg_server.cfg

    Please help me!!

     

    var osalGlobal = xdc.useModule('ti.sdo.ce.osal.Global');
    osalGlobal.runtimeEnv = osalGlobal.LINUX;

    environment['xdc.cfg.check.fatal'] = 'false';


    var RMAN = xdc.useModule('ti.sdo.fc.rman.RMAN');
    RMAN.useDSKT2 = false;
    RMAN.persistentAllocFxn = "__ALG_allocMemory";
    RMAN.persistentFreeFxn = "__ALG_freeMemory";
    RMAN.semCreateFxn = "Sem_create";
    RMAN.semDeleteFxn = "Sem_delete";
    RMAN.semPendFxn = "Sem_pend";
    RMAN.semPostFxn = "Sem_post";
    RMAN.tableSize = 10;
    RMAN.trace = true;
    RMAN.debug = true;


    var EDMA3 = xdc.useModule('ti.sdo.fc.edma3.Settings');
    EDMA3.globalInit = true;
    EDMA3.maxQdmaChannels = [10,10,10,10];
    EDMA3.trace = false;
    EDMA3.debug = false;
    EDMA3.maxRequests = 128;


    var vicp = xdc.useModule('ti.sdo.linuxutils.vicp.VICP');
    vicp.debug = false;


    var HDVICP = xdc.useModule('ti.sdo.fc.ires.hdvicp.HDVICP');
    HDVICP.trace = false;
    HDVICP.debug = false;

    //Change this to VICP if the chip is not DM355
    var VICP = xdc.useModule('ti.sdo.fc.ires.vicp.VICP2');
    VICP.debug = true;

    var VICPSYNC = xdc.useModule('ti.sdo.fc.vicpsync.VICPSYNC');
    VICPSYNC.debug = false;



    var HDVICPSYNC = xdc.useModule('ti.sdo.fc.hdvicpsync.HDVICPSYNC');
    HDVICPSYNC.debug = false;
    HDVICPSYNC.trace = false;

    var VICP = xdc.useModule('ti.sdo.fc.memutils.MEMUTILS');

    ADDRSPACE = xdc.useModule('ti.sdo.fc.ires.addrspace.ADDRSPACE');

    var MEMTCM = xdc.useModule('ti.sdo.fc.ires.memtcm.MEMTCM');
    MEMTCM.cmemBlockId = 1; //Since we use _1 in our insmod command.

    var EDMA3CHAN = xdc.useModule('ti.sdo.fc.ires.edma3chan.EDMA3CHAN');
    EDMA3CHAN.trace = false;
    EDMA3CHAN.debug = false;

    var LSP = xdc.useModule('ti.sdo.linuxutils.edma.EDMA');
    LSP.debug = false;

    var CMEM = xdc.useModule('ti.sdo.linuxutils.cmem.CMEM');

    var ALG_MEM = xdc.useModule('ti.sdo.ce.alg.Settings');
    ALG_MEM.useHeap = true;
    ALG_MEM.useCache = true;

    xdc.loadPackage("ti.sdo.ce.video2");
    xdc.loadPackage("ti.sdo.fc.hdvicpsync");

    /*
     *  ======== Engine Configuration ========
     */

    var KTNF = xdc.useModule('ti.sdo.codecs.ktnf.ce.KTNF');
    var MPEG4ENC = xdc.useModule('ti.sdo.codecs.mpeg4enc.ce.MPEG4ENC');
    var H264ENC = xdc.useModule('ti.sdo.codecs.h264enc.ce.H264ENC');
    var JPEGENC = xdc.useModule('ti.sdo.codecs.jpegenc.ce.JPEGENC');
    var G711ENC = xdc.useModule('ti.sdo.ce.examples.codecs.g711.G711ENC');

    var Engine = xdc.useModule('ti.sdo.ce.Engine');
    var myEngine = Engine.create("alg_server", [

        {name: "g711enc", mod: G711ENC, local: true, groupId: 1},
        {name: "mpeg4enc", mod: MPEG4ENC, local: true, groupId: 1},
        {name: "jpegenc", mod: JPEGENC, local: true, groupId: 1},
        {name: "ktnf", mod: KTNF, local: true, groupId: 2},
        {name: "h264enc", mod: H264ENC, local: true, groupId: 1},
    ]);

    Program.main = null;