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.

DMAI Build Error

Hello,

I'm trying to follow the GSG for the DM365:

http://processors.wiki.ti.com/index.php/GSG:_DM365_DVEVM_Software_Setup_for_MontaVista_Kernel

I followed all of the instructions without an issue until "Rebuilding the DVSDK Software for the Target".  While running "make" I get the following error output:

irqk.ko kernel module can be found under /home/jharpe12/dvsdk_2_10_01_18/kernel_binaries/dm365
make -C /home/jharpe12/dvsdk_2_10_01_18/dmai_1_21_00_10 dm365_al
make[1]: Entering directory `/home/jharpe12/dvsdk_2_10_01_18/dmai_1_21_00_10'
make[2]: Entering directory `/home/jharpe12/dvsdk_2_10_01_18/dmai_1_21_00_10/packages/ti/sdo/dmai'
Compiling obj/Buffer.dm365.o470MV from Buffer.c..
arm_v5t_le-gcc: /include: No such file or directory
make[2]: *** [obj/Buffer.dm365.o470MV] Error 1
make[2]: Leaving directory `/home/jharpe12/dvsdk_2_10_01_18/dmai_1_21_00_10/packages/ti/sdo/dmai'
make[1]: *** [dm365_al] Error 2
make[1]: Leaving directory `/home/jharpe12/dvsdk_2_10_01_18/dmai_1_21_00_10'
make: *** [dmai] Error 2

Any ideas?  I didn't change any of the default settings described in the GSG document.  I'm using Ubuntu 10.04 as my build machine.

My understanding is that I need to compile dvsdk, including dmai, before I can build GStreamer.  Is this correct?

Any help would be appreciated.  Thanks!

Jim

 

  • Hello,

    It looks like you have a problem in your Rules.make file, something is not set or set incorrectly. It could be the linux kernel installation directory not being set properly judging from the /include not being found.

    Regards, Niclas

  • Hi Niclas,

    Which Rules.make file should I be looking in?  Here's my Rules.make that's in the /home/jharpe12/dvsdk_2_10_01_18 directory.  The LINUXKERNEL_INSTALL_DIR points to /home/jharpe12/workdir/lsp/ti-davinci/linux-2.6.18_pro500 directory.  I verified that this directory exists and has an include directory. I also verified that all of the other directories exist; the only one that doesn't is $(HOME)/cg6x_6_0_21.  --- Am I looking in the correct Rules.make file?  I haven't touch any of the Rules.make files below the dvsdk directory.

    # This make variable must be set before the DVSDK components can be built.
    PLATFORM=dm365
    ifndef PLATFORM
       $(error PLATFORM must be set in Rules.make to dm355,dm6467, or dm6446 before building the demos)
    endif


    # The installation directory of the DVSDK  imports/DEMO_common.
    DVSDK_INSTALL_DIR=${HOME}/dvsdk_2_10_01_18


    # For backwards compatibility
    DVEVM_INSTALL_DIR=$(DVSDK_INSTALL_DIR)

    # Where the DVSDK demos are installed
    DEMO_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/dvsdk_demos_2_10_00_17

    # Where the Digital Video Test Bench is installed
    DVTB_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/dvtb_4_10_03

    # Where the Davinci Multimedia Application Interface is installed
    DMAI_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/dmai_1_21_00_10

    # Where the Codec Engine package is installed.
    CE_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/codec_engine_2_24

    # Where the XDAIS package is installed.
    XDAIS_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/xdais_6_24

    # Where the DSP Link package is installed.
    #LINK_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/dsplink-1_61_03-prebuilt

    # This is maintained for backwards compatibility
    # Where the CMEM (contiguous memory allocator) package is installed.
    CMEM_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/linuxutils_2_24_02

    # Where the linuxutils package is installed.
    LINUXUTILS_INSTALL_DIR=$(CMEM_INSTALL_DIR)


    # Where the EDMA3 Low Level Driver is installed.
    EDMA3_LLD_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/edma3_lld_1_06_00_01

    ifeq ($(PLATFORM),dm365)
       CODEC_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/dm365_codecs_01_00_06
    endif

    # Where the RTSC tools package is installed.
    XDC_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/xdctools_3_15_01_59

    # Where Framework Components product is installed
    FC_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/framework_components_2_24

    # Where DSP/BIOS is installed
    BIOS_INSTALL_DIR=

    # BIOS Utilities
    BIOSUTILS_INSTALL_DIR=

    # Additional RTSC package repositories to be picked up by components.
    USER_XDC_PATH=$(CE_INSTALL_DIR)/examples
    #above works around DMAI path bug

    # Where the TI c6x code generation tools are installed
    CODEGEN_INSTALL_DIR=$(HOME)/cg6x_6_0_21

    # Platform Support Package installation directory.
    PSP_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/__PSP_VERS__

    # The directory that points to your kernel source directory.
    LINUXKERNEL_INSTALL_DIR=${HOME}/workdir/lsp/ti-davinci/linux-2.6.18_pro500

    # The prefix to be added before the GNU compiler tools (optionally including
    # path), i.e. "arm_v5t_le-" or "/opt/bin/arm_v5t_le-".
    MVTOOL_DIR=/opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le
    MVTOOL_PREFIX=$(MVTOOL_DIR)/bin/arm_v5t_le-

    # Where to copy the resulting executables and data to (when executing 'make
    # install') in a proper file structure. This EXEC_DIR should either be visible
    # from the target, or you will have to copy this (whole) directory onto the
    # target filesystem.
    EXEC_DIR=${HOME}/workdir/filesys/opt/dvsdk/dm365

     

    Thanks!

    Jim