Hello Everyone,
I am currently working on building codec_engine examples for evmDM6446 target 
provided along with dvsdk_1_30_01_41 version.
Following build instructions in codec_examples folder, I was able to perfrom 
"gmake" successfully in 
folder "codecs", "extensions". 
And when I did same in folder "servers", I do get the following error.
Error message below. I have aslo attached user.txt (nothing but user.bld) and 
xdcpath.txt (xdcpath.mak) files at bottom of this email.  Please let me know 
what went wrong..
----------------------------------------------------------------------------------------------------------------------------------
[sand...@davinci servers]$ gmake clean
gmake -C video_copy clean
gmake[1]: Entering directory 
`/home/sandeep/workdir_4.0.1/filesys/opt/ce_examples/ti/sdo/ce/examples/servers/video_copy'
gmake -C evmDM6446 clean
gmake[2]:
Entering directory
`/home/sandeep/workdir_4.0.1/filesys/opt/ce_examples/ti/sdo/ce/examples/servers/video_copy/evmDM6446'
rm -rf video_copy.x64P ti_sdo_ce_examples_servers_video_copy_evmDM6446.tar 
*.obj package package.* video_copy
gmake[2]:
Leaving directory
`/home/sandeep/workdir_4.0.1/filesys/opt/ce_examples/ti/sdo/ce/examples/servers/video_copy/evmDM6446'
gmake[1]: Leaving directory 
`/home/sandeep/workdir_4.0.1/filesys/opt/ce_examples/ti/sdo/ce/examples/servers/video_copy'
gmake -C all_codecs clean
gmake[1]: Entering directory 
`/home/sandeep/workdir_4.0.1/filesys/opt/ce_examples/ti/sdo/ce/examples/servers/all_codecs'
/home/sandeep/dvsdk_1_30_01_41/xdc_3_00_02/xdc 
XDCPATH="/home/sandeep/workdir_4.0.1/filesys/opt/ce_examples/ti/sdo/ce/examples/servers/all_codecs/../../../../../..;/home/sandeep/dvsdk_1_30_01_41/codec_engine_2_00_01/packages;/home/sandeep/dvsdk_1_30_01_41/codec_engine_2_00_01/cetools/packages;/home/sandeep/dvsdk_1_30_01_41/bios_5_31_08/packages"
\
        XDCOPTIONS=v clean -PD .
making clean: Thu Jun 11 16:48:51 IST 2009 ...
======== clean 
[/home/sandeep/workdir_4.0.1/filesys/opt/ce_examples/ti/sdo/ce/examples/servers/all_codecs]
 ========
cleaning complete: Thu Jun 11 16:48:51 IST 2009.
gmake[1]: Leaving directory 
`/home/sandeep/workdir_4.0.1/filesys/opt/ce_examples/ti/sdo/ce/examples/servers/all_codecs'
[sand...@davinci servers]$ gmake
gmake -C video_copy all
gmake[1]: Entering directory 
`/home/sandeep/workdir_4.0.1/filesys/opt/ce_examples/ti/sdo/ce/examples/servers/video_copy'
gmake -C evmDM6446 all
gmake[2]: Entering directory 
`/home/sandeep/workdir_4.0.1/filesys/opt/ce_examples/ti/sdo/ce/examples/servers/video_copy/evmDM6446'
XDCPATH="/home/sandeep/workdir_4.0.1/filesys/opt/ce_examples/ti/sdo/ce/examples/servers/video_copy/evmDM6446/../../../../../../...;/home/sandeep/dvsdk_1_30_01_41/codec_engine_2_00_01/packages;/home/sandeep/dvsdk_1_30_01_41/codec_engine_2_00_01/cetools/packages;/home/sandeep/dvsdk_1_30_01_41/bios_5_31_08/packages"
/home/sandeep/dvsdk_1_30_01_41/xdc_3_00_02/xs xdc.tools.configuro -c
/home/sandeep/dvsdk_1_30_01_41/cg6x_6_0_15 -o video_copy \
        -t ti.targets.C64P -p ti.platforms.evmDM6446 \
                --tcf video_copy.cfg
making package.mak (because of package.bld) ...
generating interfaces for package video_copy (because package/package.xdc.xml 
is older than package.xdc) ...
configuring video_copy..x64P from package/cfg/video_copy_x64P.cfg ...
platform   = ti.platforms.evmDM6446
ti.sdo.ce.bioslog.init() ...
ti.sdo.ce.examples.codecs.videnc_copy.close() ...
ti.sdo.ce.bioslog.close() ...
ti.sdo.ce.osal.close() ...
js: "/home/sandeep/dvsdk_1_30_01_41/xdc_3_00_02/packages/xdc/cfg/Main.xs", line 
248: exception from uncaught JavaScript throw: Error: xdc.loadPackage: can't 
find package 'dsplink.dsp' along the path 
'/home/sandeep/workdir_4.0.1/filesys/opt/ce_examples;/home/sandeep/dvsdk_1_30_01_41/codec_engine_2_00_01/packages;/home/sandeep/dvsdk_1_30_01_41/codec_engine_2_00_01/cetools/packages;/home/sandeep/dvsdk_1_30_01_41/bios_5_31_08/packages;/home/sandeep/dvsdk_1_30_01_41/xdc_3_00_02/packages;/home/sandeep/dvsdk_1_30_01_41/xdc_3_00_02/packages;/home/sandeep/workdir_4.0.1/filesys/opt/ce_examples/ti/sdo/ce/examples/servers/video_copy/evmDM6446/video_copy/./..;';
try redefining the package path (XDCPATH).
    "/home/sandeep/dvsdk_1_30_01_41/xdc_3_00_02/packages/xdc/cfg/Main.xs", line 
154
    "/home/sandeep/dvsdk_1_30_01_41/xdc_3_00_02/packages/xdc/xs.js", line 144
gmake: *** [package/cfg/video_copy_x64P.c] Error 1
gmake: *** [package/cfg/video_copy_x64P.c] Deleting file 
`package/cfg/video_copy_x64Pcfg.cmd'
gmake: *** [package/cfg/video_copy_x64P.c] Deleting file 
`package/cfg/video_copy_x64Pcfg_c.c'
gmake: *** [package/cfg/video_copy_x64P.c] Deleting file 
`package/cfg/video_copy_x64Pcfg.s62'
gmake[2]: *** [video_copy] Error 2
gmake[2]:
Leaving directory
`/home/sandeep/workdir_4.0.1/filesys/opt/ce_examples/ti/sdo/ce/examples/servers/video_copy/evmDM6446'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory 
`/home/sandeep/workdir_4.0.1/filesys/opt/ce_examples/ti/sdo/ce/examples/servers/video_copy'
gmake: *** [all] Error 2
[sand...@davinci servers]$
----------------------------------------------------------------------------------------------------------------------------------


 
Many Thanks,
Sandeep.Yedire


      Explore and discover exciting holidays and getaways with Yahoo! India 
Travel http://in.travel.yahoo.com/
#
#  ======== 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 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 ## DM355 DM6437 DM648  #Removed from list_Jun 10, 2009, 
Sandeep.

# (Optional) Remove from the list the types of programs you're not intersted in 
# building:
# 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


# (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
# is a "big" one that contains all the minor components in its "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    - Continuous memory manager (Arm only)
# DSPLINK - Arm<->DSP communication software (Arm + DSP)
#
# you can ommit 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/sandeep/dvsdk_1_30_01_41/codec_engine_2_00_01
XDC_INSTALL_DIR       :=/home/sandeep/dvsdk_1_30_01_41/xdc_3_00_02
BIOS_INSTALL_DIR      :=/home/sandeep/dvsdk_1_30_01_41/bios_5_31_08
# 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/sandeep/dvsdk_1_30_01_41/xdias_6_00_01
DSPLINK_INSTALL_DIR   :=/home/sandeep/dvsdk_1_30_01_41/dsplink_140-05p1
CMEM_INSTALL_DIR      :=/home/sandeep/dvsdk_1_30_01_41/cmem_2_00_01
FC_INSTALL_DIR        
:=/home/sandeep/dvsdk_1_30_01_41/framework_components_2_00_01
BIOSUTILS_INSTALL_DIR :=/home/sandeep/dvsdk_1_30_01_41/biosutils_1_00_02
# (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_MVARM9 =/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le
CC_MVARM9      =bin/arm_v5t_le-gcc

# compiler path and name for TI C64x toolchain. NOTE: make sure the 
# directory you specify has a "bin" subdirectory
CGTOOLS_C64X =/home/sandeep/dvsdk_1_30_01_41/cg6x_6_0_15
CC_C64X      =bin/cl6x
#
# -----------------------------------------------------------------------------
# determine which components are necessary based on DEVICES and PROGRAMS
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 DM355,$(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


# 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_INSTALL_DIR)/packages/ti/sdo/ce/package.xdc
    ifeq ($(wildcard $(TEST_FILE)),)
        $(error CE_INSTALL_DIR is set to "$(CE_INSTALL_DIR)", $(ERRMSG))
    endif
    XDC_PATH := $(CE_INSTALL_DIR)/packages
endif
  
# if the CE distribution has "cetools/", we have components in the "else" 
branch available inside "cetools"
ifeq ($(USE_CETOOLS_IF_EXISTS), 1)
    XDC_PATH := $(XDC_PATH);$(CE_INSTALL_DIR)/cetools/packages
else
    # 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)
/*
 *  ======== 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 Montavista Linux
                target:  "gnu.targets.MVArm9",
                
                // MVArm tools. NOTE: make sure the directory you specify has a 
"bin" subdirectory
                cgtoolsRootDir: 
"/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le",
                
                platforms: [ // NOTE: comment out platforms (boards) below for 
which you don't want to build 
                    { description: "DaVinci evmDM6446 board, ARM-side", 
platform: "evmDM6446", dualCpu: true },
                    //{ description: "DaVinci evmDM355  board, ARM only", 
platform: "evmDM6446", dualCpu: false, outDir: "evmDM355" },
                ],
              },

              { 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/vendors2005/opensource/buildroot/16012006/staging_dir",
                platforms: [
                    { description: "DaVinci evmDM6446 board, ARM-side", 
platform: "evmDM6446", dualCpu: true },
                    //{ description: "DaVinci evmDM355  board, ARM only", 
platform: "evmDM6446", dualCpu: false, outDir: "evmDM355" },
                ],
              }],

    "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: "/home/sandeep/dvsdk_1_30_01_41/cg6x_6_0_15",

                platforms: [ // NOTE: comment out platforms (boards) below for 
which you don't want to build
                    { description: "DaVinci evmDM6446 board, DSP-side Server", 
platform: "evmDM6446" },
                    //{ description: "DaVinci evmDM6437 board, DSP only", 
platform: "evmDM6437" },
                 // { description: "DaVinci evmDM648  board, DSP only", 
platform: "evmDM648"  },
                ],
              }],

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


// expert users: you can specify any compiler toolchain-specific options
// here, for example,
// C64P.ccOpts.prefix = "-pdr"; // enable remarks for the TI C64P compiler
// UCArm9.lnkOpts.suffix = "-static"; // static linking
// etc.

//
// no need to edit anything below this line
// -----------------------------------------------------------------------------

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

for (var c in buildTable) {
    var cpu = buildTable[ c ];
    for (var t = 0; t < cpu.length; t++) {
        if (cpu[t].doBuild) {
            var targ = xdc.useModule( cpu[t].target );
            targets[ targets.length ] = targ;
            targ.rootDir = cpu[t].cgtoolsRootDir;
            var targName = cpu[t].target.replace( /.*\./g, "" );
            userbldBuildPlatforms[ targName ] = cpu[t].platforms;
        }
    }
}

Build.targets = targets;

_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to