I am trying to build the encode demo in v3.10 of the dvsdk. I am using Montavista's GCC 4.2.0 compiler. Here is my Rules.make file:
# Define target platform.
PLATFORM=dm355
# The installation directory of the DVSDK.
DVSDK_INSTALL_DIR=/opt/dvsdk_3_10_00_19
# For backwards compatibility
DVEVM_INSTALL_DIR=$(DVSDK_INSTALL_DIR)
# Where DSP/BIOS is installed.
BIOS_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/bios_5_41_00_06
# Where the DSPBIOS Utils package is installed.
BIOSUTILS_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/biosutils_1_02_02
# Where the Codec Engine package is installed.
CE_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/codec_engine_2_25_05_16
# Where the DSP Link package is installed.
LINK_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/dsplink_linux_1_64
ifeq ($(PLATFORM),dm355)
# Where the DM355 codecs are installed.
CODEC_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/dm355_codecs_03_10_00_02
endif
ifeq ($(PLATFORM),dm365)
# Where the DM365 codecs are installed.
CODEC_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/dm365_codecs_03_10_00_07
endif
# Where the DM365MM module is installed.
DM365MMAP_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/dm365mm_01_00_03
ifeq ($(PLATFORM),dm6467)
# Where the cs2dm6467 codec server package is installed.
CODEC_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/cs2dm6467_1_00_00_10
endif
# Where DMAI package is installed.
DMAI_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/dmai_2_10_00_12
# Where the DVSDK demos are installed
DEMO_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/dvsdk_demos_3_10_00_16
# Where the DVTB package is installed.
DVTB_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/dvtb_4_20_10
# Where the EDMA3 LLD package is installed.
EDMA3_LLD_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/edma3_lld_01_11_00_03
# Where the Framework Components package is installed.
FC_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/framework_components_2_25_02_06
# Where the MFC Linux Utils package is installed.
LINUXUTILS_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/linuxutils_2_25_04_10
CMEM_INSTALL_DIR=$(LINUXUTILS_INSTALL_DIR)
# Where the XDAIS package is installed.
XDAIS_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/xdais_6_25_02_11
# Where the RTSC tools package is installed.
XDC_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/xdctools_3_16_01_27
# Where the Code Gen is installed.
CODEGEN_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/cgt6x_6_1_12
# The directory that points to your kernel source directory.
LINUXKERNEL_INSTALL_DIR=/lsp/kernel_flex_v2_rc1/trunk
# Where temporary Linux headers and libs are installed.
LINUXLIBS_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/../linuxlibs-2009.11-armv5te
# Where Linux examples are installed.
LINUXEXAMPLES_INSTALL_DIR=$(DVSDK_INSTALL_DIR)/../examples-r37
# The prefix to be added before the GNU compiler tools (optionally including # path), i.e. "arm_v5t_le-" or "/opt/bin/arm_v5t_le-".
CSTOOL_DIR=/opt/montavista/pro/devkit/arm/v5t_le
CSTOOL_PREFIX=arm_v5t_le-
MVTOOL_DIR=$(CSTOOL_DIR)
MVTOOL_PREFIX=$(CSTOOL_PREFIX)
# Where to copy the resulting executables
EXEC_DIR=$(HOME)/install/$(PLATFORM)
When I run make in the /opt/dvsdk_3_10_00_19/dvsdk_demos_3_10_00_16/dm355/encode directory, I get the following error message:
[nbutts@eslinux encode]$ make
======== Building encode ========
Configuring application using encode.cfg
making package.mak (because of package.bld) ...
js: "./package.bld", line 62: Error: template generation of 'compiler.opt' failed: Error: /opt/montavista/pro/devkit/arm/v5t_le/nullgcc cannot be found. Ensure that rootDir for the GCArmv5T target is set correctly in ./config.bld
gmake: *** Deleting file `package.mak'
making package.mak (because of package.bld) ...
js: "./package.bld", line 62: Error: template generation of 'compiler.opt' failed: Error: /opt/montavista/pro/devkit/arm/v5t_le/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 "/opt/dvsdk_3_10_00_19/dsplink_linux_1_64/packages" on package path does not exist
js: "/opt/dvsdk_3_10_00_19/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: *** [encode_config/compiler.opt] Error 1
It looks like it is getting the wrong compiler. But I can't find what file this is located in. Has anyone come across this?