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.

如何在omx中添加lib库



我用的是omx_05_02_00_46,我想用omx下的例子c6xtest调用自己生成的lib库。我的做法是把lib库拷贝到omx文件夹下,

在/../omx_05_02_00_46/makerules下的rules_c674.mk中添加lib所在路径:

RTSLIB_PATH = $(CODEGEN_PATH)/lib/rts6740$(RTSLIB_ENDIAN)$(RTSLIB_FORMAT).lib
LIB_PATHS += $(RTSLIB_PATH)
LIB_PATHS += $(EXTLIBS_$(CORE))

LIB_PATHS += $(omx_PATH)/ti/omx/comp/test/lib/c6xdsp/debug/test.lib  

蓝色部分是我添加的,其中test.lib是我用ccs5.2生成的elf格式的lib库。

然后我把头文件test.h放在在/omx_05_02_00_46/src/ti/omx/domx下,然后在OmxRpcSkel.c中包含头文件#include"test.h",然后调用test.lib库的接口函数,

编译的时候显示-l/home/DM8168/component-sources/omx_05_02_00_46/src/ti/omx/comp/test/lib/c6xdsp/debug/test.lib,但是接口函数显示没定义出错

undefined reference to `TestFunc'。

      test.lib的后缀我改成test.ae674、test.l64P后编译结果还是如上。我在/home/DM8168/component-sources/omx_05_02_00_46/examples/ti/omx/demos/dm81xx中的makefile中添加:

EXTLIBS_c6xdsp = $(omx_PATH)/ti/omx/omxutils/lib/debug/omxutils.ae674 \
                 $(omx_PATH)/ti/omx/comp/omxbase/lib/c6xdsp/debug/omxbase.ae674 \
                 $(omx_PATH)/ti/omx/comp/omxbase/lib/c6xdsp/debug/omxbase_cfg.oe674 \
                $(omx_PATH)/ti/omx/comp/test/lib/c6xdsp/debug/test.lib

编译结果也是如上,请问该怎么在omx中添加自己用ccs5.2生成的lib库?