Hi,
I am trying to test VLIB with C6Run since in the FAQ it's affirmative.
What I did is to modify the Pi example a bit:
#include <VLIB_prototypes.h>
const short coeff[] = { 0x2000, 0x2BDD, -0x0AC5, -0x1658, 0x3770 };
double pi_calc(long int num_elements, unsigned char *yuv, int nPix)
{
,,,,
VLIB_convertUYVYint_to_RGBpl(yuv, nPix, 2*nPix, nPix, coeff, r, g, b);
.....
}
And then modify the makefile by adding
CINCLUDES = -I some directory/include
and
$(C6RUN_AR) $(C6RUN_ARFLAGS) pi_dsp.lib dsp_lib/pi_calc.o vlib.l64p
The C6run_cc is good, but C6run_ar shows that it can't find vlib.lib ever though the directory is right.
Console output:
/home/user/ti-ezsdk_dm814x-evm_5_03_01_15/component-sources/C6Run_0_98_03_03/bin/c6runlib-ar rcs --C6Run:no_replace_malloc pi_dsp.lib dsp_lib/pi_calc.o vlib.l64p
undefined first referenced
symbol in file
--------- ----------------
VLIB_convertUYVYint_to_RGBpl dsp_lib/pi_calc.o
error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "pi_dsp.lib.dsp_image.out" not built
Questions: Did I miss something? I use both the vlib.lib from C6Accel and a direct copy from vlib zip. ( I suppose they are the same)
Thanks a lot.