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.

Building a Standalone Project from DVSDK 3.10

Hey guys:

I used to be able to pull directories (decode, encode, encodedecode) out of the demos directories of the DVSDKs with no problems until DVSDK3.10.  Usually I just pulled the decode directory and packages directory from the demo directory of each DVSDK and modify the environmental variables to point to the DVSDK directory and I could build the project standalone with no problems.  Now with DVSDK3.10, when I try to do this I get the following message:

[root@localhost decode]# make VERBOSE=true

======== Building decode ========
Configuring application using decode.cfg
PLATFORM_XDC="ti.platforms.evmDM365" XDCPATH=";../../packages;/home/user/dvsdk/dvsdk_3_10_00_16/dmai_2_10_00_10/packages;/home/user/dvsdk/dvsdk_3_10_00_16/codec_engine_2_25_01_06/packages;/home/user/dvsdk/dvsdk_3_10_00_16/framework_components_2_25_01_05/packages;/home/user/dvsdk/dvsdk_3_10_00_16/dsplink_linux_1_64/packages;/home/user/dvsdk/dvsdk_3_10_00_16/xdais_6_25_01_08/packages;/home/user/dvsdk/dvsdk_3_10_00_16/linuxutils_2_25_01_06/packages;/home/user/dvsdk/dvsdk_3_10_00_16/dm365_codecs_03_10_00_05/packages;/home/user/dvsdk/dvsdk_3_10_00_16/codec_engine_2_25_01_06/examples" /home/user/dvsdk/dvsdk_3_10_00_16/xdctools_3_16_01_27/xs xdc.tools.configuro -c /home/user/CodeSourcery -o decode_config -t gnu.targets.arm.GCArmv5T -p ti.platforms.evmDM365 -b /home/user/dvsdk/dvsdk_3_10_00_16/dmai_2_10_00_10/packages/config.bld decode.cfg
making package.mak (because of package.bld) ...
js: "./package.bld", line 62: Error: template generation of 'compiler.opt' failed: Error: /home/user/CodeSourcery/nullgcc cannot be found. Ensure that rootDir for the GCArmv5T target is set correctly in ./config.bld
gmake: *** Deleting file `package.mak'
gmake: *** No rule to make target `.configuro'. Stop.
Warning: directory "/home/user/dvsdk/dvsdk_3_10_00_16/dsplink_linux_1_64/packages" on package path does not exist
js: "/home/user/dvsdk/dvsdk_3_10_00_16/xdctools_3_16_01_27/packages/xdc/tools/Cmdr.xs", line 51: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
make: *** [decode_config/compiler.opt] Error 1

It is having a problem with this statement in the Makefile:

$(VERBOSE) PLATFORM_XDC="$(PLATFORM_XDC)" XDCPATH="$(XDC_PATH)" $(CONFIGURO) -c $(MVTOOL_DIR) -o $(XDC_CFG) -t $(PLATFORM_XDC_TARGET) -p $(PLATFORM_XDC) -b $(DMAI_INSTALL_DIR)/packages/config.bld $(XDC_CFGFILE)

The -b option above along with the DMAI path is referring to a config.bld file in the DMAI packages directory that is defined as such:

which I assume is why it is getting a nullgcc error because rootDir is getting the wrong value.  I have no issues building the kernel and DVSDK so I know there is not a problem with my PATH - just this PLATFORM_XDC definition getting in the way.   This did not used to be be in the previous DVSDKs and is preventing me from building an independent project that was pulled out of the demos directory as a reference.  Does anyone know how to fixx this problem?

Thanks,
Tim Simerly

 

var GCArmv5T = xdc.useModule('gnu.targets.arm.GCArmv5T');
GCArmv5T.LONGNAME = longName;
GCArmv5T.platform = java.lang.System.getenv("PLATFORM_XDC");
GCArmv5T.rootDir = tooldir;

 

 

  • try please to add:     

    export CROSS=arm-none-linux-gnueabi-
    export CROSS_COMPILE=$CROSS
    export MVTOOL_PREFIX=$CROSS

    and PATH to compiler

    then replace ../../packages in Makefile to <somewhere>/dvsdk/dvsdk_3_10_00_12/dvsdk_demos_3_10_00_10/packages

  • To compile standalone demos in dvsdk_3_10_00_19 add to Makefile

    include ../../../Rules.make

    REPOSITORIES:=$(DVTB_INSTALL_DIR)
    LINUXKERNEL_CONFIG=davinci_dm365_defconfig
    LINUXSAMPLES_PLATFORM=dm365
    HAS_SERVER=false
    HAS_DSPLINK=false
    HAS_IRQK=true
    HAS_EDMAK=true
    DMAMMAP_INSTALL_DIR=$(DM365MMAP_INSTALL_DIR)/module
    DMAI_PLATFORM=dm365_al
    CROSS_COMPILE=$(MVTOOL_PREFIX)

    before

    -include $(DMAI_INSTALL_DIR)/Platform.make

    tested on dvsdk_3_10_00_19/dvsdk_demos_3_10_00_16/dm365/decode

  • I just gave this a try and found that this is what's necessary...

    export CROSS_COMPILE=bin/arm-none-linux-gnueabi-

    The addition of the "bin/" was required to fix this specific error...

    Error: /home/user/CodeSourcery/nullgcc cannot be found. Ensure that rootDir for the GCArmv5T target is set correctly in ./config.bld

    So "null" is the missing CROSS_COMPILE, but bin has to be added to it.

    I'm trying to build my application originally written with DVSDK 2, but now 4.

    Instead of building it in the DVSDK directory structure, I'd like to have it elsewhere.  When I ran make I got the same error as the original poster.  Fortunately I remembered the basic subject of this thread and dug it up.

    I am including Rules.make from the DVSDK, but I'm not finding the include files as this point.  So that's the next issue I need to tackle.


    John A