我在编译dvsdk_dm3730_4_02_00_06/codec-engine_2_26_02_11/examples/ti/sdo/ce/examples/apps时,出现如下错误:
package/cfg/bin/ti_platforms_evm3530/app_remote/app.ov5T: In function `encode':
app.c:(.text+0x70): undefined reference to `SPHENC1_control'
app.c:(.text+0xf8): undefined reference to `SPHENC1_process'
package/cfg/bin/ti_platforms_evm3530/app_remote/app.ov5T: In function `smain':
app.c:(.text+0x2b4): undefined reference to `SPHENC1_create'
app.c:(.text+0x2d0): undefined reference to `SPHENC1_delete'
collect2: ld returned 1 exit status
gmake[1]: *** [bin/ti_platforms_evm3530/app_remote.xv5T] Error 1
我发现SPHENC1_control函数有定义在dvsdk_dm3730_4_02_00_06/codec-engine_2_26_02_11/packages/ti/sdo/ce/speech1/目录下的sphenc1.h头文件中,
而/examples/ti/sdo/ce/examples/apps目录下的应用程序app.c文件确实也有#include <ti/sdo/ce/speech1/sphenc1.h>
为什么还报错,是不是编译器没有搜到该目录下呢?我该如何设置呢?
app.c:(.text+0x70): undefined reference to `SPHENC1_control'
lin liu4:
我修改了
codec-engine_2_26_02_11/examples/xdcpaths.mak,中的 GPPOS := LINUX_uClibc,后可以编译通过,不知道这样对不对?