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.

Codec Engine Question

Hi I have linked into the XDC and have added all the paths by using the encode_decode example.  But when I call Engine_open, I get the following error:

undefined reference to `Engine_open'

I have included the following headers

#include <xdc/std.h>
#include <ti/sdo/ce/Engine.h>
#include <ti/sdo/ce/osal/Memory.h>
#include <ti/sdo/ce/video1/videnc1.h>

I assume this is a problem with me not linking a library file correctly.  Does anyone know what I need to do?

Thanks in advance.

  • Please read through this article - the Codec Engine uses the build types defined by the  XDC tools, and this shows how to integrate this into your build:
    http://rtsc.eclipse.org/docs-tip/Consuming_Configurable_Content/makefiles

    Fundamentally, you need to add the _generated_ linker.cmd libraries to your link line.  (Just as you must have added the generated compiler.opt options to your compile line.)  That linker.cmd should include the libs which will resolve these symbols.

    Chris

  • I followed the make file example that was on the link.  And I am getting the following error when running make

    do I have to set another path?

     

    Error:

    XDCPATH="/localhome/administrator/dvsdk_1_30_00_40/framework_components_2_00_01/packages; /localhome/administrator/dvsdk_1_30_00_40/codec_engine_2_00_01/packages; /localhome/administrator/dvsdk_1_30_00_40/dm355_codecs_1_12_000/packages; /localhome/administrator/dvsdk_1_30_00_40/dsplink_140-05p1/packages; /localhome/administrator/dvsdk_1_30_00_40/xdais_6_00_01/packages; /cmem_2_00_01/packages;" /localhome/administrator/dvsdk_1_30_00_40/xdc_3_00_02/xs xdc.tools.configuro -c /opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le -o securitycamera_config -t gnu.targets.MVArm9 -p ti.platforms.evmDM6446 securitycamera.cfg
    making package.mak (because of package.bld) ...
    generating interfaces for package securitycamera_config (because package/package.xdc.xml is older than package.xdc) ...
    configuring securitycamera.x470MV from package/cfg/securitycamera_x470MV.cfg ...
    js: "/localhome/administrator/dvsdk_1_30_00_40/xdc_3_00_02/packages/xdc/xdc.tci", line 270: exception from uncaught JavaScript throw: Error: xdc.loadPackage: can't find package 'ti.sdo.ce.osal' along the path '/localhome/administrator/dvsdk_1_30_00_40/framework_components_2_00_01/packages;/localhome/administrator/workdir/filesys/opt/SecurityCamera/ /localhome/administrator/dvsdk_1_30_00_40/codec_engine_2_00_01/packages;/localhome/administrator/workdir/filesys/opt/SecurityCamera/ /localhome/administrator/dvsdk_1_30_00_40/dm355_codecs_1_12_000/packages;/localhome/administrator/workdir/filesys/opt/SecurityCamera/ /localhome/administrator/dvsdk_1_30_00_40/dsplink_140-05p1/packages;/localhome/administrator/workdir/filesys/opt/SecurityCamera/ /localhome/administrator/dvsdk_1_30_00_40/xdais_6_00_01/packages;/localhome/administrator/workdir/filesys/opt/SecurityCamera/ /cmem_2_00_01/packages;/localhome/administrator/dvsdk_1_30_00_40/xdc_3_00_02/packages;/localhome/administrator/dvsdk_1_30_00_40/xdc_3_00_02/packages;/localhome/administrator/workdir/filesys/opt/SecurityCamera/securitycamera_config/./..;'; try redefining the package path (XDCPATH).
        "/localhome/administrator/dvsdk_1_30_00_40/xdc_3_00_02/packages/xdc/xdc.tci", line 450
        "/localhome/administrator/dvsdk_1_30_00_40/xdc_3_00_02/packages/xdc/cfg/Main.xs", line 1326
        "/localhome/administrator/workdir/filesys/opt/SecurityCamera/securitycamera.cfg", line 9
        "/localhome/administrator/dvsdk_1_30_00_40/xdc_3_00_02/include/utils.tci", line 588
        "/localhome/administrator/dvsdk_1_30_00_40/xdc_3_00_02/include/utils.tci", line 506
        "./package/cfg/securitycamera_x470MV.cfg", line 384
        "./package/cfg/securitycamera_x470MV.cfg", line 341
        "/localhome/administrator/dvsdk_1_30_00_40/xdc_3_00_02/packages/xdc/cfg/Main.xs", line 182
        "/localhome/administrator/dvsdk_1_30_00_40/xdc_3_00_02/packages/xdc/cfg/Main.xs", line 151
        "/localhome/administrator/dvsdk_1_30_00_40/xdc_3_00_02/packages/xdc/xs.js", line 144
    gmake: *** [package/cfg/securitycamera_x470MV.c] Error 1
    make: *** [securitycamera_config/compiler.opt] Error 2

  • Do I spy a few space characters in your path (often right after ".../SecurityCamera/ ")?  That's a semi-colon delimited path, if there's an accidental space char, that might cause problems.

    Chris

  • Hi,

    thanks  for the help!