Andrea Gasparini wrote:
> Hi, 
> I'm trying to build DVSK 2_00_00_22, and I'm failing in it.
> 
> More precisely, it's dmai make that blame with the following line:
> /mnt/lavoro/gigavision/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/bin/../lib/gcc/armv5tl-
> montavista-linux-gnueabi/4.2.0/../../../../armv5tl-montavista-linux-
> gnueabi/bin/ld: cannot find 
> /db/rtree/niclas/davinci_multimedia_application_interface/dmai/packages/ti/sdo/dmai/apps/video_loopback_copy/linux/video_loopback_copy_dm355_config/package/cfg/video_loopback_copy_dm355_x470MV.o470MV
> 
> and of course I don't have "/db/rtree/niclas/" path. A quick search tells 
> me that all that kind of file: 
> ./apps/image_decode_io1/linux/image_decode_io1_dm355_config/package.bld
> ./apps/image_encode_io1/linux/image_encode_io1_dm355_config/package.bld
> ./apps/speech_decode_io1/linux/speech_decode_io1_dm355_config/package.bld
> ./apps/video_decode_io2/linux/video_decode_io2_dm355_config/package.bld
> ./apps/video_encode_io1/linux/video_encode_io1_dm355_config/package.bld
> ./apps/video_encode_io_multich1/linux/video_encode_io_multich1_dm355_config/package.bld
> ./apps/video_loopback_copy/linux/video_loopback_copy_dm355_config/package.bld
> ./apps/video_loopback_resize/linux/video_loopback_resize_dm355_config/package.bld
> 
> have hardcoded the wrong path, here it is a snap of one of them:
> 
> var exeOpts = new Executable.Attrs({
>         cfgScript: 
> '/db/rtree/niclas/davinci_multimedia_application_interface/dmai/packages/ti/sdo/dmai/apps/video_loopback_copy/linux/video_loopback_copy_dm355.cfg',
>         profile: 'release',
>         cfgHome: 'video_loopback_copy_dm355_config',
> });
> 
> Ok, the question now is: am I doing something wrong or really are all 
> package.bld files bugged? Is there perhaps a way to regenerate all 
> package.bld ?
> ( dmai version is 1_20_00_06 )
> 
> thanks.

AFAIK, package.bld files are generated automatically. You need to
adjust makefiles for correct toolchains. I'm using OpenEmbedded for
DMAI builds. It has most of the patches necessary for building DMAI
and gstreamer-ti. I'm attaching most related patches here for your
reference. 1st one is from OE, 2nd one is mine local patch for
dm6446 builds.

Regards,
Caglar

______________________________________________________________________________


Index: dmai_1_20_00_06/packages/config.bld
===================================================================
--- dmai_1_20_00_06.orig/packages/config.bld    2009-02-11
19:38:51.000000000 -0600
+++ dmai_1_20_00_06/packages/config.bld 2009-02-11
19:39:23.000000000 -0600
@@ -42,7 +42,7 @@

 /* location of the Codec Sourcery Arm9 tools */
 var GCArmv5T = xdc.useModule('gnu.targets.arm.GCArmv5T');
-GCArmv5T.LONGNAME = 'bin/arm-none-linux-gnueabi-gcc';
+GCArmv5T.LONGNAME = 'bin/arm-angstrom-linux-gnueabi-gcc';
 GCArmv5T.platform = "ti.platforms.evm3530";
 GCArmv5T.rootDir = java.lang.System.getenv("CSTOOL_DIR");

Index: dmai_1_20_00_06/packages/ti/sdo/dmai/Makefile
===================================================================
--- dmai_1_20_00_06.orig/packages/ti/sdo/dmai/Makefile  2009-02-11
19:39:57.000000000 -0600
+++ dmai_1_20_00_06/packages/ti/sdo/dmai/Makefile       2009-02-11
19:58:05.000000000 -0600
@@ -33,7 +33,7 @@
 DMAI_INSTALL_DIR = ../../../..
 TARGET = dmai

-include $(DMAI_INSTALL_DIR)/Rules.make
+#include $(DMAI_INSTALL_DIR)/Rules.make

 # Should the full command be echoed to the console during build?
 VERBOSE=false
@@ -64,7 +64,7 @@
 MVL_CPP_FLAGS          = $(GNU_CPP_FLAGS) -Dxdc_target_name__=MVArm9
 CS_CPP_FLAGS           = $(GNU_CPP_FLAGS)
-Dxdc_target_name__=codesourcery/GCArmv5T

-GNU_C_FLAGS            = $(C_FLAGS) -Wall -Werror
+GNU_C_FLAGS            = $(C_FLAGS) -Wall
 C64P_C_FLAGS           = $(C_FLAGS)

 GNU_AR_FLAGS           = $(AR_FLAGS)
Index: dmai_1_20_00_06/packages/ti/sdo/dmai/apps/Makefile.app
===================================================================
--- dmai_1_20_00_06.orig/packages/ti/sdo/dmai/apps/Makefile.app
2009-02-11 19:58:44.000000000 -0600
+++ dmai_1_20_00_06/packages/ti/sdo/dmai/apps/Makefile.app
2009-02-11 19:59:01.000000000 -0600
@@ -34,7 +34,7 @@
 ifndef DMAI_INSTALL_DIR
     DMAI_INSTALL_DIR = ../../../../../..
 endif
-include $(DMAI_INSTALL_DIR)/Rules.make
+#include $(DMAI_INSTALL_DIR)/Rules.make

 # Should the full command be echoed to the console during build?
 VERBOSE=false

______________________________________________________________________________

BRIJESH_GIT_022309/davinci_multimedia_application_interface/dmai/packages/ti/sdo/dmai/apps/Makefile.app
2009-06-15 21:12:43.000000000 +0300
+++
BRIJESH_GIT_022309/davinci_multimedia_application_interface/dmai/packages/ti/sdo/dmai/apps/Makefile.app.mine
2009-06-15 21:49:00.000000000 +0300
@@ -359,7 +359,7 @@
        @echo ======== Building $(DM6446_AL_TARGET) ========
        @echo Configuring application using $<
        @echo
-       $(PRE) XDCPATH="$(XDC_PATH)" $(CONFIGURO) -c $(MVTOOL_DIR) -o
$(DM6446_AL_XDC_CFG) -t $(MVL_XDC_TARGET) -p
$(DM6446_AL_XDC_PLATFORM) -b $(CONFIG_BLD) $(DM6446_AL_XDC_CFGFILE)
+       $(PRE) XDCPATH="$(XDC_PATH)" $(CONFIGURO) -c $(MVTOOL_DIR) -o
$(DM6446_AL_XDC_CFG) -t $(CS_XDC_TARGET) -p
$(DM6446_AL_XDC_PLATFORM) -b $(CONFIG_BLD) $(DM6446_AL_XDC_CFGFILE)

 $(DM6467_AL_XDC_LFILE) $(DM6467_AL_XDC_CFLAGS):
$(DM6467_AL_XDC_CFGFILE)
        @echo


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

Reply via email to