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.

Compiler/TDA2EVM5777: Unable to use VxLIB API's

Part Number: TDA2EVM5777

Tool/software: TI C/C++ Compiler

Hi,

I am using VISION SDK 3.0 on SYSBIOS. I am working on TDA 2xx. By using VXLIB, I want to access functions of VXLIB in my algplugin (working on DSP C66x).

I made a change in tools_path.mk file (present in vision_sdk/build) -

line no. 130- VXLIB_PATH ?= $(TI_SW_ROOT)/algorithms/vxlib_c66x_1_1_0_0


I also made following changes in rule_66.mk (present in /vision_sdk/build/makerules) -


line no. 227 - LIB_PATHS += $(VXLIB_PATH)/packages/ti/vxlib/lib/vxlib.ae66
line no. 228 - LIB_PATHS += $(VXLIB_PATH)/packages/ti/vxlib/lib/vxlib_cn.ae66
line no. 229 - LIB_PATHS += $(VXLIB_PATH)/packages/ti/vxlib/lib/common.lib

I also added following lines in env.mk (present in /vision_sdk/build/rtos/makerules) -

- vxlib_INCLUDE = $(VXLIB_PATH)/packages
- export vxlib_INCLUDE

I added "vxlib" to INCLUDE_EXTERNAL_INTERFACES in the Makefile(vision_sdk/apps/src/rtos/alg_plugins).

After making these changes, I added the function to be used in my alg_plugin(dmaSwMS). I have also included header file in #include<ti/vxlib.h>. But I am getting following error -

# Compiling tda2xx-evm:ipu1_0:release:app_alg_plugins: dmaSwMs/dmaSwMsLink_algPlugin.c
"/home/lenovo/Documents/Project/Software/y/y/ti_components/algorithms/vxlib_c66x_1_1_0_0/packages/ti/vxlib/src/vx/VXLIB_absDiff_i16s_i16s_o16s/VXLIB_absDiff_i16s_i16s_o16s.h", line 86: fatal error: #error directive: invalid target
1 catastrophic error detected in the compilation of "dmaSwMs/dmaSwMsLink_algPlugin.c".
Compilation terminated.

>> Compilation failure
/home/lenovo/Documents/Project/Software/y/y/vision_sdk/build/rtos/makerules/rules_m4.mk:164: recipe for target '/home/lenovo/Documents/Project/Software/y/y/vision_sdk/binaries/apps/tda2xx_evm_bios_all/obj/app_alg_plugins/tda2xx-evm/m4/release/dmaSwMsLink_algPlugin.oem4' failed
make[5]: *** [/home/lenovo/Documents/Project/Software/y/y/vision_sdk/binaries/apps/tda2xx_evm_bios_all/obj/app_alg_plugins/tda2xx-evm/m4/release/dmaSwMsLink_algPlugin.oem4] Error 1
/home/lenovo/Documents/Project/Software/y/y/vision_sdk/build/rtos/makerules/common.mk:235: recipe for target 'ipu1_0' failed
make[4]: *** [ipu1_0] Error 2
MAKEFILE.MK:9: recipe for target 'libs' failed
make[3]: *** [libs] Error 2
Makefile:180: recipe for target 'app_alg_plugins' failed
make[2]: *** [app_alg_plugins] Error 2
Makefile:35: recipe for target 'apps' failed
make[1]: *** [apps] Error 2
Makefile:12: recipe for target 'vision_sdk' failed
make: *** [vision_sdk] Error 2


Please help me , I am not able to the reason of error.


Regards,
Khilav