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.

undefined reference to 'CERuntime_init'



Hi,

 

I use the DVSDK 3.10.00.16 and want to build my own CE based application. So I use the makefiles in the examples directory as a reference for the build process. My application code is very small:

 

#include <xdc/std.h>

#include <ti/sdo/ce/CERuntime.h>

#include <stdio.h>

 

int main(void) {

CERuntime_init();

printf("Hello\n");

CERuntime_exit();

return 0;

}

 

My .cfg file (local.cfg) looks like this:

var osalGlobal = xdc.useModule('ti.sdo.ce.osal.Global');

osalGlobal.runtimeEnv = osalGlobal.LINUX;

 

And finally my config.bld:

var GCArmv5T = xdc.useModule('gnu.targets.arm.GCArmv5T');

GCArmv5T.LONGNAME = "bin/arm-none-linux-gnueabi-gcc";

GCArmv5T.rootDir = "/opt/arm-2009q1";

Build.targets.$add(GCArmv5T);

 

As makefile I use the example makefile in the "CE/examples/ti/sdo/ce/examples/apps/video_copy/configuro" directory with little modifications. The compilation seems to be successfull, but the linker displays 2 errors:

undefined reference to 'CERuntime_init'

undefined reference to 'CERuntime_exit'

 

In the linker.cmd file created by configuro are 6 object files, but no one seem to include CERuntime_init or CERuntime_exit:

.../local_xv5T.ov5T (in my working directory)

.../codec_engine_2_25_01_06/.../ipc_linux.av5T

.../codec_engine_2_25_01_06/.../osal_linux_470.av5T

.../framework_components_2_25_01_05/.../gt.av5T

.../linuxutils_2_25_01_06/.../cmem.a470MV

.../xdctools_3_16_01_27/.../gnu.targets.arm.rtsv5T.av5T

 

Do I have to make additional configurations (e.g. in the .cfg file) to build this tiny app successful?

 

Regards,

 

Matthias

  • Problem solved! I simply added

    var Engine = xdc.useModule('ti.sdo.ce.Engine');

    in my local.cfg file and the linking worked correctly. Didn't know that for an application without "Engine" I have to add the Engine module anyway.

     

    Regards,

     

    Matthias