I want to integrate one external library (libXXX.a) to dmai application video_encode_rtp(dmai_2_20_00_15/packages/ti/sdo/dmai/apps/video_encode_rtp, DVSDK4.02 ). What are the correct steps?
Here are the steps I did.
1. Copy libXXX.a and XXX.h to video_encode_rtp;
2. In the Makefile, Add the following line in the header:
LD_FLAGS = -lXXX -L .
3. The undefined reference errors still can be met when to build the application.
4. I manually added the followings in the auto-generated file linker.cmd and then the building is passed the executable binary can run correctly.
INPUT (
absolute_path/libXXX.a //the added line
...
)
I know the step 4 is a hack and the change is remove when clean and build all again. So I what to know what are the correct steps to integrate a external library into DMAI application.
Thanks a lot!