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.
所修改的DMAI例程路径如下:dvsdk_dm3730_402\dmai_2_20_00_15\packages\ti\sdo\dmai\apps\video_encode_io1,修改该路径下的appMain.c
按照手册 C6Accel_Reference_guide.pdf 在appMain.c中增加如下代码:
#include <ti/c6accel/iC6accel_ti.h>
/*Define a C6Accel Handle to call the abstracted wrapper APIs*/
C6accel_Handle hC6 = NULL;
/* Create call generates a C6ACCEL handle */
hC6 = C6accel_create(args->engineName, NULL,"c6accel", NULL);
/*Check for failure*/
if ( hC6 == NULL)
{
printf("c6accel create failed ! \n");
cleanup();
}
else
printf("c6accel create is ok !! \n");
/* Set C6Accel instance for synchronous call*/
C6Accel_setSync(hC6);
提示找不到头文件 ti/c6accel/iC6accel_ti.h,具体error Log 如下:
Compiling appMain.dm3730.o470MV from appMain.c..
appMain.c:63:36: error: ti/c6accel/iC6accel_ti.h: No such file or directory
appMain.c:89: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'hC6'
appMain.c: In function 'appMain':
appMain.c:379: error: 'hC6' undeclared (first use in this function)
appMain.c:379: error: (Each undeclared identifier is reported only once
appMain.c:379: error: for each function it appears in.)
cc1: warnings being treated as errors
appMain.c:379: error: implicit declaration of function 'C6accel_create'
appMain.c:390: error: implicit declaration of function 'C6Accel_setSync'
make[3]: *** [appMain.dm3730.o470MV] Error 1
make[2]: *** [video_encode_io1/] Error 2
make[2]: Leaving directory `/usr/local/dvsdk/dvsdk_dm3730_402/dmai_2_20_00_15/packages/ti/sdo/dmai/apps'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/local/dvsdk/dvsdk_dm3730_402/dmai_2_20_00_15'
make: *** [dmai] Error 2
请问该如何添加头文件呢,头文件包含路径该在哪里配置呢,或是有其他可以使用c6accel Engine的方法,请高人指教,不甚感激啊!