\u547d\u4ee4<\/a>\u5bf9\u5176\u89e3\u538b\u7f29\uff1a<\/p>\n#cd\/tmp<\/p>\n
#tar-zxvfjrtplib-2.8.tar<\/p>\n
\u4e4b\u540e\u8981\u5bf9jrtplib\u8fdb\u884c\u914d\u7f6e\u548c\u7f16\u8bd1<\/p>\n
#cdjrtplib-2.8<\/p>\n
#.\/configureCC=arm-linux-g++cross-compile=yes<\/p>\n
\u66f4\u6539Makefile\u6587\u4ef6<\/p>\n
\u5c06\u94fe\u63a5\u547d\u4ee4ld\u548car\u6539\u4e3aarm-linux-ld\u548carm-linux-ar<\/p>\n
#make<\/p>\n
\u6700\u540e\u518d\u6267\u884c\u5982\u4e0b\u547d\u4ee4\u5c31\u53ef\u4ee5\u5b8c\u6210JRTPLIB\u7684\u5b89\u88c5\uff1a<\/p>\n
#makeinstall<\/p>\n
(3)\u7a0b\u5e8f\u7f16\u8bd1<\/p>\n
a\u3001\u914d\u7f6e\u7f16\u8bd1\u73af\u5883<\/p>\n
<\/p>\n
\u53ef\u4ee5\u7528export\u6765\u914d\u7f6e\u5317\u4eaclinux\u57f9\u8bad\uff0c\u4e5f\u53ef\u4ee5\u7528\u7f16\u64b0Makefile\u7684\u65b9\u5f0f\u3002\u8fd9\u513f\u91c7\u7528Makefile\u3002<\/p>\n
\u7f16\u64b0Makefile&:<\/p>\n
INCL=-I\/usr\/local\/include<\/p>\n
CFLAGS=-pipe-O2-fno-strength-reduce<\/p>\n
LFLAGS=\/usr\/local\/lib\/libjrtp.a-L\/usr\/X11R6\/lib<\/p>\n
LIBS=-LX11-LXext\/usr\/local\/lib\/libjrtp.a<\/p>\n
CC=arm-linux-g++<\/p>\n
main:main.o<\/p>\n
$(CC)$(LFLAGS)$(INCL)-omainmain.o$(LIBS)<\/p>\n
main.o:main.cpp<\/p>\n
clean:<\/p>\n
rm-fmain<\/p>\n
rm-f*.o<\/p>\n
.SUFFIXES:.cpp<\/p>\n
.cpp.o:<\/p>\n
$(CC)-c$(CFLAGS)$(INCL)-o$@$GetPayloadLength();<\/p>\n
RawData=packet->GetPayload();<\/p>\n
for(i=0;i<\/p>\n
temp[i]=RawData[i];<\/p>\n
printf(\"%c\",temp[i]);<\/p>\n
temp[i]='';<\/p>\n
printf(\"timestamp:%dlengh=%ddata:%sn\",timestamp1,lengh,&temp);<\/p>\n
\/\/\u5220\u6389RTP\u6570\u636e\u62a5<\/p>\n
deletepacket;<\/p>\n
}while(sess.GotoNextSourceWithData());<\/p>\n
}while(1);<\/p>\n
return0;<\/p>\n","protected":false},"excerpt":{"rendered":"
\u662f\u8fdb\u884c\u5b9e\u65f6\u6d41\u5a92\u4f53\u4f20\u8f93\u7684\u6807\u51c6\u534f\u8bae\u548c\u5173\u952e\u6280\u672f\u5e93\u7684\u4f7f\u7528\u65b9\u6cd5\u53ca\u7a0b\u5e8f\u5b9e\u73b0\u4e0b\u9762\u662f\u91c7\u7528\u7b2c\u4e09\u79cd\u63a5\u6536\u6a21\u5f0f\u7684\u7a0b\u5e8f\u793a\u4f8b\u3002\u4e0b\u8f7d\u6700\u65b0\u7684\u6e90\u7801\u5305\uff0c\u6b64\u5904\u4f7f\u7528\u7684\u662fjrtplib-2.8.tar\uff0c\u5047\u8bbe\u4e0b\u8f7d\u540e\u7684\u6e90\u7801\u5305\u653e\u5728\/tmp\u4e0b\uff0c\u6267\u884c\u4e0b\u9762\u7684\u547d\u4ee4\u5bf9\u5176\u89e3\u538b\u7f29\uff1a\u53ef\u4ee5\u7528export\u6765\u914d\u7f6e\uff0c\u4e5f\u53ef\u4ee5\u7528\u7f16\u5199Makefile\u7684\u65b9\u6cd5\u3002<\/p>\n","protected":false},"author":1,"featured_media":295063,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[5023,5021,5022,5024,3290],"class_list":["post-295062","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-dmtsjl","tag-sslmtcs","tag-bzxy","tag-cxsl","tag-wlxy"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/295062","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=295062"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/295062\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/295063"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=295062"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=295062"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=295062"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}