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.

unable to build codec engine / servers

Other Parts Discussed in Thread: OMAP-L137

Hi all,

    While trying to build dvsdk_2_00_00_22/codec_engine_2_23_01/examples/ti/sdo/ce/examples/servers/video_copy/evmDM6446

Following error messages are displayed.

XDCPATH="/home/mathivanan/dvsdk_2_00_00_22/codec_engine_2_23_01/examples/ti/sdo/ce/examples/servers/video_copy/evmDM6446/../../../../../../..;/home/mathivanan/dvsdk_2_00_00_22/codec_engine_2_23_01/packages;/home/mathivanan/dvsdk_2_00_00_22/xdais_6_23/packages;/home/mathivanan/dvsdk_2_00_00_22/dsplink-1_61_03-prebuilt/packages;/home/mathivanan/dvsdk_2_00_00_22/linuxutils_2_23_01/packages;/home/mathivanan/dvsdk_2_00_00_22/framework_components_2_23_01/packages;/home/mathivanan/dvsdk_2_00_00_22/biosutils_1_01_00/packages;/home/mathivanan/dvsdk_2_00_00_22/bios_5_33_03/packages" /home/mathivanan/dvsdk_2_00_00_22/xdctools_3_10_05_61/xs xdc.tools.configuro -c /home/mathivanan/dvsdk_2_00_00_22/cg6x_6_0_21_1 -o video_copy \
        -t ti.targets.C64P -p ti.platforms.evmDM6446 -b /home/mathivanan/dvsdk_2_00_00_22/codec_engine_2_23_01/examples/ti/sdo/ce/examples/servers/video_copy/evmDM6446/../../../../../../../config.bld \
        --tcf video_copy.cfg
making package.mak (because of package.bld) ...
config.bld: Running the version from Codec Engine Examples.
config.bld: loading user build configuration file /home/mathivanan/dvsdk_2_00_00_22/codec_engine_2_23_01/examples/user.bld
js: "/home/mathivanan/dvsdk_2_00_00_22/codec_engine_2_23_01/examples/user.bld", line 156: ti.targets.C64P: no element named 'LONGNAME'
    "/home/mathivanan/dvsdk_2_00_00_22/codec_engine_2_23_01/examples/config.bld", line 168
    "./config.bld", line 3
gmake: *** No rule to make target `.configuro'.  Stop.
js: "/home/mathivanan/dvsdk_2_00_00_22/xdctools_3_10_05_61/packages/xdc/tools/Cmdr.xs", line 40: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
make: *** [video_copy/linker.cmd] Error 1

We need to run the video_copy on the board. It is also not happening.

Thanks in advance,

Regards,
Sachin

  • sachin manawadi said:
    js: "/home/mathivanan/dvsdk_2_00_00_22/codec_engine_2_23_01/examples/user.bld", line 156: ti.targets.C64P: no element named 'LONGNAME'
        "/home/mathivanan/dvsdk_2_00_00_22/codec_engine_2_23_01/examples/config.bld", line 168
        "./config.bld", line 3

    Sachin,

    The ti.targets.C64P module does not have a LONGNAME element.  The LONGNAME element is present in GCC-based tooling, such as for GCArmv5T, since the prefix for 'gcc' can vary, but for TI-based compilers there is no need.

    If you need further help on this issue, please attach your user.bld and any other relevant files.

    Regards,

    - Rob

  • Hi Rob,

                    I am attaching user.bld

    /*
    * Copyright (c) 2009, Texas Instruments Incorporated
    * All rights reserved.
    *
    * Redistribution and use in source and binary forms, with or without
    * modification, are permitted provided that the following conditions
    * are met:
    *
    * * Redistributions of source code must retain the above copyright
    * notice, this list of conditions and the following disclaimer.
    *
    * * Redistributions in binary form must reproduce the above copyright
    * notice, this list of conditions and the following disclaimer in the
    * documentation and/or other materials provided with the distribution.
    *
    * * Neither the name of Texas Instruments Incorporated nor the names of
    * its contributors may be used to endorse or promote products derived
    * from this software without specific prior written permission.
    *
    * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "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 THE COPYRIGHT OWNER OR
    * CONTRIBUTORS 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.
    */
    /*
    * ======== user.bld ========
    *
    * User note: YOU MUST MODIFY THIS FILE TO SPECIFY THE COMPILER TOOL PATHS.
    */

    // This table list the targets for which to build libraries and programs, and for
    // each target it lists where the compiler tools are and for what platforms
    // the programs should be built. For all build variants where you specify
    // that "doBuild" is "true", you must specify the compiler tools, and it is
    // desirable to comment out unwanted platforms.
    // Example: if you are only interested in building Arm-side examples for
    // evmDM6446 running Montavista Arm Linux, set doBuild: false everywhere
    // except for the first Arm "doBuild"; then, specify your Montavista Arm
    // tools directory, and comment out all platforms for that build except
    // for '{ platform: "evmDM6446" }'.

    var buildTable = {
    "Arm": [{doBuild: true, // standard build for Linux
    target: "gnu.targets.arm.GCArmv5T",

    // Arm tools. NOTE: make sure the directory you specify has a "bin" subdirectory
    //cgtoolsRootDir: "/db/toolsrc/library/tools/vendors/cs/arm/arm-2007q3",
    cgtoolsRootDir: "/opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/armv5tl-montavista-linux-gnueabi",

    platforms: [ // NOTE: comment out platforms (boards) below for which you don't want to build
    //{ description: "DaVinci evmDM357 board, ARM only", platform: "evmDM357", dualCpu: false, outDir: "bin/evmDM357" },
    { description: "DaVinci evmDM6446 board, ARM-side", platform: "evmDM6446", dualCpu: true, outDir: "bin/evmDM6446" },
    // { description: "DaVinci evmDM6467 board, ARM-side", platform: "evmDM6467", dualCpu: true, outDir: "bin/evmDM6467" },
    // { description: "DaVinci evmDM355 board, ARM only", platform: "evmDM355" , dualCpu: false, outDir: "bin/evmDM355" },
    // { description: "DaVinci evmDM365 board, ARM only", platform: "evmDM365" , dualCpu: false, outDir: "bin/evmDM365" },
    // { description: "3430 SDP board, ARM-side only", platform: "sdp3430", dualCpu: true, outDir: "bin/sdp3430" },
    // { description: "3530 EVM board, ARM-side only", platform: "evm3530", dualCpu: true, outDir: "bin/evm3530" },
    // { description: "2530 EVM board, ARM-side only", platform: "evm2530", dualCpu: true, outDir: "bin/evm2530" },
    // { description: "OMAP-L137 EVM, ARM-side only", platform: "evmOMAPL137", dualCpu: true, outDir: "bin/evmOMAPL137" },
    ],
    },

    { doBuild: true, // build for uC Linux
    target: "gnu.targets.UCArm9",

    // UCLibc tools. NOTE: make sure the directory you specify has a "bin" subdirectory
    cgtoolsRootDir: "/db/toolsrc/library/tools/vendors/opensource/buildroot/10122007/build_arm/staging_dir/usr",

    platforms: [
    // { description: "DaVinci evmDM357 board, ARM only", platform: "evmDM357", dualCpu: false, outDir: "bin/evmDM357" },
    { description: "DaVinci evmDM6446 board, ARM-side", platform: "evmDM6446", dualCpu: true, outDir: "bin/evmDM6446" },
    // { description: "DaVinci evmDM6467 board, ARM-side", platform: "evmDM6467", dualCpu: true, outDir: "bin/evmDM6467" },
    // { description: "DaVinci evmDM355 board, ARM only", platform: "evmDM355" , dualCpu: false, outDir: "bin/evmDM355" },
    // { description: "DaVinci evmDM365 board, ARM only", platform: "evmDM365" , dualCpu: false, outDir: "bin/evmDM365" },
    // { description: "3430 SDP board, ARM-side only", platform: "sdp3430", dualCpu: true, outDir: "bin/sdp3430" },
    // { description: "3530 EVM board, ARM-side only", platform: "evm3530", dualCpu: true, outDir: "bin/evm3530" },
    // { description: "2530 EVM board, ARM-side only", platform: "evm2530", dualCpu: true, outDir: "bin/evm2530" },
    // { description: "OMAP-L137 EVM, ARM-side only", platform: "evmOMAPL137", dualCpu: true, outDir: "bin/evmOMAPL137" },
    ],
    }],

    "DSP": [{doBuild: true, // DSP builds (DSP servers for dual-CPU platforms or full apps for DSP-only platforms)
    target: "ti.targets.C64P",

    // specify the "root directory" for the compiler tools. NOTE: make sure the directory you specify has a "bin" subdirectory
    //cgtoolsRootDir: "/db/toolsrc/library/tools/vendors/ti/c6x/6.0.16/Linux",
    cgtoolsRootDir: "/home/mathivanan/dvsdk_2_00_00_22/cg6x_6_0_21_1",

    platforms: [ // NOTE: comment out platforms (boards) below for which you don't want to build
    { description: "DaVinci evmDM6446 board, DSP-side Server", platform: "evmDM6446", outDir: "bin/evmDM6446" },
    // { description: "DaVinci evmDM6467 board, DSP-side Server", platform: "evmDM6467", outDir: "bin/evmDM6467" },
    // { description: "DaVinci evmDM6437 board, DSP only", platform: "evmDM6437", outDir: "bin/evmDM6437" },
    // { description: "DaVinci evmDM648 board, DSP only", platform: "evmDM648", outDir: "bin/evmMD648" },
    // { description: "3430 SDP board, DSP-side server", platform: "sdp3430", outDir: "bin/sdp3430" },
    // { description: "3530 EVM board, DSP-side server", platform: "evm3530", outDir: "bin/evm3530" },
    // { description: "2530 EVM board, DSP-side server", platform: "evm2530", outDir: "bin/evm2530" },
    ],
    },

    {doBuild: true, // DSP builds (DSP servers for dual-CPU platforms or full apps for DSP-only platforms)
    target: "ti.targets.C674",

    // specify the "root directory" for the compiler tools. NOTE: make sure the directory you specify has a "bin" subdirectory
    // cgtoolsRootDir: "/db/toolsrc/library/tools/vendors/ti/c6x/6.1.5/Linux",
    cgtoolsRootDir: "/home/mathivanan/dvsdk_2_00_00_22/cg6x_6_0_21_1",

    platforms: [ // NOTE: comment out platforms (boards) below for which you don't want to build
    { description: "OMAP-L137 EVM, DSP-side Server", platform: "evmOMAPL137", outDir: "bin/evmOMAPL137" },
    ],
    }],

    "PC": [{doBuild: true, // build for PC Linux
    target: "gnu.targets.Linux86",
    cgtoolsRootDir: "/db/toolsrc/library/tools/vendors/opensource/gcc/4.1.0/Linux/gcc-4.1.0-glibc-2.3.6/i686-unknown-linux-gnu",
    platforms: [ { platform: null, outDir: "bin/PC" } ],
    }],
    };


    // -----------------------------------------------------------------------------

    var targets = [];
    var userbldBuildPlatforms = {};

    for each (var cpu in buildTable) {
    for (var t = 0; t < cpu.length; t++) {
    if (cpu[t].doBuild) {
    var targ = xdc.useModule(cpu[t].target);
    targets.push(targ);
    targ.rootDir = cpu[t].cgtoolsRootDir;
    userbldBuildPlatforms[targ.name] = cpu[t].platforms;
    }
    }
    }

    Build.targets = targets;


    // Expert users: you can specify any compiler toolchain-specific options
    // here. For example, when using the CodeSourcery toolchain, you need to
    // remove C++ references and add the pthread library.

    // specify custom toolchain options
    for (var i = 0; i < Build.targets.length; i++) {
    var t = targets[i];

    if (t.name == "C64P")
    {
    t.LONGNAME = "bin/cl6x";
    }
    /*
    if (t.name == "GCArmv5T") {
    t.LONGNAME = "bin/arm-none-linux-gnueabi-gcc";

    }
    */
    }

  • sachin manawadi said:

    var t = targets[i];

    if (t.name == "C64P")
    {
    t.LONGNAME = "bin/cl6x";
    }

    As Rob said, this setting doesn't make any sense.  There is no .LONGNAME field in the C64P target.

    Chris