Hi,
I am working on a (C674 DSP [dm8168]) Codec Server for an image processing application. Through package.xs file I'm including c64plus imglib as follows,
/*
* ======== getLibs ========
*/
function getLibs(prog)
{
var lib = null;
if (prog.build.target.isa == "674") {
lib = "imglib/imglib2_elf.lib";
print(" will link with " + this.$name + ":" + lib);
}
return (lib);
}
The codec built without error, and server seems to do the work as well:
manageIpc = true
Heap: ti.sysbios.heaps.HeapMem
will link with devcodec.sobel:imglib/imglib2_elf.lib
rm -f package/cfg/bin/ti_platforms_evmTI816X/all_DSP_pe674.oe674
#
# cle674 package/cfg/bin/ti_platforms_evmTI816X/all_DSP_pe674.c ...
Now, to include imglib under getLibs(prog) I had to get rid of the (xdc configuro) autogenerated package.xs that has the following:
function getLibs(prog)
{
var name = "";
var suffix = "";
if ("findSuffix" in prog.build.target) {
suffix = prog.build.target.findSuffix(this);
if (suffix == null) {
/* no matching lib found in this package, return "" */
return ("");
}
} else {
suffix = prog.build.target.suffix;
}
/* And finally, the location of the libraries are in lib/<profile>/* */
name = "lib/" + this.profile + "/sobel.a" + suffix;
return (name);
}
The problem is that server build crashes due to unresolved symbols:
6740_elf.lib --compress_dwarf
warning: creating output section ".plt" without a SECTIONS specification
undefined first referenced
symbol in file
--------- ----------------
SOBEL_DEVCODEC_ISOBEL package/cfg/bin/ti_platforms_evmTI816X/all_DSP_pe674.oe674
error: unresolved symbols remain
warning: entry-point symbol other than "_c_int00" specified:
"ti_sysbios_family_c64p_Hwi0"
Seems that the original package.xs has the SOBEL_DEVCODEC_ISOBEL definition for the build, but I DONT know how to MERGE the package.xs lib definitions to do the both tasks: define the current SOBEL_DEVCODEC_ISOBEL interface for the codec and include the image library. Can someone help on this and check if i am getting the procedure right?, sorry for the long post. - Thanks
- Jose L.