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.

Build errors while using codec engine examples with custom DSP library

Hi,

               We are trying to work with videodec_copy in codec engine examples. When we are building the codecs for videodec_copy it is generating " viddec_copy.a64P, viddec_copy.a64P.mak, viddec_copy.av5T, viddec_copy.av5T.mak ". Then we are building the servers and then the application, it is working fine.

               We took the same source files present in viddec_copy to CCS and generated the viddec_copy.a64P and by placing that in codecs/lib folder it is working fine.

The probem is........

               We are not able to generate " viddec_copy.a64P.mak, viddec_copy.av5T, viddec_copy.av5T.mak " in CCS. When we give the CCS generated library in codecs lib replacing the original one it is working fine but when we remove viddec_copy.av5T we are geting error while bulding the applicaion.  We are getting the following error generated while building apps folder..

 

Info: Configuring engine named 'video_copy' from the info file for DSP server './video_copy.x64P',
          located in package 'ti.sdo.ce.examples.servers.video_copy.evm3530':
      Target app will look for the DSP server image 'video_copy.x64P' in its current directory.
      Adding codec 'viddec_copy' (ti.sdo.ce.examples.codecs.viddec_copy.VIDDEC_COPY), scratch groupId=0
      Adding codec 'videnc_copy' (ti.sdo.ce.examples.codecs.videnc_copy.VIDENC_COPY), scratch groupId=0
Info: Reading DSP memory map from the info file for DSP server './video_copy.x64P',
      located in package 'ti.sdo.ce.examples.servers.video_copy.evm3530':
ti.sdo.ce.examples.codecs.videnc_copy.close() ...
    will link with ti.sdo.ce.examples.codecs.videnc_copy:lib/videnc_copy.av5T
    will link with ti.sdo.ce.examples.codecs.viddec_copy:lib/viddec_copy.av5T
js: "/home/omap/dvsdk_3_00_00_29/xdctools_3_10_03/packages/xdc/cfg/Main.xs", line 28: XDC runtime error: can't find the library 'lib/viddec_copy.av5T' specified by package ti.sdo.ce.examples.codecs.viddec_copy. It wasn't found along the path '/home/omap/dvsdk_3_00_00_29/codec_engine_2_20_01/examples;/home/omap/dvsdk_3_00_00_29/codec_engine_2_20_01/packages;/home/omap/dvsdk_3_00_00_29/xdais_6_20/packages;/home/omap/dvsdk_3_00_00_29/local_power_manager_1_20_01/packages;/home/omap/dvsdk_3_00_00_29/dsplink_1.51/packages;/home/omap/dvsdk_3_00_00_29/linuxutils_2_20/packages;/home/omap/dvsdk_3_00_00_29/framework_components_2_20_01/packages;/home/omap/dvsdk_3_00_00_29/biosutils_1_01_00/packages;/home/omap/dvsdk_3_00_00_29/bios_5_32_04/packages;/home/omap/dvsdk_3_00_00_29/xdctools_3_10_03/packages;/home/omap/dvsdk_3_00_00_29/xdctools_3_10_03/packages;..;'.
gmake: *** [package/cfg/ceapp_xv5T.c] Error 1
gmake: *** Deleting file `package/cfg/ceapp_xv5T.c'
gmake: *** [package/cfg/ceapp_xv5T.c] Deleting file `package/cfg/ceapp_xv5T.xdl'
gmake: *** [package/cfg/ceapp_xv5T.c] Deleting file `package/cfg/ceapp_xv5T.h'
js: "/home/omap/dvsdk_3_00_00_29/xdctools_3_10_03/packages/xdc/tools/Cmdr.xs", line 40: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.

 

Why we need this viddec_copy.av5T ?

 

Thanks and Regards,

Bharath.M

  • I updated this article to add details about what you're seeing:

    http://tiexpressdsp.com/index.php?title=Codec_Engine_FAQ#Why_does_my_GPP-side_application_try_.28and_fail.21.29_to_link_in_a_DSP-side_library

    If you're modifying the viddec_copy example package to only provide a C64P lib (i.e. viddec_copy.a64P), it shouldn't return a library for any other target, so it's getLibs() fxn will need to be modified - an example is provided at the article above.

    Chris

  • Hi,

    Thanks a lot for you help.

    After modifying package.xs only for .a64P , I could build servers and codecs sucessfully.

    But when i try to run application.. (..apps/video_copy/dualcpu/evm3530) , it is throwing the following error :

    XDCPATH="/home/omap/dvsdk_3_00_00_29/codec_engine_2_20_01/examples/ti/sdo/ce/examples/apps/video_copy/dualcpu/evm35         30/../../../../../../../..;/home/omap/dvsdk_3_00_00_29/codec_engine_2_20_01/packages;/home/omap/dvsdk_3_00_00_29/xd         ais_6_20/packages;/home/omap/dvsdk_3_00_00_29/local_power_manager_1_20_01/packages;/home/omap/dvsdk_3_00_00_29/dspl         ink_1.51/packages;/home/omap/dvsdk_3_00_00_29/linuxutils_2_20/packages;/home/omap/dvsdk_3_00_00_29/framework_compon         ents_2_20_01/packages;/home/omap/dvsdk_3_00_00_29/biosutils_1_01_00/packages;/home/omap/dvsdk_3_00_00_29/bios_5_32_         04/packages" /home/omap/dvsdk_3_00_00_29/xdctools_3_10_03/xs xdc.tools.configuro -c /home/omap/toolchain/arm-2007q3          -o ceapp \
                    -t gnu.targets.arm.GCArmv5T -p ti.platforms.evm3530 \
                    -b /home/omap/dvsdk_3_00_00_29/codec_engine_2_20_01/examples/ti/sdo/ce/examples/apps/video_copy/dua         lcpu/evm3530/../../../../../../../../config.bld ceapp.cfg
    making package.mak (because of package.bld) ...
    config.bld: Running the version from Codec Engine Examples.
    config.bld: loading user build configuration file /home/omap/dvsdk_3_00_00_29/codec_engine_2_20_01/examples/user.bl         d
    js: "/home/omap/dvsdk_3_00_00_29/xdctools_3_10_03/packages/gnu/targets/ITarget.xs", line 227: xdc.services.global.X         DCException: gnu.targets.UNDEFINED_EXECUTABLE: 'LONGNAME' must be defined for the target gnu.targets.arm.GCArmv5T
        "./package.bld", line 62
    gmake: *** [package.mak] Error 1
    gmake: *** Deleting file `package.mak'
    js: "/home/omap/dvsdk_3_00_00_29/xdctools_3_10_03/packages/xdc/tools/Cmdr.xs", line 40: Error: xdc.tools.configuro:          configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
    gmake: *** [ceapp/compiler.opt] Error 1

    I would like to build my application on ARM and library completely on DSP.

    Can you please suggest me where can i modify to run my library on DSP and application on ARM.

     

     

  • Check your XDCtools version, and also examples/user.bld.  In Codec Engine 2.23.01 (and also 2.22), the published examples/user.bld set the target's LONGNAME when its name is "GCArmv5T"; this works for me with XDCtools 3.10.03.