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.

codec engine directory - examples build error dvevm6446 - SOLVED!!! It was trailing white space problem

Other Parts Discussed in Thread: OMAP-L137, OMAP3530, TVP5146

Hi TI employees,

                              I am following build_instructions.html from codec engine to build examples. I am able to successfully run prebuilt examples as per instructions. On the 2nd part "Building the examples: step-by-step instructions"

I am facing trouble. I am posting my 'xdcpaths.mak' and 'user.bld' for your reference.I also get error when I execute 'gmake clean' as command not found. also there is nothing like gmake in that directory (ti/sdo/ce/examples/codecs).

------------------------------------------------------------------------------------------------------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",

                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: false, // 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: false, // 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/user/dvsdk_2_00_00_22/cg6x_6_0_21",
                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: false, // 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/user/dvsdk_2_00_00_22/cg6x_6_0_21",

                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: false,  // 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 == "GCArmv5T") {
    t.LONGNAME = "bin/arm-none-linux-gnueabi-gcc";
    }
}

---------------------------------------------------------- xdcpaths.mak-------------------------------------------------------------------------------------------------------------------------------------

#
#  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.
#

#
#  ======== xdcpaths.mak ========
#  definition of XDC paths and commands
#
#  This makefile constructs the "search path" for the XDC tools where it finds
#  numerous components and packages needed to build Codec Engine examples and
#  programs.
#
#  USER NOTE:
#  1) you must specify various <component>_INSTALL_DIRs directores below to
#     reflect your installation, where <component> is CE for Codec Engine,
#     BIOS for DSP/BIOS, etc.
#  2) you must specify compiler path and name in CGTOOLS_* variables below
#  3) you can remove some of the devices from the "DEVICES" list and/or remove
#     some of the types of binaries from the "PROGRAMS" 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 devices you're not interested in building
# DEVICES  := DM6446 DM6467 DM6437 DM355 DM357 DM365 OMAP2530 OMAP3530 OMAPL137
DEVICES  := DM6446

# (Optional) Remove from the list the types of programs you're not
# interested in building (Note, this only assists in establishing the
# dependencies, via the XDCPATH, below.  user.bld will dictate what
# _actually_ gets built):
#
# APP_CLIENT -- ARM client for codecs running on the DSP, on dual-CPU systems
# DSP_SERVER -- DSP server with the codecs, running on the DSP, on dual-CPUs
# APP_LOCAL  -- Client+codecs in a single program, whether ARM only or DSP only
PROGRAMS :=  APP_LOCAL
#APP_CLIENT DSP_SERVER

# (Mandatory) Specify where various components are installed.
# What you need depends on what device(s) you're building for, what type(s) of
# programs you are building for, and whether your Codec Engine distribution
# includes a "cetools" directory. The legend:
# CE      - Codec Engine (needed for ARM and for DSP)
# XDC     - XDC tools (ARM and DSP)
# BIOS    - DSP/BIOS (DSP only)
# XDAIS   - XDAIS header files (ARM and DSP)
# FC      - Framework Components, various resource managers (ARM and DSP)
# CMEM    - Contiguous memory manager (ARM only)
# DSPLINK - Arm<->DSP communication software (ARM + DSP)
#
# you can omit directory specifications for the components you think you don't
# need (will be warned if you do, based on your DEVICES + PROGRAMS selection
# above).

CE_INSTALL_DIR           :=/home/user/dvsdk_2_00_00_22/codec_engine_2_23_01
#_your_CE_installation_directory_/codec_engine_2_23_01
XDC_INSTALL_DIR       :=/home/user/dvsdk_2_00_00_22/xdctools_3_10_03
#_your_XDCTOOLS_installation_directory/xdctools_3_10_03
BIOS_INSTALL_DIR      :=/home/user/dvsdk_2_00_00_22/bios_5_33_03
# _your_SABIOS_installation_directory/bios_5_33_03

# no need to specify the installation directories below if your CE installation
# has cetools/ directory on top
USE_CETOOLS_IF_EXISTS := 1
XDAIS_INSTALL_DIR     :=/home/user/dvsdk_2_00_00_22/xdais_6_23
# _your_xDAIS_installation_directory/xdais_6_23
DSPLINK_INSTALL_DIR   :=/home/user/dvsdk_2_00_00_22/dsplink-1_61_03-prebuilt
# _your_DSPLink_installation_directory/dsplink-1_61_01-prebuilt
CMEM_INSTALL_DIR      :=/home/user/dvsdk_2_00_00_22/linuxutils_2_23_01
#_your_CMEM_installation_directory/linuxutils_2_23_01
FC_INSTALL_DIR        :=/home/user/dvsdk_2_00_00_22/framework_components_2_23_01
#_your_FC_installation_directory/framework_components_2_23_01
BIOSUTILS_INSTALL_DIR :=/home/user/dvsdk_2_00_00_22/biosutils_1_01_00
#_your_BIOSUTILS_installation_directory/biosutils
EDMA3_LLD_INSTALL_DIR :=/home/user/dvsdk_2_00_00_22/edma3_lld_1_05_00
# _your_EDMA3_LLD_installation_directory/edma3_lld_1_06_00_01
LPM_INSTALL_DIR       :=/home/user/dvsdk_2_00_00_22/local_power_manager_1_23_01
# _your_LPM_installation_directory/local_power_manager_1_23_01


# (Mandatory) specify correct compiler paths and names for the architectures
# you'll be building for:

# compiler path and name for Montavista Arm 9 toolchain. NOTE: make sure the
# directory you specify has a "bin" subdirectory
CGTOOLS_V5T =/opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le
#/db/toolsrc/library/tools/vendors/cs/arm/arm-2007q3
CC_V5T =/opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc
#bin/arm-none-linux-gnueabi-gcc
CGTARGET = gnu.targets.arm.GCArmv5T

# compiler path and name for TI C64x toolchain. NOTE: make sure the
# directory you specify has a "bin" subdirectory
CGTOOLS_C64P =/home/user/dvsdk_2_00_00_22/cg6x_6_0_21
#/db/toolsrc/library/tools/vendors/ti/c6x/6.0.16/Linux
CC_C64P      =/home/user/dvsdk_2_00_00_22/cg6x_6_0_21/bin/cl6x
#bin/cl6x

# compiler path and name for TI C674 toolchain. NOTE: make sure the
# directory you specify has a "bin" subdirectory
CGTOOLS_C674 = /db/toolsrc/library/tools/vendors/ti/c6x/6.1.5/Linux
CC_C674      = bin/cl6x

# -----------------------------------------------------------------------------

# Utility variables - useful for over-riding these repos from the cmd line
CE_REPO ?= $(CE_INSTALL_DIR)/packages
CETOOLS_REPO ?= $(CE_INSTALL_DIR)/cetools/packages

# figure out what categories of devices we are to build for
ifneq (,$(findstring DM6446,$(DEVICES)))
    DEVICES_DUALCPU := 1
endif
ifneq (,$(findstring DM6467,$(DEVICES)))
    DEVICES_DUALCPU := 1
endif
ifneq (,$(findstring OMAP2530,$(DEVICES)))
    DEVICES_DUALCPU := 1
endif
ifneq (,$(findstring OMAP3530,$(DEVICES)))
    DEVICES_DUALCPU := 1
endif
ifneq (,$(findstring SDP3430,$(DEVICES)))
    DEVICES_DUALCPU := 1
endif
ifneq (,$(findstring OMAPL137,$(DEVICES)))
    DEVICES_DUALCPU := 1
endif

# Determine which components are necessary based on DEVICES and PROGRAMS

# All configurations require CE, XDC, XDAIS and FC
REQUIRE_CE    := 1
REQUIRE_XDC   := 1
REQUIRE_XDAIS := 1
REQUIRE_FC    := 1

ifneq (,$(findstring DM6446,$(DEVICES)))
    ifneq (, $(findstring APP_CLIENT, $(PROGRAMS) ))
        REQUIRE_LINK := 1
        REQUIRE_CMEM := 1
    endif
    ifneq (, $(findstring DSP_SERVER, $(PROGRAMS) ))
        REQUIRE_LINK := 1
        REQUIRE_BIOS := 1
    endif
endif

ifneq (,$(findstring DM6467,$(DEVICES)))
    ifneq (, $(findstring APP_CLIENT, $(PROGRAMS) ))
        REQUIRE_LINK := 1
        REQUIRE_CMEM := 1
    endif
    ifneq (, $(findstring DSP_SERVER, $(PROGRAMS) ))
        REQUIRE_LINK := 1
        REQUIRE_BIOS := 1
    endif
endif

ifneq (,$(findstring DM355,$(DEVICES)))
    ifneq (, $(findstring APP_LOCAL, $(PROGRAMS) ))
        REQUIRE_CMEM := 1
    endif
endif

ifneq (,$(findstring DM357,$(DEVICES)))
    ifneq (, $(findstring APP_LOCAL, $(PROGRAMS) ))
        REQUIRE_CMEM := 1
    endif
endif

ifneq (,$(findstring DM365,$(DEVICES)))
    ifneq (, $(findstring APP_LOCAL, $(PROGRAMS) ))
        REQUIRE_CMEM := 1
    endif
endif

ifneq (,$(findstring DM6437,$(DEVICES)))
    ifneq (, $(findstring APP_LOCAL, $(PROGRAMS) ))
        REQUIRE_BIOS := 1
    endif
endif

ifneq (,$(findstring DM648,$(DEVICES)))
    ifneq (, $(findstring APP_LOCAL, $(PROGRAMS) ))
        REQUIRE_BIOS := 1
    endif
endif

ifneq (,$(findstring OMAP2530,$(DEVICES)))
    ifneq (, $(findstring APP_CLIENT, $(PROGRAMS) ))
        REQUIRE_LINK := 1
        REQUIRE_CMEM := 1
    endif
    ifneq (, $(findstring DSP_SERVER, $(PROGRAMS) ))
        REQUIRE_LINK := 1
        REQUIRE_BIOS := 1
    endif
endif

ifneq (,$(findstring OMAP3530,$(DEVICES)))
    ifneq (, $(findstring APP_CLIENT, $(PROGRAMS) ))
        REQUIRE_LINK := 1
        REQUIRE_CMEM := 1
    endif
    ifneq (, $(findstring DSP_SERVER, $(PROGRAMS) ))
        REQUIRE_LINK := 1
        REQUIRE_BIOS := 1
    endif
endif

ifneq (,$(findstring OMAPL137,$(DEVICES)))
    ifneq (, $(findstring APP_CLIENT, $(PROGRAMS) ))
        REQUIRE_LINK := 1
        REQUIRE_CMEM := 1
    endif
    ifneq (, $(findstring DSP_SERVER, $(PROGRAMS) ))
        REQUIRE_LINK := 1
        REQUIRE_BIOS := 1
    endif
endif


# Build the XDC path from the necessary components, verifying along the way
# that the required compoments are present
XDC_PATH :=

ERRMSG = which is invalid (could not find file "$(TEST_FILE)"). Set this in <codec engine examples>/xdcpaths.mak! See the build documentation to correct this error.

# CE_INSTALL_DIR is the location of your Codec Engine.
ifeq ($(REQUIRE_CE), 1)
    TEST_FILE := $(CE_REPO)/ti/sdo/ce/package.xdc
    ifeq ($(wildcard $(TEST_FILE)),)
        $(error CE_INSTALL_DIR is set to "$(CE_INSTALL_DIR)", $(ERRMSG))
    endif
    XDC_PATH := $(CE_REPO)
endif

# Add cetools to XDCPATH if 1) $(USE_CETOOLS_IF_EXISTS) is set, and
# 2) the CE distribution has "cetools/"
USING_CETOOLS := 0
ifeq ($(USE_CETOOLS_IF_EXISTS), 1)
    ifneq ($(wildcard $(CETOOLS_REPO)),)
        USING_CETOOLS := 1
        XDC_PATH := $(CETOOLS_REPO);$(XDC_PATH)
    endif
endif
ifeq ($(USING_CETOOLS),0)
    # XDAIS_INSTALL_DIR is the location of your XDAIS distribution
    ifeq ($(REQUIRE_XDAIS), 1)
        TEST_FILE := $(XDAIS_INSTALL_DIR)/packages/ti/xdais/package.xdc
        ifeq ($(wildcard $(TEST_FILE)),)
            $(error XDAIS_INSTALL_DIR is set to "$(XDAIS_INSTALL_DIR)", $(ERRMSG))
        endif
        XDC_PATH := $(XDC_PATH);$(XDAIS_INSTALL_DIR)/packages
    endif

    # DSPLINK_INSTALL_DIR is the location of your DSPLINK distribution
    ifeq ($(REQUIRE_LINK), 1)
        TEST_FILE := $(DSPLINK_INSTALL_DIR)/packages/dsplink/gpp/package.xdc
        ifeq ($(wildcard $(TEST_FILE)),)
            $(error DSPLINK_INSTALL_DIR is set to "$(DSPLINK_INSTALL_DIR)", $(ERRMSG))
        endif
        XDC_PATH := $(XDC_PATH);$(DSPLINK_INSTALL_DIR)/packages
    endif

    # CMEM_INSTALL_DIR is the location of your CMEM distribution
    ifeq ($(REQUIRE_CMEM), 1)
        TEST_FILE := $(CMEM_INSTALL_DIR)/packages/ti/sdo/linuxutils/cmem/package.xdc
        ifeq ($(wildcard $(TEST_FILE)),)
            $(error CMEM_INSTALL_DIR is set to "$(CMEM_INSTALL_DIR)", $(ERRMSG))
        endif
        XDC_PATH := $(XDC_PATH);$(CMEM_INSTALL_DIR)/packages
    endif

    # FC_INSTALL_DIR is the location of your Frameworks Components distribution
    ifeq ($(REQUIRE_FC), 1)
        TEST_FILE := $(FC_INSTALL_DIR)/packages/ti/sdo/fc/dskt2/package.xdc
        ifeq ($(wildcard $(TEST_FILE)),)
            $(error FC_INSTALL_DIR is set to "$(FC_INSTALL_DIR)", $(ERRMSG))
        endif
        XDC_PATH := $(XDC_PATH);$(FC_INSTALL_DIR)/packages
    endif

    # BIOSUTILS_INSTALL_DIR is the location of your BIOSUTILS distribution
    ifeq ($(REQUIRE_BIOS), 1)
        TEST_FILE := $(BIOSUTILS_INSTALL_DIR)/packages/ti/bios/utils/package.xdc
        ifeq ($(wildcard $(TEST_FILE)),)
            $(error BIOSUTILS_INSTALL_DIR is set to "$(BIOSUTILS_INSTALL_DIR)", $(ERRMSG))
        endif
        XDC_PATH := $(XDC_PATH);$(BIOSUTILS_INSTALL_DIR)/packages
    endif

endif

# BIOS_INSTALL_DIR is the location of your BIOS distribution
ifeq ($(REQUIRE_BIOS), 1)
    TEST_FILE := $(BIOS_INSTALL_DIR)/packages/ti/bios/package.xdc
    ifeq ($(wildcard $(TEST_FILE)),)
        $(error BIOS_INSTALL_DIR is set to "$(BIOS_INSTALL_DIR)", $(ERRMSG))
    endif
    XDC_PATH := $(XDC_PATH);$(BIOS_INSTALL_DIR)/packages
endif

# XDC_INSTALL_DIR is the location of your XDCTOOLS installation.
ifeq ($(REQUIRE_XDC), 1)
    TEST_FILE := $(XDC_INSTALL_DIR)/packages/xdc/package.xdc
    ifeq ($(wildcard $(TEST_FILE)),)
        $(error XDC_INSTALL_DIR is set to "$(XDC_INSTALL_DIR)", $(ERRMSG))
    endif
endif

# XDC_PATH is complete. Any other components you could add as
# XDC_PATH := <your component>/packages;$(XDC_PATH)

 

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

I don't have CETOOLS as such but do have most components installed. I had to download LPM (local power manager) separately. Now , I have set the flag in xdcpaths.mak  as USE_CETOOLS_IF_EXISTS := 1 but I read somewhere if no CETOOLS USE_CETOOLS_IF_EXISTS := 0 is applicable. Build errors after using 'make' instead of 'gmake' [update: On gmake issue I got rid of that error by doing

sudo ln -s /usr/bin/make /usr/bin/gmake

but that still doesn't solve my main problem :(

make clean
make -C viddec1_copy clean
make[1]: Entering directory `/home/user/dvsdk_2_00_00_22/codec_engine_2_23_01/examples/ti/sdo/ce/examples/codecs/viddec1_copy'
/home/user/dvsdk_2_00_00_22/xdctools_3_10_03 /xdc XDCPATH="/home/user/dvsdk_2_00_00_22/codec_engine_2_23_01/examples/ti/sdo/ce/examples/codecs/viddec1_copy/../../../../../..;/home/user/dvsdk_2_00_00_22/codec_engine_2_23_01 /cetools/packages;/home/user/dvsdk_2_00_00_22/codec_engine_2_23_01 /packages;/home/user/dvsdk_2_00_00_22/bios_5_33_03/packages" \
    XDCOPTIONS=v clean -PD .
/bin/sh: /home/user/dvsdk_2_00_00_22/xdctools_3_10_03: Permission denied
make[1]: *** [clean] Error 126
make[1]: Leaving directory `/home/user/dvsdk_2_00_00_22/codec_engine_2_23_01/examples/ti/sdo/ce/examples/codecs/viddec1_copy'
make: *** [clean] Error 2
user@ubuntu:~/dvsdk_2_00_00_22/codec_engine_2_23_01/examples/ti/sdo/ce/examples/codecs$

 

Any help is appreciated!

  • I presently plan to use only 'ARM side'. Hence this modification! Also removing white spaces didn't help!

    e.g.

    LPM_INSTALL_DIR       :=/home/user/dvsdk_2_00_00_22/local_power_manager_1_23_01 was changed to
    LPM_INSTALL_DIR:=/home/user/dvsdk_2_00_00_22/local_power_manager_1_23_01

     

    Also newer bld and mak files use 'GCArmv5T' instead of older 'MVArm9'. I channged 'GCArmv5T' back to 'MVArm9' and still wouldn't help me! Same error!!! I am wondering why 'permission denied' I tried with sudo too.

  • My bad - I am a moron......Problem Solved!!!..........Despite my best first attempt..............there were still some white spaces at the end of paths of all tools in *.mak file..........I went to the end of each line and pressed 'delete' key. If the following line came up on my current line on 'one' press I knew I was good (no white spaces)..If I had to press 'delete' key more than once to do this I knew there was a trailing white space...I am so glad I solved this ..........though after 24 hours of other possible answers trial and error!!!!

  • Now I am having a different error

    when I do gmake from 'DSP server' directory I get error

    configuring video_copy.x64P from package/cfg/video_copy_x64P.cfg ...
    js: "/home/user/dvsdk_2_00_00_22/xdctools_3_10_03/include/utils.tci", line 748: xdc.services.global.XDCException: xdc.PACKAGE_NOT_FOUND: can't locate the package 'ti.bios' along the path: '/home/user/dvsdk_2_00_00_22/codec_engine_2_23_01/examples;/home/user/dvsdk_2_00_00_22/local_power_manager_1_23_01/packages;/home/user/dvsdk_2_00_00_22/codec_engine_2_23_01/packages;/home/user/dvsdk_2_00_00_22/xdais_6_23/packages;/home/user/dvsdk_2_00_00_22/framework_components_2_23_01/packages;/home/user/dvsdk_2_00_00_22/xdctools_3_10_03/packages;/home/user/dvsdk_2_00_00_22/xdctools_3_10_03/packages;..;'. Ensure that the package path is set correctly.
        "./package/video_copy.sch", line 10
        "./package/cfg/video_copy_x64P.cfg", line 708
    gmake: *** [package/cfg/video_copy_x64P.c] Error 1
    js: "/home/user/dvsdk_2_00_00_22/xdctools_3_10_03/packages/xdc/tools/Cmdr.xs", line 40: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
    gmake[2]: *** [video_copy/linker.cmd] Error 1
    gmake[2]: Leaving directory `/home/user/dvsdk_2_00_00_22/codec_engine_2_23_01/examples/ti/sdo/ce/examples/servers/video_copy/evmDM6446'
    gmake[1]: *** [all] Error 2
    gmake[1]: Leaving directory `/home/user/dvsdk_2_00_00_22/codec_engine_2_23_01/examples/ti/sdo/ce/examples/servers/video_copy'
    gmake: *** [all] Error 2

     

    I added following (as suggested by Chris from TI in some other post - video processing algorithms) to xdcpaths.mak  and still get above error. I don't know if this is white space problem too!

    # XDC_PATH is complete. Any other components you could add as
    # XDC_PATH := <your component>/packages;$(XDC_PATH)
    XDC_PATH:=/home/user/dvsdk_2_00_00_22/local_power_manager_1_23_01/packages;$(XDC_PATH)

  • Seems like is complaining about not being able to find 'ti.bios' package'; I would expect this package to be under bios_5_33_03 directory.  Can you double check the path defined for BIOS_INSTALL_DIR in your xdcpaths.mk points to this directory

  • Ok Problem solved on server directory. [:Y][:D] Although still have problems in 'apps' directory as

    Line 28: XDC runtime error: can't find the library 'lib/cmemd.a470MV' specified by package ti.sdo.linuxutils.cmem.

    [*-)]

    In xdcpaths.mak  changed

    # APP_CLIENT -- ARM client for codecs running on the DSP, on dual-CPU systems
    # DSP_SERVER -- DSP server with the codecs, running on the DSP, on dual-CPUs
    # APP_LOCAL  -- Client+codecs in a single program, whether ARM only or DSP only
    PROGRAMS := APP_CLIENT DSP_SERVER APP_LOCAL

    #PROGRAMS:=APP_LOCAL

    instead of

    # APP_CLIENT -- ARM client for codecs running on the DSP, on dual-CPU systems
    # DSP_SERVER -- DSP server with the codecs, running on the DSP, on dual-CPUs
    # APP_LOCAL  -- Client+codecs in a single program, whether ARM only or DSP only
    #PROGRAMS := APP_CLIENT DSP_SERVER APP_LOCAL

    PROGRAMS:=APP_LOCAL

     

    and in user.bld I changed


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

    to


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

    I was earlier attempting to build for ARM side only and I think (from my common sense) that inside 'server' directory it would have been surprising if I didn't receive any error!!!

  • Juan Gonzales said:

    Seems like is complaining about not being able to find 'ti.bios' package'; I would expect this package to be under bios_5_33_03 directory.  Can you double check the path defined for BIOS_INSTALL_DIR in your xdcpaths.mk points to this directory

    Well I did check the directory is present and so is my path BIOS_INSTALL_DIR:=/home/user/dvsdk_2_00_00_22/bios_5_33_03 in xdcpaths.mak which is correct I believe for the procedure. I have another problem in apps . Its unable to see 'cmem' now. I also had to use 'sudo' to grant permission to 'gmake' access directory. Now, I will try and append that path and see if that helps me[:(]

  •  will link with ti.xdais.dm.examples.auddec_copy:lib/auddec_copy.av5T
        will link with ti.sdo.linuxutils.cmem:lib/cmemd.a470MV
    js: "/home/user/dvsdk_2_00_00_22/xdctools_3_10_03/packages/xdc/cfg/Main.xs", line 28: XDC runtime error: can't find the library 'lib/cmemd.a470MV' specified by package ti.sdo.linuxutils.cmem. It wasn't found along the path '/home/user/dvsdk_2_00_00_22/codec_engine_2_23_01/examples/ti/sdo/ce/examples/apps/audio1_copy/sync/../../../../../../..;/home/user/dvsdk_2_00_00_22/linuxutils_2_23_01/packages;/home/user/dvsdk_2_00_00_22/local_power_manager_1_23_01/packages;/home/user/dvsdk_2_00_00_22/codec_engine_2_23_01/packages;/home/user/dvsdk_2_00_00_22/xdais_6_23/packages;/home/user/dvsdk_2_00_00_22/dsplink-1_61_03-prebuilt/packages;/home/user/dvsdk_2_00_00_22/linuxutils_2_23_01/packages;/home/user/dvsdk_2_00_00_22/framework_components_2_23_01/packages;/home/user/dvsdk_2_00_00_22/biosutils_1_01_00/packages;/home/user/dvsdk_2_00_00_22/bios_5_33_03/packages;/home/user/dvsdk_2_00_00_22/xdctools_3_10_03/packages;../../../../../../..;'.
    gmake[1]: *** [package/cfg/bin/evmDM6446/app_remote_xv5T.xdl] Error 1
    gmake[1]: *** Deleting file `package/cfg/bin/evmDM6446/app_remote_xv5T.xdl'
    gmake[1]: *** [package/cfg/bin/evmDM6446/app_remote_xv5T.xdl] Deleting file `package/cfg/bin/evmDM6446/app_remote_xv5T.h'
    gmake[1]: *** [package/cfg/bin/evmDM6446/app_remote_xv5T.xdl] Deleting file `package/cfg/bin/evmDM6446/app_remote_xv5T.c'
    gmake: *** [/home/user/dvsdk_2_00_00_22/codec_engine_2_23_01/examples/ti/sdo/ce/examples/apps/audio1_copy/sync,.executables] Error 2
    gmake[1]: *** [all] Error 2
    gmake[1]: Leaving directory `/home/user/dvsdk_2_00_00_22/codec_engine_2_23_01/examples/ti/sdo/ce/examples/apps/audio1_copy/sync'
    gmake: *** [all] Error 2
    user@ubuntu:~/dvsdk_2_00_00_22/codec_engine_2_23_01/examples/ti/sdo/ce/examples/apps$

  • hi,when i follow the <<Motion JPEG Demo on TMS320DM6446>> and Re-compile the ARM Application code,i have this problem,could you help me,please?

     

    [root@localhost jpegencdec]# gmake

    /home/jgj/dvevm_1_20/xdc_2_94/xdc XDCPATH="/home/jgj/dvevm_1_20/codec_servers_1_23/packages;/home/jgj/dvevm_1_20/codec_engine_1_10_01/examples/apps/jpegencdec/../..;/home/jgj/dvevm_1_20/codec_engine_1_10_01/packages;/home/jgj/dvevm_1_20/xdais_5_10/packages;/home/jgj/dvevm_1_20/dsplink_1_30_08_02/packages;/home/jgj/dvevm_1_20/cmem_1_02/packages/;/home/jgj/dvevm_1_20/framework_components_1_10_04/packages;/home/jgj/dvevm_1_20/bios_5_31_01/packages" \

            XDCOPTIONS=v all -PD .

    making all: 三 12月 2 00:57:53 CST 2009 ...

    ======== .interfaces [/home/jgj/dvevm_1_20/codec_engine_1_10_01/examples/apps/jpegencdec] ========

    #

    # making package.mak (because of package.bld) ...

    /home/jgj/dvevm_1_20/xdc_2_94/tconf  -Dxdc.path="/home/jgj/dvevm_1_20/codec_servers_1_23/packages;/home/jgj/dvevm_1_20/codec_engine_1_10_01/examples/apps/jpegencdec/../..;/home/jgj/dvevm_1_20/codec_engine_1_10_01/packages;/home/jgj/dvevm_1_20/xdais_5_10/packages;/home/jgj/dvevm_1_20/dsplink_1_30_08_02/packages;/home/jgj/dvevm_1_20/cmem_1_02/packages/;/home/jgj/dvevm_1_20/framework_components_1_10_04/packages;/home/jgj/dvevm_1_20/bios_5_31_01/packages;/home/jgj/dvevm_1_20/xdc_2_94/packages;../.." -Dxdc.root=/home/jgj/dvevm_1_20/xdc_2_94 -Dxdc.hostOS=Linux -Dconfig.importPath=".;/home/jgj/dvevm_1_20/codec_servers_1_23/packages;/home/jgj/dvevm_1_20/codec_engine_1_10_01/examples/apps/jpegencdec/../..;/home/jgj/dvevm_1_20/codec_engine_1_10_01/packages;/home/jgj/dvevm_1_20/xdais_5_10/packages;/home/jgj/dvevm_1_20/dsplink_1_30_08_02/packages;/home/jgj/dvevm_1_20/cmem_1_02/packages/;/home/jgj/dvevm_1_20/framework_components_1_10_04/packages;/home/jgj/dvevm_1_20/bios_5_31_01/packages;/home/jgj/dvevm_1_20/xdc_2_94/packages;../..;/home/jgj/dvevm_1_20/xdc_2_94;/home/jgj/dvevm_1_20/xdc_2_94/etc" -Dxdc.bld.targets="" -DTOOLS= -Dxdc.traceEnable=  /home/jgj/dvevm_1_20/xdc_2_94/packages/xdc/bld/bld.js /home/jgj/dvevm_1_20/codec_engine_1_10_01/packages/config.bld package.bld package.mak

    config.bld: loading user build configuration file /home/jgj/dvevm_1_20/codec_engine_1_10_01/examples/user.bld

    building for target C64P ...

    building for target MVArm9 ...

    #

    # generating interfaces for package apps.jpegencdec (because package/package.xdc.xml is older than package.xdc) ...

    /home/jgj/dvevm_1_20/xdc_2_94/xs -Dxdc.path="/home/jgj/dvevm_1_20/codec_servers_1_23/packages;/home/jgj/dvevm_1_20/codec_engine_1_10_01/examples/apps/jpegencdec/../..;/home/jgj/dvevm_1_20/codec_engine_1_10_01/packages;/home/jgj/dvevm_1_20/xdais_5_10/packages;/home/jgj/dvevm_1_20/dsplink_1_30_08_02/packages;/home/jgj/dvevm_1_20/cmem_1_02/packages/;/home/jgj/dvevm_1_20/framework_components_1_10_04/packages;/home/jgj/dvevm_1_20/bios_5_31_01/packages;/home/jgj/dvevm_1_20/xdc_2_94/packages;../.." -Dxdc.root=/home/jgj/dvevm_1_20/xdc_2_94 -Dxdc.hostOS=Linux -Dconfig.importPath=".;/home/jgj/dvevm_1_20/codec_servers_1_23/packages;/home/jgj/dvevm_1_20/codec_engine_1_10_01/examples/apps/jpegencdec/../..;/home/jgj/dvevm_1_20/codec_engine_1_10_01/packages;/home/jgj/dvevm_1_20/xdais_5_10/packages;/home/jgj/dvevm_1_20/dsplink_1_30_08_02/packages;/home/jgj/dvevm_1_20/cmem_1_02/packages/;/home/jgj/dvevm_1_20/framework_components_1_10_04/packages;/home/jgj/dvevm_1_20/bios_5_31_01/packages;/home/jgj/dvevm_1_20/xdc_2_94/packages;../..;/home/jgj/dvevm_1_20/xdc_2_94;/home/jgj/dvevm_1_20/xdc_2_94/etc ;/home/jgj/dvevm_1_20/bios_5_31_01/packages/ti/bios/include" -Dxdc.bld.targets="" -DTOOLS= -Dxdc.traceEnable= -f xdc/services/intern/cmd/build.xs -m package/package.xdc.dep -i package/package.xdc.inc package.xdc

    .interfaces files complete: 三 12月 2 00:58:01 CST 2009.

    ======== .libraries [/home/jgj/dvevm_1_20/codec_engine_1_10_01/examples/apps/jpegencdec] ========

    .libraries files complete: 三 12月 2 00:58:01 CST 2009.

    ======== .dlls [/home/jgj/dvevm_1_20/codec_engine_1_10_01/examples/apps/jpegencdec] ========

    .dlls files complete: 三 12月 2 00:58:01 CST 2009.

    ======== .executables [/home/jgj/dvevm_1_20/codec_engine_1_10_01/examples/apps/jpegencdec] ========

    #

    # configuring app_remote.x470MV from package/cfg/app_remote_x470MV.cfg ...

    /home/jgj/dvevm_1_20/xdc_2_94/xs -Dxdc.path="/home/jgj/dvevm_1_20/codec_servers_1_23/packages;/home/jgj/dvevm_1_20/codec_engine_1_10_01/examples/apps/jpegencdec/../..;/home/jgj/dvevm_1_20/codec_engine_1_10_01/packages;/home/jgj/dvevm_1_20/xdais_5_10/packages;/home/jgj/dvevm_1_20/dsplink_1_30_08_02/packages;/home/jgj/dvevm_1_20/cmem_1_02/packages/;/home/jgj/dvevm_1_20/framework_components_1_10_04/packages;/home/jgj/dvevm_1_20/bios_5_31_01/packages;/home/jgj/dvevm_1_20/xdc_2_94/packages;../.." -Dxdc.root=/home/jgj/dvevm_1_20/xdc_2_94 -Dxdc.hostOS=Linux -Dconfig.importPath=".;/home/jgj/dvevm_1_20/codec_servers_1_23/packages;/home/jgj/dvevm_1_20/codec_engine_1_10_01/examples/apps/jpegencdec/../..;/home/jgj/dvevm_1_20/codec_engine_1_10_01/packages;/home/jgj/dvevm_1_20/xdais_5_10/packages;/home/jgj/dvevm_1_20/dsplink_1_30_08_02/packages;/home/jgj/dvevm_1_20/cmem_1_02/packages/;/home/jgj/dvevm_1_20/framework_components_1_10_04/packages;/home/jgj/dvevm_1_20/bios_5_31_01/packages;/home/jgj/dvevm_1_20/xdc_2_94/packages;../..;/home/jgj/dvevm_1_20/xdc_2_94;/home/jgj/dvevm_1_20/xdc_2_94/etc ;/home/jgj/dvevm_1_20/bios_5_31_01/packages/ti/bios/include" -Dxdc.bld.targets="" -DTOOLS= -Dxdc.traceEnable=  xdc.cfg app_remote.x470MV package/cfg/app_remote_x470MV.cfg package/cfg/app_remote_x470MV

    ti.sdo.ce.osal.close() ...

    WARNING: Can't call useModule() now: ti.sdo.ce.Engine

    ti.sdo.ce.osal.validate() ...

        will link with ti.sdo.ce.image:lib/debug/image.a470MV

        will link with ti.sdo.ce:lib/ce_debug.a470MV

        will link with ti.sdo.ce.osal:lib/osal_dsplink_linux.a470MV

        will link with ti.sdo.linuxutils.cmem:lib/cmemd.a

        will link with ti.sdo.ce.node:lib/node_debug.a470MV

        will link with ti.sdo.ce.osal.alg:lib/alg.a470MV

        will link with ti.sdo.ce.trace:lib/gt.a470MV

        will link with dsplink.gpp:export/BIN/Linux/Davinci/DEBUG/dsplink.lib

    rm -f package/cfg/app_remote/main_native.o470MV

    #

    # cl470MV main_native.c ...

    /opt/mv_pro_4.0/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc -c -x c  -fPIC -Wunused -Wall -fno-strict-aliasing  -MD -MF package/cfg/app_remote/main_native.o470MV.dep -Dfar=  -D_DEBUG_=1  -Dxdc_cfg__header__='apps/jpegencdec/package/cfg/app_remote_x470MV.h'  -Dxdc_target_name__=MVArm9 -Dxdc_target_types__=gnu/targets/std.h -Dxdc_bld__profile_debug -Dxdc_bld__vers_1_0_3_4_3 -g  -I. -I/home/jgj/dvevm_1_20/codec_servers_1_23/packages -I/home/jgj/dvevm_1_20/codec_engine_1_10_01/examples/apps/jpegencdec/../.. -I/home/jgj/dvevm_1_20/codec_engine_1_10_01/packages -I/home/jgj/dvevm_1_20/xdais_5_10/packages -I/home/jgj/dvevm_1_20/dsplink_1_30_08_02/packages -I/home/jgj/dvevm_1_20/cmem_1_02/packages/ -I/home/jgj/dvevm_1_20/framework_components_1_10_04/packages -I/home/jgj/dvevm_1_20/bios_5_31_01/packages -I/home/jgj/dvevm_1_20/xdc_2_94/packages -I../.. -I/home/jgj/dvevm_1_20/bios_5_31_01/packages/ti/bios/include  -o package/cfg/app_remote/main_native.o470MV main_native.c

    rm -f package/cfg/app_remote/app.o470MV

    #

    # cl470MV app.c ...

    /opt/mv_pro_4.0/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc -c -x c  -fPIC -Wunused -Wall -fno-strict-aliasing  -MD -MF package/cfg/app_remote/app.o470MV.dep -Dfar=  -D_DEBUG_=1  -Dxdc_cfg__header__='apps/jpegencdec/package/cfg/app_remote_x470MV.h'  -Dxdc_target_name__=MVArm9 -Dxdc_target_types__=gnu/targets/std.h -Dxdc_bld__profile_debug -Dxdc_bld__vers_1_0_3_4_3 -g  -I. -I/home/jgj/dvevm_1_20/codec_servers_1_23/packages -I/home/jgj/dvevm_1_20/codec_engine_1_10_01/examples/apps/jpegencdec/../.. -I/home/jgj/dvevm_1_20/codec_engine_1_10_01/packages -I/home/jgj/dvevm_1_20/xdais_5_10/packages -I/home/jgj/dvevm_1_20/dsplink_1_30_08_02/packages -I/home/jgj/dvevm_1_20/cmem_1_02/packages/ -I/home/jgj/dvevm_1_20/framework_components_1_10_04/packages -I/home/jgj/dvevm_1_20/bios_5_31_01/packages -I/home/jgj/dvevm_1_20/xdc_2_94/packages -I../.. -I/home/jgj/dvevm_1_20/bios_5_31_01/packages/ti/bios/include  -o package/cfg/app_remote/app.o470MV app.c

    app.c:28:32: media/davinci_vpfe.h: 没有那个文件或目录

    app.c:29:27: media/tvp5146.h: 没有那个文件或目录

    app.c:30:29: video/davincifb.h: 没有那个文件或目录

    app.c: In function `initCaptureDevice':

    app.c:464: error: `TVP5146_AMUX_SVIDEO' undeclared (first use in this function)

    app.c:464: error: (Each undeclared identifier is reported only once

    app.c:464: error: for each function it appears in.)

    app.c:466: error: `TVP5146_AMUX_COMPOSITE' undeclared (first use in this function)

    app.c:504: error: `VPFE_STD_AUTO' undeclared (first use in this function)

    gmake[1]: *** [package/cfg/app_remote/app.o470MV] Error 1

    gmake: *** [/home/jgj/dvevm_1_20/codec_engine_1_10_01/examples/apps/jpegencdec,.executables] Error 2

    gmake: *** [all] 错误 2

     

  • virgoptrex said:
    js: "/home/user/dvsdk_2_00_00_22/xdctools_3_10_03/packages/xdc/cfg/Main.xs", line 28: XDC runtime error: can't find the library 'lib/cmemd.a470MV' specified by package ti.sdo.linuxutils.cmem. It wasn't found along the path...

    I had this error as well, but I believe it was resolved by either rebuilding the DVSDK or attempting to rebuild CMEM, as the file appeared dvsdk_2_00_00_22/linuxutils_2_23_01/packages/ti/sdo/linuxutils/cmem/lib for me. Incidentally the d in cmemd is for debug, so a cmem.a470MV will probably work in its place renamed as an alternative, though I have not tried this.