Hi,
I modify the mcfw demo in DVRRDK3.05 and bring in rtp send and receive. I use the ortp lib. So I need to modify the makefile for the mcfw demo. I go through the makerules and find that I just need to add something in DVRRDK_03.50.00.05\dvr_rdk\demos\mcfw_api_demos\mcfw_demo. I do as follows:
Add the include path -I/opt/ortp/include
INCLUDE+= -I$(KERNELDIR)/usr/include -I$(KERNELDIR)/arch/arm/include/ -I/opt/ortp/include
Add the lib path /opt/ortp/lib/libortp.so* -lortp
LIBS= $(LIB_DIR)/dvr_rdk_demo_mcfw_api.a $(MCFW_LIBS) $(AUDIO_LIBS) /opt/ortp/lib/libortp.so* -lortp
Then I do make -s dvr_rdk_linux_all to make the demo. I get the error below says that could not find -lortp. But I could use "arm-none-linux-gnueabi-gcc rtprecv.c -o rtprecv_arm -lortp -L/root/ortp/lib -I/root/ortp/include" to build app successfully. So, could someone know what's the problem? Do I place "-lortp" in the wrong place?
Thanks in advance! Appreciate for your reply!
# dvr_rdk_demo_mcfw_api: ti816x-evm: Creating archive dvr_rdk_demo_mcfw_api.a
# dvr_rdk_demo_mcfw_api: ti816x-evm: Linking
/home/bboy/arm-2009q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -lortp
collect2: ld returned 1 exit status
make[5]: *** [exe] 错误 1
make[4]: *** [apps] 错误 2
make[3]: *** [demo] 错误 2
make[2]: *** [libs] 错误 2
make[1]: *** [demo] 错误 2
make: *** [dvr_rdk_linux] 错误 2