{"id":991,"date":"2022-02-27T17:08:25","date_gmt":"2022-02-27T09:08:25","guid":{"rendered":"https:\/\/www.xianwaizhiyin.net\/?p=991"},"modified":"2023-11-21T19:52:23","modified_gmt":"2023-11-21T11:52:23","slug":"srs4-0%e6%ba%90%e7%a0%81%e5%88%86%e6%9e%90-configure","status":"publish","type":"post","link":"https:\/\/www.xianwaizhiyin.net\/?p=991","title":{"rendered":"SRS4.0\u6e90\u7801\u5206\u6790-configure"},"content":{"rendered":"\n<p><strong>\u300a<a href=\"https:\/\/srs.xianwaizhiyin.net\">SRS\u539f\u7406<\/a>\u300b\u4e0a\u67b6\u4e86\uff0c\u6df1\u5ea6\u5256\u6790 SRS \u6e90\u4ee3\u7801\uff0c\u8bbf\u95ee\u5730\u5740\uff1asrs.xianwaizhiyin.net<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>\u672c\u6587\u91c7\u7528\u7684 SRS \u7248\u672c\u662f 4.0-b8 \uff0c \u4e0b\u8f7d\u5730\u5740\uff1a<a href=\"https:\/\/github.com\/ossrs\/srs\/releases\/tag\/v4.0-b8\">github<\/a><\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<p><a href=\"https:\/\/www.xianwaizhiyin.net\/?p=958\">SRS4.0\u6e90\u7801\u5206\u6790-CMake<\/a> \u8bb2\u4e86 SRS \u5728 <code class=\"prettyprint\" >Clion<\/code> \u91cc\u9762\u7684\u8c03\u8bd5 \u4e2d\u4f7f\u7528\u7684CMake \u7684\u903b\u8f91\u3002\u4f46\u662f\u5b9e\u9645\u7f16\u8bd1\u7684\u65f6\u5019\uff0c\u901a\u5e38 \u4f7f\u7528 configure \u8ddf makefile\u3002<\/p>\n\n\n\n<p><strong>\u5bf9\u4e8e\u4e00\u4e2a \u5f00\u6e90\u9879\u76ee\u6765\u8bf4\uff0c\u7406\u89e3\u4e86 configure \u8ddf makefile \uff0c\u57fa\u672c\u4e0a\u5c31\u7406\u89e3\u4e86\u8fd9\u4e2a\u5f00\u6e90\u9879\u76ee\u768450%\u3002<\/strong><\/p>\n\n\n\n<p>\u4f55\u65f6\u9605\u8bfb configure \u8ddf makefile \uff1f\u8fd9\u4e2a\u95ee\u9898\u4e0d\u597d\u8bf4\uff0c\u6211\u770b\u5f00\u6e90\u9879\u76ee\uff0c\u6709\u65f6\u5019\u662f\u8c03\u8bd5\uff0c\u7406\u89e3\u5b8c\u4ed6\u7684\u5927\u90e8\u5206\u4ee3\u7801\u903b\u8f91\uff0c\u624d\u5f00\u59cb\u770b configure \u8ddf makefile \uff0c\u56e0\u4e3a\u6709\u4e9b\u7f16\u8bd1\u903b\u8f91 \u8ddf \u529f\u80fd\u4ee3\u7801 \u6709\u5173\u3002<\/p>\n\n\n\n<p>\u6709\u65f6\u5019\u6211\u662f\u4e00\u5f00\u59cb\u5c31\u770b configure \u8ddf makefile \u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<p>\u5f00\u59cb \u5206\u6790 SRS \u7684 configure \u6587\u4ef6\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"prettyprint\" >#!\/bin\/bash\n\u200b\n#####################################################################################\n# the main output dir, all configure and make output are in this dir.\n#####################################################################################\n# create the main objs\nSRS_WORKDIR=&quot;.&quot;\nSRS_OBJS_DIR=&quot;objs&quot;\nSRS_OBJS=&quot;${SRS_WORKDIR}\/${SRS_OBJS_DIR}&quot;\nSRS_MAKEFILE=&quot;Makefile&quot;\n\u200b\n# linux shell color support.\nRED=&quot;\\\\033&#091;31m&quot;\nGREEN=&quot;\\\\033&#091;32m&quot;\nYELLOW=&quot;\\\\033&#091;33m&quot;\nBLACK=&quot;\\\\033&#091;0m&quot;<\/code><\/pre>\n\n\n\n<p>\u4e0a\u9762\u7684\u4ee3\u7801\uff0c\u662f\u8bbe\u7f6e\u5404\u79cd\u76ee\u5f55\uff0c\u4ee5\u53ca \u63d0\u793a\u989c\u8272\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>google_ads_content<\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"prettyprint\" >#####################################################################################\n# parse user options, set the variables like:\n# srs features: SRS_SSL\/SRS_HLS\/SRS_HTTP_CALLBACK\/......\n# build options: SRS_JOBS\n#####################################################################################\n# parse options, exit with error when parse options invalid.\n. auto\/options.sh\n\u200b\n# setup variables when options parsed.\n. auto\/setup_variables.sh<\/code><\/pre>\n\n\n\n<p>\u4e0a\u9762\u7684\u4ee3\u7801\u8c03\u7528\u4e86 \u4e24\u4e2a shell \u811a\u672c\uff0c\u662f\u89e3\u6790 \u547d\u4ee4\u53c2\u6570\u7684 \uff0c\u4f8b\u5982 <code class=\"prettyprint\" >configure --jobs=16<\/code> \uff0c<code>jobs<\/code> \u5c31\u662f\u547d\u4ee4\u53c2\u6570\uff0c<code>options.sh<\/code> \u8ddf <code>setup_variables.sh<\/code> \u662f\u628a\u8fd9\u4e2a\u53c2\u6570\u89e3\u6790\u6210 shell \u53d8\u91cf<\/p>\n\n\n\n<p><code class=\"prettyprint\" >options.sh<\/code> \u8ddf <code>setup_variables.sh<\/code> \u81ea\u884c\u9605\u8bfb\u5373\u53ef\uff0c\u6bd4\u8f83\u7b80\u5355\u3002SRS \u7684 \u547d\u4ee4\u884c\u53c2\u6570 parse \u6bd4\u8f83\u7b80\u5355\uff0c\u662f\u76f4\u63a5\u5168\u5339\u914d\u5b57\u7b26\u4e32\uff0c\u4e0d\u50cf FFmpeg \u90a3\u4e48\u590d\u6742\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"prettyprint\" ># We don&#039;t need to cleanup the exists files.\nrm -f ${SRS_WORKDIR}\/${SRS_MAKEFILE}\n\u200b\n# create objs\nmkdir -p ${SRS_OBJS}\/${SRS_PLATFORM}\n\u200b\n# apply user options.\n. auto\/depends.sh\n\u200b\n# the auto generated variables.\n. auto\/auto_headers.sh<\/code><\/pre>\n\n\n\n<p>\u518d\u6b21 \u6267\u884c \u4e24\u4e2a shell \u811a\u672c <code class=\"prettyprint\" >depends.sh<\/code> \u8ddf <code>auto_headers.sh<\/code>\u3002<\/p>\n\n\n\n<p>\u5148\u5206\u6790\u4e00\u4e0b <code class=\"prettyprint\" >depends.sh<\/code> \u7684\u903b\u8f91\uff0c\u4e0d\u8d34\u4ee3\u7801\u4e86\uff0c\u76f4\u63a5\u8bf4\u91cd\u70b9\u3002<\/p>\n\n\n\n<p><strong>1\uff0c<\/strong><code class=\"prettyprint\" >Ubuntu_prepare()<\/code> \uff0c<code>Centos_prepare()<\/code>\uff0c<code>OSX_prepare()<\/code><\/p>\n\n\n\n<p>\u4e0a\u9762 3 \u4e2a\u51fd\u6570\u5206\u522b \u68c0\u67e5\u76f8\u5e94\u7684\u64cd\u4f5c\u7cfb\u7edf\u7684\u73af\u5883\uff0c\u4f8b\u5982 <code class=\"prettyprint\" >gcc g++ unzip<\/code> \u7b49\u8f6f\u4ef6\u6709\u6ca1\u5b89\u88c5\u4e4b\u7c7b\u7684\u3002<\/p>\n\n\n\n<p><strong>2\uff0c<\/strong>\u7f16\u8bd1 \u7b2c\u4e09\u65b9\u5e93 state thread \u3002<\/p>\n\n\n\n<p><strong>3\uff0c<\/strong>\u5b89\u88c5 <code class=\"prettyprint\" >cherrypy<\/code>\uff0cHOOK \u5b9e\u73b0\u7528\u7684 <code>cherrypy<\/code><\/p>\n\n\n\n<p><strong>4\uff0c<\/strong>\u7f16\u8bd1\u7b2c\u4e09\u65b9\u5e93 <code class=\"prettyprint\" >libopus<\/code>\uff0cwebrtc \u8981\u7528 <code>libopus<\/code><\/p>\n\n\n\n<p><strong>5\uff0c<\/strong>\u7f16\u8bd1 FFmpeg \u3002<\/p>\n\n\n\n<p><strong>6\uff0c<\/strong>\u7f16\u8bd1 \u7b2c\u4e09\u65b9\u5e93 srt \u3002<\/p>\n\n\n\n<p><strong>7\uff0c<\/strong>\u7f16\u8bd1 \u6d4b\u8bd5\u4ee3\u7801 \u4ee5\u53ca gperf<\/p>\n\n\n\n<p>\u7efc\u4e0a\uff0c <code class=\"prettyprint\" >depends.sh<\/code> \u8fd9\u4e2a\u811a\u672c\u4e3b\u8981\u5c31\u662f\u7f16\u8bd1\u4e00\u4e9b \u4f9d\u8d56\u7684 \u7b2c\u4e09\u65b9\u7684\u9759\u6001\u5e93\u3002<\/p>\n\n\n\n<p>\u518d\u5206\u6790\u4e00\u4e0b <code class=\"prettyprint\" >auto_headers.sh<\/code>\uff0c<code>auto_headers.sh<\/code> \u4e3b\u8981\u662f\u751f\u6210 <code>srs_auto_headers.hpp<\/code> \u5934\u6587\u4ef6\uff0c\u5b9e\u9645\u4e0a\u662f \u628a shell \u91cc\u9762\u7684\u67d0\u4e9b\u53d8\u91cf \u8f6c\u6210 c++ \u7684\u5b8f\u5b9a\u4e49\uff0c\u653e\u8fdb\u53bb\u5934\u6587\u4ef6\uff0c\u4f8b\u5982 <code>SRS_HDS_BOOL<\/code><\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"prettyprint\" ># 40 ~ 50 \u884c\n#####################################################################################\n# generate Makefile.\n#####################################################################################\n# ubuntu echo in Makefile cannot display color, use bash instead\nSRS_BUILD_SUMMARY=&quot;_srs_build_summary.sh&quot;\n\u200b\n# utest make entry, (cd utest; make)\nSrsUtestMakeEntry=&quot;@echo -e \\&quot;ignore utest for it&#039;s disabled\\&quot;&quot;\nif &#091; $SRS_UTEST = YES ]; then SrsUtestMakeEntry=&quot;(cd ${SRS_OBJS_DIR}\/${SRS_PLATFORM}\/utest &amp;&amp; \\$(MAKE))&quot;; fi<\/code><\/pre>\n\n\n\n<p>40 ~ 50 \u884c \u662f \u51b3\u5b9a \u6267 \u4e0d \u6267\u884c\u5355\u5143\u6d4b\u8bd5\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"prettyprint\" ># 51 ~ 57 \u884c\n#####################################################################################\n# finger out modules to install.\n# where srs module is a dir which contains a config file.\nSRS_MODULES=()\n__mfiles=`find modules -name &quot;config&quot;` &amp;&amp; for __mfile in $__mfiles; do\n    SRS_MODULES+=(&quot;`dirname $__mfile`&quot;)\ndone<\/code><\/pre>\n\n\n\n<p><code class=\"prettyprint\" >SRS_MODULES=()<\/code> \u662f\u5b9a\u4e49\u4e00\u4e2a\u4e00\u7ef4\u6570\u7ec4\uff0c\u8fd9\u662f shell \u5b9a\u4e49\u6570\u7ec4\u7684\u8bed\u6cd5\u3002<\/p>\n\n\n\n<p>\u7136\u540e\u662f \u67e5\u627e <code class=\"prettyprint\" >srs-4.0-b8\\trunk\\modules<\/code> \u76ee\u5f55\u4e0b\u6709 <code>config<\/code> \u6587\u4ef6\u7684\u76ee\u5f55\uff0c\u7136\u540e\u52a0\u8fdb\u53bb <code>SRS_MODULES<\/code> \u53d8\u91cf\u3002<\/p>\n\n\n\n<p>\u5728 SRS4.0 \u91cc\u9762\uff0c\u4e3b\u8981\u6709 <code class=\"prettyprint\" >hls-ingester<\/code> \u8ddf <code>mp4-parse<\/code> \u4e24\u4e2a \u6a21\u5757 \uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"339\" height=\"449\" src=\"https:\/\/www.xianwaizhiyin.net\/wp-content\/uploads\/2022\/02\/srs-3-1.png\" alt=\"\" class=\"wp-image-995\"\/><\/figure>\n\n\n\n<p>\u53ef\u4ee5\u7528\u4ee5\u4e0b\u547d\u4ee4 \u628a <code class=\"prettyprint\" >SRS_MODULES<\/code> \u6253\u5370\u51fa\u6765\u770b\u770b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"prettyprint\" >echo &quot;SRS_MODULES&#091;0] is &quot;${SRS_MODULES&#091;0]}\necho &quot;SRS_MODULES&#091;1] is &quot;${SRS_MODULES&#091;1]}\n#\u9000\u51fa shell\nexit<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"742\" height=\"528\" src=\"https:\/\/www.xianwaizhiyin.net\/wp-content\/uploads\/2022\/02\/srs-3-2.png\" alt=\"\" class=\"wp-image-996\"\/><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"prettyprint\" ># variables for makefile for all modules.\n__mphonys=&quot;&quot; &amp;&amp; __mdefaults=&quot;&quot; &amp;&amp; __mcleanups=&quot;&quot; &amp;&amp; __makefiles=&quot;&quot;\n# add each modules for application\nfor SRS_MODULE in ${SRS_MODULES&#091;*]}; do\n    echo &quot;install module at: $SRS_MODULE&quot;\n    . $SRS_MODULE\/config\n    if &#091;&#091; $SRS_MODULE_MAKEFILE != &quot;&quot; ]]; then\n        __makefiles=&quot;$__makefiles $SRS_MODULE_MAKEFILE&quot;\n    fi\n    if &#091;&#091; 0 -ne ${#SRS_MODULE_MAIN&#091;@]} ]]; then\n        __mphonys=&quot;$__mphonys $SRS_MODULE_NAME&quot;\n        __mdefaults=&quot;$__mdefaults $SRS_MODULE_NAME&quot;\n        __mcleanups=&quot;$__mcleanups $SRS_MODULE_NAME&quot;\n    fi\ndone<\/code><\/pre>\n\n\n\n<p>\u4e0a\u9762\u7684\u4ee3\u7801 \u5c31\u662f \u628a \u6a21\u5757 \u76ee\u5f55\u7684 config \u6587\u4ef6\u5b9a\u4e49\u7684\u53d8\u91cf \u5408\u5e76\u8fdb\u53bb <code class=\"prettyprint\" >__mphonys<\/code> \uff0c<code>__mdefaults<\/code> \u7b49\u53d8\u91cf\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"prettyprint\" >#75 ~ 80 \u884c\n# generate extra phony for each modules.\ncat &lt;&lt; END &gt; ${SRS_OBJS}\/${SRS_MAKEFILE}\n\u200b\n.PHONY: $__mphonys\n\u200b\nEND<\/code><\/pre>\n\n\n\n<p>\u4e0a\u9762\u7684\u4ee3\u7801\u662f\u751f\u6210 \u4f2a\u76ee\u6807 \uff0c\u5199\u8fdb\u53bb makefile\u6587\u4ef6\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"413\" height=\"102\" src=\"https:\/\/www.xianwaizhiyin.net\/wp-content\/uploads\/2022\/02\/srs-3-3.png\" alt=\"\" class=\"wp-image-993\"\/><\/figure>\n\n\n\n<p><strong>\u8fd9\u91cc\u6709\u4e2a\u91cd\u70b9<\/strong>\uff0cshell \u91cc\u9762\u7684 <code class=\"prettyprint\" >&lt;&lt;<\/code> \u8f93\u5165\uff0c \u7136\u540e <code>&gt;<\/code> \u8f93\u51fa\u7684\u8bed\u6cd5\u4e0d\u592a\u5bb9\u6613\u7406\u89e3\uff0c\u4ed6\u90a3\u4e2a\u8f93\u51fa\u6587\u4ef6\u662f\u653e\u5728\u4e2d\u95f4\u7684\uff0c\u653e\u5728 \u7b2c\u4e00\u4e2a END \u540e\u9762\uff0c\u800c\u4e0d\u662f\u7b2c\u4e8c\u4e2a END \u540e\u9762\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<p>\u5199\u5230\u8fd9\u91cc\uff0c\u53d1\u73b0 <code class=\"prettyprint\" >configure<\/code> \u6587\u4ef6\u6709 \u5927\u7ea6800\u884c shell\uff0c\u5168\u90e8\u8d34\u51fa\u6765\u592a\u6d6a\u8d39\u7a7a\u95f4\u4e86\uff0c\u4e0b\u9762\u6709\u4e9b\u5730\u65b9\u53ea\u4f1a\u8bb2\u91cd\u70b9\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"prettyprint\" ># 82 ~ 130 \u884c\n#####################################################################################\n# build tools or compiler args.\n# enable gdb debug\nGDBDebug=&quot; -g -O0&quot;\n# the warning level.\nWarnLevel=&quot; -Wall -Wno-deprecated-declarations&quot;\n# the compile standard.\nCppStd=&quot;-ansi&quot;\nif &#091;&#091; $SRS_CXX11 == YES ]]; then\n    CppStd=&quot;-std=c++11&quot;\nfi\nif &#091;&#091; $SRS_CXX14 == YES ]]; then\n    CppStd=&quot;-std=c++14&quot;\nfi\n# performance of gprof\nSrsGprof=&quot;&quot;; SrsGprofLink=&quot;&quot;; if &#091; $SRS_GPROF = YES ]; then SrsGprof=&quot; -pg -lc_p&quot;; SrsGprofLink=&quot; -pg&quot;; fi\n# performance of gperf\nSrsGperf=&quot;&quot;; SrsGperfLink=&quot;&quot;; if &#091; $SRS_GPERF = YES ]; then SrsGperfLink=&quot; -lpthread&quot;; fi\n# the cxx flag generated.\nCXXFLAGS=&quot;${CXXFLAGS} ${CppStd}${WarnLevel}${GDBDebug}${LibraryCompile}${SrsGprof}&quot;\nif &#091; $SRS_GPERF = YES ]; then\n    CXXFLAGS=&quot;${CXXFLAGS} -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free&quot;;\nfi\n# For coverage.\nif &#091;&#091; $SRS_GCOV == YES ]]; then\n    SrsGcov=&quot;-fprofile-arcs -ftest-coverage&quot;\nfi\nif &#091;&#091; $SRS_GCOV == YES ]]; then\n    CXXFLAGS=&quot;${CXXFLAGS} ${SrsGcov}&quot;;\nfi\n# User configed options.\nif &#091;&#091; $SRS_EXTRA_FLAGS != &#039;&#039; ]]; then\n    CXXFLAGS=&quot;${CXXFLAGS} $SRS_EXTRA_FLAGS&quot;;\nfi\n# Start to generate the Makefile.\ncat &lt;&lt; END &gt;&gt; ${SRS_OBJS}\/${SRS_MAKEFILE}\nGCC = ${SRS_TOOL_CC}\nCXX = ${SRS_TOOL_CXX}\nAR = ${SRS_TOOL_AR}\nLINK = ${SRS_TOOL_CXX}\nCXXFLAGS = ${CXXFLAGS}\n\u200b\n.PHONY: default srs srs_ingest_hls\n\u200b\ndefault:\n\u200b\nEND<\/code><\/pre>\n\n\n\n<p>\u4e0a\u9762\u7684\u4ee3\u7801 \u4e3b\u8981\u662f\u6307\u5b9a\u7f16\u8bd1\u9009\u9879\uff0c \u6709\u51e0\u4e2a \u91cd\u70b9<\/p>\n\n\n\n<p>1\uff0c\u6307\u5b9a \u7f16\u8bd1\u9009\u9879 \u8c03\u8bd5\u7ea7\u522b\uff08GDBDebug\uff09\uff0c\u8b66\u544a\uff08WarnLevel\uff09\uff0cC++\u6807\u51c6\uff08CppStd\uff09<\/p>\n\n\n\n<p>2\uff0c\u4f7f\u7528 Gprof \u6216\u8005 Gperf \u505a\u6027\u80fd\u5206\u6790\uff0c<\/p>\n\n\n\n<p>\u63a8\u8350\u9605\u8bfb <a href=\"https:\/\/cloud.tencent.com\/developer\/article\/1433465\">\u300aGprof \u6027\u80fd\u5206\u6790\u300b<\/a>\uff0c<a href=\"https:\/\/www.cnblogs.com\/youxin\/p\/7988479.html\">\u300aGperf \u6027\u80fd\u5206\u6790\u300b<\/a><\/p>\n\n\n\n<p>\u6700\u540e\u5c31\u662f \u8f93\u51fa\u8fd9\u4e9b\u53d8\u91cf\u5230 <code class=\"prettyprint\" >makefile<\/code> \u6587\u4ef6\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<p>130 ~ 197 \u884c \u4e3b\u8981\u662f \u8d4b\u503c <code class=\"prettyprint\" >SrsLinkOptions<\/code> \u53d8\u91cf\uff0clink \u9009\u9879\uff0c\u4e0d\u505a\u5206\u6790\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<p><strong>\u4ece 200 \u884c sehll \u4ee3\u7801\u5f00\u59cb\uff0c\u5c31\u662f\u91cd\u70b9\u4e86<\/strong>\uff0c\u4e3b\u8981\u662f \u7f16\u8bd1 SRS\u81ea\u8eab \u7684\u6a21\u5757\u4ee3\u7801\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"prettyprint\" ># 198 ~ 342 \u884c\n#####################################################################################\n# Modules, compile each module, then link to binary\n#\n#Core, depends only on system apis.\nMODULE_ID=&quot;CORE&quot;\nMODULE_DEPENDS=()\nModuleLibIncs=(${SRS_OBJS_DIR})\nMODULE_FILES=(&quot;srs_core&quot; &quot;srs_core_version4&quot; &quot;srs_core_autofree&quot; &quot;srs_core_performance&quot;\n  &quot;srs_core_time&quot;)\nCORE_INCS=&quot;src\/core&quot;; MODULE_DIR=${CORE_INCS} . auto\/modules.sh\nCORE_OBJS=&quot;${MODULE_OBJS&#091;@]}&quot;\n# \u540e\u7eed\u4ee3\u7801\u903b\u8f91\u7c7b\u4f3c\uff0c\u7701\u7565....<\/code><\/pre>\n\n\n\n<p>\u4e0a\u9762\u7684\u4ee3\u7801\u4e3b\u8981\u6709\u4e00\u4e2a\u91cd\u70b9 \uff0c\u5c31\u662f\u6267\u884c <code class=\"prettyprint\" >auto\/modules.sh<\/code> \u6765\u751f\u6210 \u6a21\u5757\u4ee3\u7801\u7684 makefile\u6587\u4ef6\u3002<\/p>\n\n\n\n<p><code class=\"prettyprint\" >MODULE_DIR=${CORE_INCS} . auto\/modules.sh<\/code> \u8fd9\u53e5 shell \u547d\u4ee4\uff0c\u6211\u4e5f\u4e0d\u592a\u660e\u767d\uff0c\u4e2d\u95f4\u7684 . \u662f\u4ec0\u4e48\u610f\u601d\uff0c\u57cb\u4e2a\u5751\uff0c\u540e\u9762\u586b\u3002<\/p>\n\n\n\n<p>\u8865\u5145\uff1a shell \u7684\u8bed\u6cd5\u662f \u7528 \u7a7a\u683c \u6216\u8005 <code class=\"prettyprint\" >;<\/code> \u9694\u5f00\u4e0d\u540c\u7684\u547d\u4ee4\u3002<\/p>\n\n\n\n<p>\u6240\u4ee5\u4e0a\u9762 \u662f\u4e24\u4e2a\u547d\u4ee4\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><code class=\"prettyprint\" >MODULE_DIR=${CORE_INCS}<\/code><\/li>\n\n\n\n<li><code class=\"prettyprint\" >. auto\/modules.sh<\/code><\/li>\n<\/ol>\n\n\n\n<p>\u524d\u9762\u7684 <code class=\"prettyprint\" >.<\/code> \u662f <code>source<\/code> \u547d\u4ee4\u7684\u53e6\u4e00\u79cd\u5199\u6cd5\uff0c\u63a8\u8350\u9605\u8bfb<a href=\"https:\/\/blog.csdn.net\/violet_echo_0908\/article\/details\/52056071\">\u300aLinux\u4e0bsource\u547d\u4ee4\u8be6\u89e3\u300b<\/a><\/p>\n\n\n\n<p><strong>INCS \u662f includes \u7684\u7f29\u5199\uff0c\u5934\u6587\u4ef6\u5305\u542b\u8def\u5f84\u3002<\/strong><\/p>\n\n\n\n<p>\u540e\u9762\u7684 210 ~ 252 \u884c\u4ee3\u7801\uff0c\u90fd\u662f \u7c7b\u4f3c\u7684 \u903b\u8f91\uff0c\u751f\u6210 \u6a21\u5757\u4ee3\u7801\u7684 makefile\u6587\u4ef6\u3002<\/p>\n\n\n\n<p>\u603b\u7ed3\u4e00\u4e0b\uff0cSRS \u81ea\u8eab\u6709 4 \u4e2a\u6a21\u5757\uff0c\u5206\u522b\u662f\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><code class=\"prettyprint\" >CORE<\/code> \u5e94\u8be5\u662f\u6838\u5fc3\u6a21\u5757<\/li>\n\n\n\n<li><code class=\"prettyprint\" >KERNEL<\/code> \u5e94\u8be5\u662f\u5185\u6838\u6a21\u5757<\/li>\n\n\n\n<li><code class=\"prettyprint\" >PROTOCOL<\/code> \u5e94\u8be5\u662f\u534f\u8bae\u6a21\u5757<\/li>\n\n\n\n<li><code class=\"prettyprint\" >SRT<\/code> \u8fd9\u4e2a\u6a21\u5757\u5e94\u8be5\u662f \u5bf9 <code>libsrt<\/code> \u5e93\u7684\u5c01\u88c5<\/li>\n\n\n\n<li><code class=\"prettyprint\" >app<\/code> \u529f\u80fd\u5c01\u88c5\u6a21\u5757\uff0c\u96c6\u7fa4\uff0c\u56de\u6e90\u4e4b\u7c7b\u7684\u529f\u80fd\u3002<\/li>\n\n\n\n<li><code class=\"prettyprint\" >server<\/code> \u8ddf <code>main<\/code> \u6a21\u5757\uff0cconfigure\u91cc\u9762\u628a\u8fd9\u4e24\u4e2a\u5206\u6210\u72ec\u7acb\u7684 modules \uff0c\u4f46\u662f\u53ef\u4ee5\u76f4\u63a5\u7406\u89e3\u4e3a main \u5165\u53e3\u5c31\u884c\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u8fd9 6 \u4e2a\u6a21\u5757\u90fd\u6709\u5404\u81ea\u7684\u6587\u4ef6\u5939\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"784\" height=\"203\" src=\"https:\/\/www.xianwaizhiyin.net\/wp-content\/uploads\/2022\/02\/srs-3-4.png\" alt=\"\" class=\"wp-image-994\"\/><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<p>\u7ee7\u7eed \u5206\u6790 configure \uff08shell\u811a\u672c)<\/p>\n\n\n\n<p>343 ~ 438 \u884c \u5e94\u8be5\u662f \u4e3a\u4e86 link \u51fa\u6765 srs \u53ef\u6267\u884c\u6587\u4ef6\uff0c\u505a\u4e00\u4e9b\u53d8\u91cf\u8d4b\u503c\u7684\u51c6\u5907\u5de5\u4f5c\uff0c\u5e93\u4f9d\u8d56\u5b9a\u4e49\u4e4b\u7c7b\u7684\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"prettyprint\" ># 439 ~ 449 \u884c\n#####################################################################################\n# generate colorful summary script\n. auto\/summary.sh\n\u200b\n#####################################################################################\n# makefile\necho &quot;Generate Makefile&quot;\n\u200b\n# backup old makefile.\nrm -f ${SRS_WORKDIR}\/${SRS_MAKEFILE}.bk &amp;&amp;\nmv ${SRS_WORKDIR}\/${SRS_MAKEFILE} ${SRS_WORKDIR}\/${SRS_MAKEFILE}.bk<\/code><\/pre>\n\n\n\n<p>\u53c8\u6709\u4e00\u4e2a . \uff0c\u8fd9\u4e2a\u8fd8\u662f <code class=\"prettyprint\" >source<\/code> \u547d\u4ee4\u7684\u7f29\u5199\uff0c <code>summary.sh<\/code> \u662f\u6253\u5370\u603b\u7ed3\u4fe1\u606f\u3002\u7136\u540e \u628a makefile \u91cd\u547d\u540d\u6210 makefile.bk \u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<p>449 \u884c \u540e\u9762\u7684\u903b\u8f91 \u4e3b\u8981\u6709\u662f\u4ee5\u4e0b2\u70b9\u3002<\/p>\n\n\n\n<p>1\uff0c\u628a\u4e4b\u524d\u7684 shell \u53d8\u91cf\uff0c\u4e22\u8fdb\u53bb \u751f\u6210 makefile \u6587\u4ef6\u3002<\/p>\n\n\n\n<p>2\uff0c\u521b\u5efa\u5404\u79cd\u76ee\u5f55\uff0c\u4e3a make \u8ddf \u8fd0\u884c srs\u505a\u51c6\u5907\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<p>configure shell \u811a\u672c\u5206\u6790\u5b8c\u6bd5\uff0c\u4e0d\u8fc7\u8fd8\u6709\u4e00\u4e2a \u91cd\u70b9\uff0c configure \u4f1a\u751f\u6210\u4e24\u4e2a makefile \u6587\u4ef6\uff0c<code class=\"prettyprint\" >trunck\/Makefile<\/code> \u8ddf <code>trunck\/objs\/Makefile<\/code> \u3002<\/p>\n\n\n\n<p><code class=\"prettyprint\" >trunck\/Makefile<\/code> \u662f\u4e3b makefile\uff0c objs \u76ee\u5f55\u4e0b\u7684\u5e94\u8be5\u662f\u88ab <code>trunck\/Makefile<\/code> \u5f15\u5165\u7684\u3002<\/p>\n\n\n\n<p><code class=\"prettyprint\" >trunck\/Makefile<\/code> \u91cc\u9762\u7684\u89c4\u5219\u5e94\u8be5\u4f1a\u7528\u5230 <code>trunck\/objs\/Makefile<\/code><\/p>\n\n\n\n<p>makefile \u7684\u7f16\u8bd1\u903b\u8f91\uff0c\u8bf7\u770b <a href=\"https:\/\/www.xianwaizhiyin.net\/?p=1000\">\u300aSRS4.0\u6e90\u7801\u5206\u6790-makefile\u300b<\/a><\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<p>\u00a9\u7248\u6743\u6240\u5c5e\uff1a\u77e5\u8bc6\u661f\u7403\uff1a\u5f26\u5916\u4e4b\u97f3\uff0cQQ\uff1a2338195090\u3002<\/p>\n\n\n\n<p>\u7531\u4e8e\u7b14\u8005\u7684\u6c34\u5e73\u6709\u9650\uff0c \u52a0\u4e4b\u7f16\u5199\u7684\u540c\u65f6\u8fd8\u8981\u53c2\u4e0e\u5f00\u53d1\u5de5\u4f5c\uff0c\u6587\u4e2d\u96be\u514d\u4f1a\u51fa\u73b0\u4e00\u4e9b\u9519\u8bef\u6216\u8005\u4e0d\u51c6\u786e\u7684\u5730\u65b9\uff0c\u6073\u8bf7\u8bfb\u8005\u6279\u8bc4\u6307\u6b63\u3002\u5982\u679c\u8bfb\u8005\u6709\u4efb\u4f55\u5b9d\u8d35\u610f\u89c1\uff0c\u53ef\u4ee5\u52a0\u6211\u5fae\u4fe1 Loken1\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u300aSRS\u539f\u7406\u300b\u4e0a\u67b6\u4e86\uff0c\u6df1\u5ea6\u5256\u6790 SRS \u6e90\u4ee3\u7801\uff0c\u8bbf\u95ee\u5730\u5740\uff1asrs.xianwaizhiyin.net \u672c\u6587\u91c7\u7528 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[],"class_list":["post-991","post","type-post","status-publish","format-standard","hentry","category-srs4-0"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v18.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>SRS4.0\u6e90\u7801\u5206\u6790-configure - \u5f26\u5916\u4e4b\u97f3<\/title>\n<meta name=\"description\" content=\"SRS4.0\u6e90\u7801\u5206\u6790-configure\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.xianwaizhiyin.net\/?p=991\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SRS4.0\u6e90\u7801\u5206\u6790-configure - \u5f26\u5916\u4e4b\u97f3\" \/>\n<meta property=\"og:description\" content=\"SRS4.0\u6e90\u7801\u5206\u6790-configure\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.xianwaizhiyin.net\/?p=991\" \/>\n<meta property=\"og:site_name\" content=\"\u5f26\u5916\u4e4b\u97f3\" \/>\n<meta property=\"article:published_time\" content=\"2022-02-27T09:08:25+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-11-21T11:52:23+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.xianwaizhiyin.net\/wp-content\/uploads\/2022\/02\/srs-3-1.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"loken\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.xianwaizhiyin.net\/#website\",\"url\":\"https:\/\/www.xianwaizhiyin.net\/\",\"name\":\"\u5f26\u5916\u4e4b\u97f3\",\"description\":\"FFmpeg\u3001WebRTC\uff0cSRS \u97f3\u89c6\u9891\u3001\u6d41\u5a92\u4f53\u6280\u672f\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.xianwaizhiyin.net\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.xianwaizhiyin.net\/?p=991#primaryimage\",\"inLanguage\":\"zh-Hans\",\"url\":\"https:\/\/www.xianwaizhiyin.net\/wp-content\/uploads\/2022\/02\/srs-3-1.png\",\"contentUrl\":\"https:\/\/www.xianwaizhiyin.net\/wp-content\/uploads\/2022\/02\/srs-3-1.png\",\"width\":339,\"height\":449},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.xianwaizhiyin.net\/?p=991#webpage\",\"url\":\"https:\/\/www.xianwaizhiyin.net\/?p=991\",\"name\":\"SRS4.0\u6e90\u7801\u5206\u6790-configure - \u5f26\u5916\u4e4b\u97f3\",\"isPartOf\":{\"@id\":\"https:\/\/www.xianwaizhiyin.net\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.xianwaizhiyin.net\/?p=991#primaryimage\"},\"datePublished\":\"2022-02-27T09:08:25+00:00\",\"dateModified\":\"2023-11-21T11:52:23+00:00\",\"author\":{\"@id\":\"https:\/\/www.xianwaizhiyin.net\/#\/schema\/person\/6605a70af752697df6b62f77c53298a3\"},\"description\":\"SRS4.0\u6e90\u7801\u5206\u6790-configure\",\"breadcrumb\":{\"@id\":\"https:\/\/www.xianwaizhiyin.net\/?p=991#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.xianwaizhiyin.net\/?p=991\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.xianwaizhiyin.net\/?p=991#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.xianwaizhiyin.net\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SRS4.0\u6e90\u7801\u5206\u6790-configure\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.xianwaizhiyin.net\/#\/schema\/person\/6605a70af752697df6b62f77c53298a3\",\"name\":\"loken\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.xianwaizhiyin.net\/#personlogo\",\"inLanguage\":\"zh-Hans\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/f6320b5256dc36ef4243e0acf26144b8ac2668b478302ad154e95ce3202bc421?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/f6320b5256dc36ef4243e0acf26144b8ac2668b478302ad154e95ce3202bc421?s=96&d=mm&r=g\",\"caption\":\"loken\"},\"sameAs\":[\"https:\/\/www.xianwaizhiyin.net\/\"],\"url\":\"https:\/\/www.xianwaizhiyin.net\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"SRS4.0\u6e90\u7801\u5206\u6790-configure - \u5f26\u5916\u4e4b\u97f3","description":"SRS4.0\u6e90\u7801\u5206\u6790-configure","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.xianwaizhiyin.net\/?p=991","og_locale":"zh_CN","og_type":"article","og_title":"SRS4.0\u6e90\u7801\u5206\u6790-configure - \u5f26\u5916\u4e4b\u97f3","og_description":"SRS4.0\u6e90\u7801\u5206\u6790-configure","og_url":"https:\/\/www.xianwaizhiyin.net\/?p=991","og_site_name":"\u5f26\u5916\u4e4b\u97f3","article_published_time":"2022-02-27T09:08:25+00:00","article_modified_time":"2023-11-21T11:52:23+00:00","og_image":[{"url":"https:\/\/www.xianwaizhiyin.net\/wp-content\/uploads\/2022\/02\/srs-3-1.png"}],"twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"loken","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"6 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/www.xianwaizhiyin.net\/#website","url":"https:\/\/www.xianwaizhiyin.net\/","name":"\u5f26\u5916\u4e4b\u97f3","description":"FFmpeg\u3001WebRTC\uff0cSRS \u97f3\u89c6\u9891\u3001\u6d41\u5a92\u4f53\u6280\u672f","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.xianwaizhiyin.net\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"ImageObject","@id":"https:\/\/www.xianwaizhiyin.net\/?p=991#primaryimage","inLanguage":"zh-Hans","url":"https:\/\/www.xianwaizhiyin.net\/wp-content\/uploads\/2022\/02\/srs-3-1.png","contentUrl":"https:\/\/www.xianwaizhiyin.net\/wp-content\/uploads\/2022\/02\/srs-3-1.png","width":339,"height":449},{"@type":"WebPage","@id":"https:\/\/www.xianwaizhiyin.net\/?p=991#webpage","url":"https:\/\/www.xianwaizhiyin.net\/?p=991","name":"SRS4.0\u6e90\u7801\u5206\u6790-configure - \u5f26\u5916\u4e4b\u97f3","isPartOf":{"@id":"https:\/\/www.xianwaizhiyin.net\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.xianwaizhiyin.net\/?p=991#primaryimage"},"datePublished":"2022-02-27T09:08:25+00:00","dateModified":"2023-11-21T11:52:23+00:00","author":{"@id":"https:\/\/www.xianwaizhiyin.net\/#\/schema\/person\/6605a70af752697df6b62f77c53298a3"},"description":"SRS4.0\u6e90\u7801\u5206\u6790-configure","breadcrumb":{"@id":"https:\/\/www.xianwaizhiyin.net\/?p=991#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.xianwaizhiyin.net\/?p=991"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.xianwaizhiyin.net\/?p=991#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.xianwaizhiyin.net\/"},{"@type":"ListItem","position":2,"name":"SRS4.0\u6e90\u7801\u5206\u6790-configure"}]},{"@type":"Person","@id":"https:\/\/www.xianwaizhiyin.net\/#\/schema\/person\/6605a70af752697df6b62f77c53298a3","name":"loken","image":{"@type":"ImageObject","@id":"https:\/\/www.xianwaizhiyin.net\/#personlogo","inLanguage":"zh-Hans","url":"https:\/\/secure.gravatar.com\/avatar\/f6320b5256dc36ef4243e0acf26144b8ac2668b478302ad154e95ce3202bc421?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f6320b5256dc36ef4243e0acf26144b8ac2668b478302ad154e95ce3202bc421?s=96&d=mm&r=g","caption":"loken"},"sameAs":["https:\/\/www.xianwaizhiyin.net\/"],"url":"https:\/\/www.xianwaizhiyin.net\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/www.xianwaizhiyin.net\/index.php?rest_route=\/wp\/v2\/posts\/991","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xianwaizhiyin.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xianwaizhiyin.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xianwaizhiyin.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xianwaizhiyin.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=991"}],"version-history":[{"count":4,"href":"https:\/\/www.xianwaizhiyin.net\/index.php?rest_route=\/wp\/v2\/posts\/991\/revisions"}],"predecessor-version":[{"id":2976,"href":"https:\/\/www.xianwaizhiyin.net\/index.php?rest_route=\/wp\/v2\/posts\/991\/revisions\/2976"}],"wp:attachment":[{"href":"https:\/\/www.xianwaizhiyin.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=991"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xianwaizhiyin.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=991"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xianwaizhiyin.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=991"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}