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.

DM8168 codec_engine dsp server building errors

Other Parts Discussed in Thread: OMAPL138, OMAP3530

HI:

I have run through the videnc_copy example in $(CE_installpath)/examples/ti/sdo/ce/exampls/codecs/videnc_copy under the EZSDK enviroments ,and created files videnc_copy.a64P,videnc_copy.ae64P,videnc_copy.a674 and etc in /lib, and also the package file dir.

then,I tried to build the corresponding dsp_server under the path $(CE_installpath)/examples/ti/sdo/ce/exampls/all_codecs,which I've changed into the name videnc_copy, at the same time, ralated config files was also changed in order to make my videnc_copy  server.

however,when I run the make command under this path,errors occured like following:

root@ubuntu:/usr/local/ezsdk/component-sources/codec_engine_3_22_01_06/examples/ti/sdo/ce/examples/servers/videnc_copy# make
"/usr/local/ezsdk/component-sources/xdctools_3_23_03_53/xdc" --jobs=1 \
XDCBUILDCFG=_config.bld \
XDCPATH="/usr/local/ezsdk/component-sources/codec_engine_3_22_01_06/examples/ti/sdo/ce/examples/servers/videnc_copy/../../../../../..;/usr/local/ezsdk/component-sources/xdctools_3_23_03_53/packages;/usr/local/ezsdk/component-sources/xdais_7_22_00_03/packages;/usr/local/ezsdk/component-sources/bios_6_33_05_46/packages;/usr/local/ezsdk/component-sources/linuxutils_3_22_00_02/packages;/usr/local/ezsdk/component-sources/syslink_2_20_02_20/packages;/usr/local/ezsdk/component-sources/osal_1_22_01_09/packages;/usr/local/ezsdk/component-sources/framework_components_3_22_01_07/packages;/usr/local/ezsdk/component-sources/edma3lld_02_11_05_02/packages;/usr/local/ezsdk/component-sources/ipc_1_24_03_32/packages;/usr/local/ezsdk/component-sources/codec_engine_3_22_01_06/packages" \
XDCOPTIONS=v XDCARGS="DEVICE=\"TI816X\" PROGRAMS=\"APP_CLIENT DSP_SERVER\" GPPOS=\"LINUX_GCC\" ti.targets.C64P=\"/usr/local/ezsdk/dsp-devkit/cgt6x_7_3_4\" ti.targets.C674=\"/usr/local/ezsdk/dsp-devkit/cgt6x_7_3_4\" ti.targets.arm.elf.M3=\"\" ti.targets.elf.C64P=\"/usr/local/ezsdk/dsp-devkit/cgt6x_7_3_4\" ti.targets.elf.C64T=\"/usr/local/ezsdk/dsp-devkit/cgt6x_7_3_4\" ti.targets.elf.C66=\"/usr/local/ezsdk/dsp-devkit/cgt6x_7_3_4\" ti.targets.elf.C674=\"/usr/local/ezsdk/dsp-devkit/cgt6x_7_3_4\" gnu.targets.arm.GCArmv5T=\"/root/CodeSourcery/Sourcery_G++_Lite/;LONGNAME=bin/arm-none-linux-gnueabi-gcc;profiles.release.compileOpts.copts=-O2 -ffunction-sections\" google.targets.arm.Bionic=\";LONGNAME=;libcDir=;fsDir=\"" all -PD .
making all: Tue Apr 21 16:23:22 CST 2015 ...
======== .interfaces [/usr/local/ezsdk/component-sources/codec_engine_3_22_01_06/examples/ti/sdo/ce/examples/servers/videnc_copy] ========
#
# making package.mak (because of package.bld) ...
/usr/local/ezsdk/component-sources/xdctools_3_23_03_53/xs -Dxdc.path="/usr/local/ezsdk/component-sources/codec_engine_3_22_01_06/examples/ti/sdo/ce/examples/servers/videnc_copy/../../../../../..;/usr/local/ezsdk/component-sources/xdctools_3_23_03_53/packages;/usr/local/ezsdk/component-sources/xdais_7_22_00_03/packages;/usr/local/ezsdk/component-sources/bios_6_33_05_46/packages;/usr/local/ezsdk/component-sources/linuxutils_3_22_00_02/packages;/usr/local/ezsdk/component-sources/syslink_2_20_02_20/packages;/usr/local/ezsdk/component-sources/osal_1_22_01_09/packages;/usr/local/ezsdk/component-sources/framework_components_3_22_01_07/packages;/usr/local/ezsdk/component-sources/edma3lld_02_11_05_02/packages;/usr/local/ezsdk/component-sources/ipc_1_24_03_32/packages;/usr/local/ezsdk/component-sources/codec_engine_3_22_01_06/packages;/usr/local/ezsdk/component-sources/xdctools_3_23_03_53/packages;../../../../../.." -Dxdc.root=/usr/local/ezsdk/component-sources/xdctools_3_23_03_53 -Dxdc.hostOS=Linux -Dconfig.importPath=".;/usr/local/ezsdk/component-sources/codec_engine_3_22_01_06/examples/ti/sdo/ce/examples/servers/videnc_copy/../../../../../..;/usr/local/ezsdk/component-sources/xdctools_3_23_03_53/packages;/usr/local/ezsdk/component-sources/xdais_7_22_00_03/packages;/usr/local/ezsdk/component-sources/bios_6_33_05_46/packages;/usr/local/ezsdk/component-sources/linuxutils_3_22_00_02/packages;/usr/local/ezsdk/component-sources/syslink_2_20_02_20/packages;/usr/local/ezsdk/component-sources/osal_1_22_01_09/packages;/usr/local/ezsdk/component-sources/framework_components_3_22_01_07/packages;/usr/local/ezsdk/component-sources/edma3lld_02_11_05_02/packages;/usr/local/ezsdk/component-sources/ipc_1_24_03_32/packages;/usr/local/ezsdk/component-sources/codec_engine_3_22_01_06/packages;/usr/local/ezsdk/component-sources/xdctools_3_23_03_53/packages;../../../../../..;/usr/local/ezsdk/component-sources/xdctools_3_23_03_53;/usr/local/ezsdk/component-sources/xdctools_3_23_03_53/etc" -Dxdc.bld.targets="" -DTOOLS= -f /usr/local/ezsdk/component-sources/xdctools_3_23_03_53/packages/xdc/bld/bld.js /usr/local/ezsdk/component-sources/codec_engine_3_22_01_06/examples/ti/sdo/ce/examples/servers/videnc_copy/_config.bld package.bld package.mak DEVICE="TI816X" PROGRAMS="APP_CLIENT DSP_SERVER" GPPOS="LINUX_GCC" ti.targets.C64P="/usr/local/ezsdk/dsp-devkit/cgt6x_7_3_4" ti.targets.C674="/usr/local/ezsdk/dsp-devkit/cgt6x_7_3_4" ti.targets.arm.elf.M3="" ti.targets.elf.C64P="/usr/local/ezsdk/dsp-devkit/cgt6x_7_3_4" ti.targets.elf.C64T="/usr/local/ezsdk/dsp-devkit/cgt6x_7_3_4" ti.targets.elf.C66="/usr/local/ezsdk/dsp-devkit/cgt6x_7_3_4" ti.targets.elf.C674="/usr/local/ezsdk/dsp-devkit/cgt6x_7_3_4" gnu.targets.arm.GCArmv5T="/root/CodeSourcery/Sourcery_G++_Lite/;LONGNAME=bin/arm-none-linux-gnueabi-gcc;profiles.release.compileOpts.copts=-O2 -ffunction-sections" google.targets.arm.Bionic=";LONGNAME=;libcDir=;fsDir="
Building 'ti.targets.C64P' using '/usr/local/ezsdk/dsp-devkit/cgt6x_7_3_4' ...
Building 'ti.targets.C674' using '/usr/local/ezsdk/dsp-devkit/cgt6x_7_3_4' ...
Building 'ti.targets.elf.C64P' using '/usr/local/ezsdk/dsp-devkit/cgt6x_7_3_4' ...
Building 'ti.targets.elf.C64T' using '/usr/local/ezsdk/dsp-devkit/cgt6x_7_3_4' ...
Building 'ti.targets.elf.C66' using '/usr/local/ezsdk/dsp-devkit/cgt6x_7_3_4' ...
Building 'ti.targets.elf.C674' using '/usr/local/ezsdk/dsp-devkit/cgt6x_7_3_4' ...
Building 'gnu.targets.arm.GCArmv5T' using '/root/CodeSourcery/Sourcery_G++_Lite/' ...
Configuring target.LONGNAME = bin/arm-none-linux-gnueabi-gcc
Configuring target.profiles.release.compileOpts.copts = -O2 -ffunction-sections
exe name = 'bin/ti_platforms_sim6xxx/videnc_copy_TMS320CDM420'
exe name = 'bin/ti_platforms_evmDA830/videnc_copy'
exe name = 'bin/ti_platforms_sim6xxx/videnc_copy_TMS320CDM420'
exe name = 'bin/ti_platforms_simTCI6616/videnc_copy'
exe name = 'bin/ti_platforms_evmTI816X/videnc_copy_DSP'
#
# generating interfaces for package ti.sdo.ce.examples.servers.videnc_copy (because package/package.xdc.inc is older than package.xdc) ...
/usr/local/ezsdk/component-sources/xdctools_3_23_03_53/xs -Dxdc.path="/usr/local/ezsdk/component-sources/codec_engine_3_22_01_06/examples/ti/sdo/ce/examples/servers/videnc_copy/../../../../../..;/usr/local/ezsdk/component-sources/xdctools_3_23_03_53/packages;/usr/local/ezsdk/component-sources/xdais_7_22_00_03/packages;/usr/local/ezsdk/component-sources/bios_6_33_05_46/packages;/usr/local/ezsdk/component-sources/linuxutils_3_22_00_02/packages;/usr/local/ezsdk/component-sources/syslink_2_20_02_20/packages;/usr/local/ezsdk/component-sources/osal_1_22_01_09/packages;/usr/local/ezsdk/component-sources/framework_components_3_22_01_07/packages;/usr/local/ezsdk/component-sources/edma3lld_02_11_05_02/packages;/usr/local/ezsdk/component-sources/ipc_1_24_03_32/packages;/usr/local/ezsdk/component-sources/codec_engine_3_22_01_06/packages;/usr/local/ezsdk/component-sources/xdctools_3_23_03_53/packages;../../../../../.." -Dxdc.root=/usr/local/ezsdk/component-sources/xdctools_3_23_03_53 -Dxdc.hostOS=Linux -Dconfig.importPath=".;/usr/local/ezsdk/component-sources/codec_engine_3_22_01_06/examples/ti/sdo/ce/examples/servers/videnc_copy/../../../../../..;/usr/local/ezsdk/component-sources/xdctools_3_23_03_53/packages;/usr/local/ezsdk/component-sources/xdais_7_22_00_03/packages;/usr/local/ezsdk/component-sources/bios_6_33_05_46/packages;/usr/local/ezsdk/component-sources/linuxutils_3_22_00_02/packages;/usr/local/ezsdk/component-sources/syslink_2_20_02_20/packages;/usr/local/ezsdk/component-sources/osal_1_22_01_09/packages;/usr/local/ezsdk/component-sources/framework_components_3_22_01_07/packages;/usr/local/ezsdk/component-sources/edma3lld_02_11_05_02/packages;/usr/local/ezsdk/component-sources/ipc_1_24_03_32/packages;/usr/local/ezsdk/component-sources/codec_engine_3_22_01_06/packages;/usr/local/ezsdk/component-sources/xdctools_3_23_03_53/packages;../../../../../..;/usr/local/ezsdk/component-sources/xdctools_3_23_03_53;/usr/local/ezsdk/component-sources/xdctools_3_23_03_53/etc" -Dxdc.bld.targets="" -DTOOLS= -f xdc/services/intern/cmd/build.xs -m package/package.xdc.dep -i package/package.xdc.inc package.xdc
.interfaces files complete: Tue Apr 21 16:23:27 CST 2015.
======== .libraries [/usr/local/ezsdk/component-sources/codec_engine_3_22_01_06/examples/ti/sdo/ce/examples/servers/videnc_copy] ========
.libraries files complete: Tue Apr 21 16:23:27 CST 2015.
======== .dlls [/usr/local/ezsdk/component-sources/codec_engine_3_22_01_06/examples/ti/sdo/ce/examples/servers/videnc_copy] ========
#
# configuring bin/ti_platforms_sim6xxx/videnc_copy_TMS320CDM420.x64P from package/cfg/bin/ti_platforms_sim6xxx/videnc_copy_TMS320CDM420_p64P.cfg ...
/usr/local/ezsdk/component-sources/xdctools_3_23_03_53/xs -Dxdc.path="/usr/local/ezsdk/component-sources/codec_engine_3_22_01_06/examples/ti/sdo/ce/examples/servers/videnc_copy/../../../../../..;/usr/local/ezsdk/component-sources/xdctools_3_23_03_53/packages;/usr/local/ezsdk/component-sources/xdais_7_22_00_03/packages;/usr/local/ezsdk/component-sources/bios_6_33_05_46/packages;/usr/local/ezsdk/component-sources/linuxutils_3_22_00_02/packages;/usr/local/ezsdk/component-sources/syslink_2_20_02_20/packages;/usr/local/ezsdk/component-sources/osal_1_22_01_09/packages;/usr/local/ezsdk/component-sources/framework_components_3_22_01_07/packages;/usr/local/ezsdk/component-sources/edma3lld_02_11_05_02/packages;/usr/local/ezsdk/component-sources/ipc_1_24_03_32/packages;/usr/local/ezsdk/component-sources/codec_engine_3_22_01_06/packages;/usr/local/ezsdk/component-sources/xdctools_3_23_03_53/packages;../../../../../.." -Dxdc.root=/usr/local/ezsdk/component-sources/xdctools_3_23_03_53 -Dxdc.hostOS=Linux -Dconfig.importPath=".;/usr/local/ezsdk/component-sources/codec_engine_3_22_01_06/examples/ti/sdo/ce/examples/servers/videnc_copy/../../../../../..;/usr/local/ezsdk/component-sources/xdctools_3_23_03_53/packages;/usr/local/ezsdk/component-sources/xdais_7_22_00_03/packages;/usr/local/ezsdk/component-sources/bios_6_33_05_46/packages;/usr/local/ezsdk/component-sources/linuxutils_3_22_00_02/packages;/usr/local/ezsdk/component-sources/syslink_2_20_02_20/packages;/usr/local/ezsdk/component-sources/osal_1_22_01_09/packages;/usr/local/ezsdk/component-sources/framework_components_3_22_01_07/packages;/usr/local/ezsdk/component-sources/edma3lld_02_11_05_02/packages;/usr/local/ezsdk/component-sources/ipc_1_24_03_32/packages;/usr/local/ezsdk/component-sources/codec_engine_3_22_01_06/packages;/usr/local/ezsdk/component-sources/xdctools_3_23_03_53/packages;../../../../../..;/usr/local/ezsdk/component-sources/xdctools_3_23_03_53;/usr/local/ezsdk/component-sources/xdctools_3_23_03_53/etc" -Dxdc.bld.targets="" -DTOOLS= xdc.cfg bin/ti_platforms_sim6xxx/videnc_copy_TMS320CDM420.x64P package/cfg/bin/ti_platforms_sim6xxx/videnc_copy_TMS320CDM420_p64P.cfg package/cfg/bin/ti_platforms_sim6xxx/videnc_copy_TMS320CDM420_p64P
js: "./heaps.cfg", line 60: TypeError: Cannot read property "len" from undefined
"./all_syslink.cfg", line 42
"./package/cfg/bin/ti_platforms_sim6xxx/videnc_copy_TMS320CDM420_p64P.cfg", line 195
"./package/cfg/bin/ti_platforms_sim6xxx/videnc_copy_TMS320CDM420_p64P.cfg", line 274
"./package/cfg/bin/ti_platforms_sim6xxx/videnc_copy_TMS320CDM420_p64P.cfg", line 182
gmake[1]: *** [package/cfg/bin/ti_platforms_sim6xxx/videnc_copy_TMS320CDM420_p64P.xdl] Error 1
gmake: *** [/usr/local/ezsdk/component-sources/codec_engine_3_22_01_06/examples/ti/sdo/ce/examples/servers/videnc_copy,.dlls] Error 2
make: *** [all] Error 2

Why does these happened?

Please anyone help me ?

Thank you!

  • And here are my corresponding conf files:

    * ======== package.bld ========
    */

    var Build = xdc.useModule('xdc.bld.BuildEnvironment');
    var Pkg = xdc.useModule('xdc.bld.PackageContents');

    var serverBaseName = "videnc_copy";

    /* when constructing a release, release everything */
    //Pkg.attrs.exportExe = true;
    Pkg.otherFiles = [
    "main.c", "setid.c", "videnc_copy.cfg", "all_syslink.cfg", "heaps.cfg",
    "link.cmd", "package.bld", "_config.bld", "makefile",
    "ti_platforms_evm3530.cfg", "ti_platforms_evm6472.cfg",
    "ti_platforms_evmTI814X.cfg", "ti_platforms_evmTI816X.cfg",
    "ti_platforms_evmTI813X.cfg",
    "serverplatforms.xs", "package/info",
    "android_config.bld"
    ];

    // set'theProf' to 'debug' for faster builds (with lower performance)
    var theProf = 'debug';//'whole_program_debug';

    /* bin/ is a generated directory that 'xdc clean' should remove */
    Pkg.generatedFiles.$add("bin/");

    /*
    * When using this package with the CE examples build, xdcpaths.mak can be
    * used to determine which PROGRAMS to build for (e.g. APP_LOCAL or APP_CLIENT).
    *
    * If PROGRAMS is set via the XDCARGS, we respect that, and only build what's
    * requested. Else, we build everything we can.
    */
    /*var programs = undefined;*/
    var programs ="APP_CLIENT DSP_SERVER";
    for (x = 0; x < arguments.length; x++) {
    if (arguments[x].match(/^PROGRAMS=/)) {
    programs = arguments[x].split("=")[1];
    // print("programs: " + programs);
    }
    }

    for (var i = 0; i < Build.targets.length; i++) {

    if ((programs != undefined) && (!programs.match(/DSP_SERVER/))) {
    break;
    }

    var targ = Build.targets[i];

    /* only build for BIOS-based targets */
    if (targ.os == undefined) {

    /* No A8 Server yet */
    if (targ.isa == "v7A") {
    continue;
    }

    // print("building for target " + targ + " ...");

    /* Platforms were added to targ.platforms[] in config.bld */
    for (var j = 0; j < targ.platforms.length; j++) {
    var platform = targ.platforms[j];

    // print(" platform: " + platform);

    var platInst = Build.usePlatform(platform);
    var platMod = platInst.$module;

    if (platform.match(/simTesla/) || platform.match(/sdp4430/)) {
    // print(" skipping unsupported platform");
    continue;
    }

    if (platform.match(/evm6472|evm6474|6608|6616|6670|6678/)) {
    /* homogeneous multicore, IPC-based Server */
    addExe(targ, platform, "videnc_copy");
    }
    else {
    /* heterogeneous multicore, syslink-based Server */
    addExe(targ, platform, "all_syslink");
    }
    }
    }
    }

    /*
    * ======== addExe ========
    */
    function addExe(targ, platform, cfg)
    {
    var lld = false; /* unfortunately, assume lld isn't supported */

    /* if on a C64, cache is enabled, and buffer alignment is 128 */
    var compileOpts = targ.suffix.match("64") ?
    "-DBUFALIGN=128 -DCACHE_ENABLED" : "";

    /* Create the list of source files to build. */
    var srcs = ["main.c"];

    if (platform.match(/6472|6474|6616|6608|6670|6678/)) {
    srcs = ["main.c", "setid.c"];
    if (targ.$package == 'ti.targets') {
    lld = true;
    }
    }

    // name = bin/platform/name.x+suffix
    var serverCoreSuffix = platform.match(/:.*$/);
    if (serverCoreSuffix != null) {
    serverCoreSuffix = serverCoreSuffix[0].replace(/\:/g, "_");
    }
    else {
    serverCoreSuffix = "";
    }

    var platformBaseName = platform.replace(/(\w+)\:.*$/, "$1").replace(/\./g, "_");
    var name = "bin/" +
    platformBaseName + '/' + serverBaseName + serverCoreSuffix;
    print("exe name = '" + name + "'");

    Pkg.addExecutable(name, targ, platform, {
    copts: compileOpts,
    profile: theProf,
    cfgScript: cfg + ".cfg",
    cfgArgs: "{ platform: \"" + platform + "\" }",
    cfgArgs: "{ lld : " + lld + "}",
    lopts: "-l link.cmd"
    }).addObjects(srcs);
    }

    /*

    * ======== package.xdc ========
    * Codec Engine Server containing all the example codecs.
    *
    * This CE Server demonstrates how to configure a server, and integrate all
    * the example codecs into it.
    */
    package ti.sdo.ce.examples.servers.videnc_copy [1, 0, 0] {
    }
    /*

    * ======== _config.bld ========
    * This script is run prior to all build scripts. It initializes the
    * rootDir configuration parameter of all supported targets.
    */

    var Build = xdc.useModule('xdc.bld.BuildEnvironment');
    var Pkg = xdc.useModule('xdc.bld.PackageContents');

    //var c6xOpts = " -pds1110 ";
    var c6xOpts = " -pdr -pden -pds=880 -pds=238 -pds452 -pds195 -mi10 -mo -g ";
    var elfLnkOpts = " --compress_dwarf";

    var ccOpts = {
    "ti.targets.C64P" : c6xOpts,
    "ti.targets.C674" : c6xOpts,

    "ti.targets.elf.C64P" : c6xOpts,
    "ti.targets.elf.C64T" : c6xOpts,
    "ti.targets.elf.C66" : c6xOpts,

    "ti.targets.elf.C674" : c6xOpts,
    "ti.targets.arm.elf.M3" : " -ms -g "
    };

    var lnkOpts = {
    "ti.targets.elf.C64P" : elfLnkOpts,
    "ti.targets.elf.C64T" : elfLnkOpts,
    "ti.targets.elf.C66" : elfLnkOpts,

    "ti.targets.elf.C674" : elfLnkOpts,
    "ti.targets.arm.elf.M3" : elfLnkOpts
    };

    var devices = "TI816X";
    var programs = "APP_CLIENT DSP_SERVER";

    /* initialize local vars with those set in xdcpaths.mak (via XDCARGS) */
    for (arg = 0; arg < arguments.length; arg++) {
    /* split each arg into its '+' separated parts */
    var configParts = arguments[arg].split(";");
    // print("arg " + arg + " has " + configParts.length + " parts");

    /* if "known args come in, filter them... else they're targets */
    if (configParts[0].split("=")[0] == "DEVICE") {
    // print("FOUND DEVICE ARG - " + configParts[0]);
    devices = configParts[0].split("=")[1];
    continue;
    }
    if (configParts[0].split("=")[0] == "GPPOS") {
    // print("FOUND GPPOS ARG - " + configParts[0]);
    gppos = configParts[0].split("=")[1];
    continue;
    }
    if (configParts[0].split("=")[0] == "PROGRAMS") {
    // print("FOUND PROGRAMS ARG - " + configParts[0]);
    programs= configParts[0].split("=")[1];
    continue;
    }


    /*
    * Get the compiler's installation directory from part one.
    * For "ti.targets.elf.C674=/vendors/c6x/7.0.3", we get "/vendors/c6x/7.0.3"
    */
    var targetName = configParts[0].split("=")[0];
    var rootDir = configParts[0].split("=")[1];

    /* only build for the specified compilers */
    if (rootDir == "" || rootDir == undefined) {
    continue;
    }

    print("Building '" + targetName + "' using '" + rootDir + "' ...");

    var target = xdc.useModule(targetName);
    target.rootDir = rootDir;

    if (ccOpts[targetName] != undefined) {
    target.ccOpts.suffix += ccOpts[targetName];
    }
    if (lnkOpts[targetName] != undefined) {
    target.lnkOpts.suffix += lnkOpts[targetName];
    }

    /* for all the other parts, assign target.<left> = <right> */
    for (var i = 1; i < configParts.length; i++) {
    var modCfgParam = configParts[i].split("=")[0];
    var modCfgValue = configParts[i].split("=")[1];
    var modCfgIndex = modCfgParam.split(".");
    var element = target;

    print("Configuring target." + modCfgParam + " = " + modCfgValue);

    for (j = 0; j < (modCfgIndex.length - 1); j++) {
    element = element[modCfgIndex[j]];
    }
    element[modCfgIndex[j]] = modCfgValue;
    }

    /* and finally add this target to the Build.targets array */
    Build.targets.$add(target);
    }

    /* only build debug and release profiles */
    for (var t = 0; t < Build.targets.length; t++) {
    for (prof in Build.targets[t].profiles) {
    if ((prof != 'release') && (prof != 'debug')) {
    delete Build.targets[t].profiles[prof];
    }
    }
    }

    /* Loading this 'capsule' initializes the targets we _will_ build for */
    //utils.loadCapsule('ti/sdo/ce/examples/buildutils/Platforms.xs');

    utils.loadCapsule('./serverplatforms.xs');

    /*
    * And finally, add the requested platforms to the targets, based
    * on devices, gppos, and programs.
    */
    //maybe capsule...
    //utils.loadCapsule('./devicemaps.xs');

    var devMap = new Array();

    devMap['TI816X:C674'] = ['ti.platforms.evmTI816X:DSP'];
    devMap['TI816X:M3'] = ['ti.platforms.evmTI816X:VIDEO-M3',
    'ti.platforms.evmTI816X:VPSS-M3'];

    /* This maps platforms to all _potential_ targets that can run a server. */
    var allTargs = new Array();

    allTargs['TI816X:C674'] = ['ti.targets.elf.C674'];
    allTargs['TI816X:M3'] = ['ti.targets.arm.elf.M3'];

    /*
    * For heterogeneous platforms with different possible slave ISA's, we add
    * ISA-specific 'DEVICE' settings to match the ISA-specific settings in the
    * arrays above.
    */
    var deviceArray = new Array();
    if (devices != "") {
    deviceArray = devices.match(/^\s*(.*\w+)\s*$/)[1].split(/\s+/);

    for (var x in deviceArray) {
    if (deviceArray[x] == 'TI814X') {
    /* override existing element, and add others to the end */
    deviceArray[x] = 'TI814X:C674';
    deviceArray.push('TI814X:M3');
    }
    if (deviceArray[x] == 'TI813X') {
    /* override existing element, and add others to the end */
    deviceArray.push('TI813X:M3');
    }
    if (deviceArray[x] == 'TI816X') {
    /* override existing element, and add others to the end */
    deviceArray[x] = 'TI816X:C674';
    deviceArray.push('TI816X:M3');
    }
    }
    }

    /*
    * Match all words and trim off leading and trailing white space,
    * then split on white space (any amount) between words.
    */
    var foundPlatMatch = false;
    if (devices != "") {
    for (var i in deviceArray) {
    var platArr = devMap[deviceArray[i]];
    if (platArr == undefined) {
    print("Skipping unsupported DEVICE (" + deviceArray[i] + ")");
    }
    else {
    for (var j in allTargs[deviceArray[i]]) {
    for (var k = 0; k < Build.targets.length; k++) {
    // print("Comparing " + Build.targets[k].$name + " and " +
    // allTargs[deviceArray[i]][j]);
    if (Build.targets[k].$name ==
    allTargs[deviceArray[i]][j]) {
    // print("Adding platforms to " + Build.targets[k].$name +
    // " target ...");
    for (var l = 0; l < platArr.length; l++) {
    // print("Adding platform " + platArr[l] + " to " +
    // Build.targets[k].$name);
    Build.targets[k].platforms.$add(platArr[l]);
    foundPlatMatch = true;
    }
    break;
    }
    }
    }
    }
    }
    }

    /* if we didn't find any targets we support, or the targets we found
    * don't have any supported platforms, indicate that we don't want to
    * build anything.
    */
    if (Build.targets.length == 0 || !foundPlatMatch) {
    print("Skipping server build for this platform");
    Build.targets = [];
    Build.useTargets = null;
    }

    /*
    * ======== Pkg.attrs.profile ========
    */
    Pkg.attrs.profile = "release";

     

    # ======== xdcpaths.mak ========
    # definition of XDC paths and commands
    #
    # This makefile constructs the "search path" for the XDCtools where it finds
    # numerous components and packages needed to build examples and
    # programs. See examples/build_instructions.html for general details about
    # this file.
    #
    # USER NOTE:
    # 1) you can remove some of the devices from the "DEVICE" list and/or remove
    # some of the types of binaries from the "PROGRAMS" list and/or remove
    # some of the OS runtime environments from the "GPPOS" list to reduce
    # the build time (and possibly avoid checking for presence of a component
    # you don't need)

    # (Optional) remove from this list the GPP OS's you're not interested in
    # building.
    #
    # Note, this is only used when DEVICES contains a device that runs a GPP running
    # a High Level OS (HLOS) like Linux, WinCE, etc.
    #
    # In most cases, you'll likely set this to empty (e.g. BIOS-running 6472 users)
    # or one HLOS entry (e.g. Linux GCC using OMAP3 users).
    #
    # Note, this is a space-delimited list.
    #GPPOS := LINUX_GCC ANDROID
    GPPOS := LINUX_GCC

    # (Optional) Remove from the list the types of programs you're not
    # interested in building:
    #
    # APP_CLIENT -- build client apps for algs running remotely, on multicore systems
    # DSP_SERVER -- build servers containing algs, for use by client apps on other processors
    # APP_LOCAL -- build apps with local algs in a single executable
    #
    # Note, this is a space-delimited list.
    #PROGRAMS := APP_CLIENT DSP_SERVER APP_LOCAL
    PROGRAMS := APP_CLIENT DSP_SERVER

    #
    # Note, this is a space-delimited list.
    #
    #DEVICE := OMAP3530 OMAPL138 OMAP4430 C6472 C6474 TI816X TI814X TI813X
    DEVICE := TI816X

    # Set this to your CE installation dir

    CE_INSTALL_DIR :=/usr/local/ezsdk/component-sources/codec_engine_3_22_01_06

    # Pre-pend these vars to what products.mak's .show-products prints
    .show-products::
    @echo "DEVICE = $(DEVICE)"
    @echo "GPPOS = $(GPPOS)"
    @echo "PROGRAMS = $(PROGRAMS)"
    @echo "CE_INSTALL_DIR = $(CE_INSTALL_DIR)"

    include $(CE_INSTALL_DIR)/products.mak

    # The appropriate dependencies will be used to generate the XDC_PATH.
    # Any other components your example requires can be added to thsi variable
    # MY_XDC_PATH := <your component>/packages;
    MY_XDC_PATH :=/usr/local/ezsdk/component-sources/xdctools_3_23_03_53/packages

    # check above settings for correctness
    include $(EXAMPLES_ROOTDIR)/buildutils/xdcpathcheck.mak

    # ======== makefile ========
    # GNUmake-based makefile.
    #

    # include the files that defines XDC package, paths and build rules
    EXAMPLES_ROOTDIR := $(CURDIR)/../../../../../..

    include $(EXAMPLES_ROOTDIR)/xdcpaths.mak

    # add the examples directory itself to the list of paths to packages
    XDC_PATH := $(EXAMPLES_ROOTDIR);$(XDC_PATH)

    # Override the default XDCBUILDCFG in xdcrules.mak
    XDCBUILDCFG = _config.bld

    include $(EXAMPLES_ROOTDIR)/buildutils/xdcrules.mak
    #
    # @(#) ti.sdo.ce.examples.servers.all_codecs; 1, 0, 0,1; 2-24-2012 19:29:47; /db/atree/library/trees/ce/ce-t06/src/ xlibrary

    #
    all:
    $(XDC_INSTALL_DIR)/xdc release XDCPATH="$(XDC_PATH)" \
    XDCOPTIONS=$(XDCOPTIONS) $@ -PD .

     

  • Hello,

    I would recommend you to execute make components command in the EZSDK root folder.
    Also you could check this wiki pages:
    processors.wiki.ti.com/.../Rebuilding_Codec_Engine
    processors.wiki.ti.com/.../Codec_Engine
    http://processors.wiki.ti.com/index.php/Codec_Engine_Server_Integrator_User's_Guide

    BR
    Margarita

  • Hi:
    I've allready executed the make components command in the EZSDK root folder.
    and also read this wiki pages carefully,
    processors.wiki.ti.com/.../Rebuilding_Codec_Engine
    processors.wiki.ti.com/.../Codec_Engine
    but I still couldn't figured out what's wrong on earth...


    Would you have any other suggestions?

    thank you all the same!