{"id":3180,"date":"2025-05-06T12:15:17","date_gmt":"2025-05-06T04:15:17","guid":{"rendered":"http:\/\/www.51cos.com\/?p=3180"},"modified":"2025-05-23T18:20:48","modified_gmt":"2025-05-23T10:20:48","slug":"3180","status":"publish","type":"post","link":"http:\/\/www.51cos.com\/?p=3180","title":{"rendered":"\u5728centos+openwrt 15.05.01\u4e0b\u7f16\u8bd1owntone"},"content":{"rendered":"<h1>\u5728centos+openwrt 15.05.01\u4e0b\u7f16\u8bd1owntone<\/h1>\n<h2>Openwrt\u4e2d\u5982\u4f55\u5355\u72ec\u7f16\u8bd1\u67d0\u4e00\u4e2a\u6a21\u5757\uff1a<\/h2>\n<pre><code class=\"language-bash line-numbers\">make package\/owntone\/download #- download the soures of example\nmake package\/owntone\/prepare #- extract the sources, apply patches and download if necessary\nmake package\/owntone\/clean\n<\/code><\/pre>\n<h2>1.\u5b89\u88c5owntone\u4f9d\u8d56\uff1a<\/h2>\n<pre><code class=\"language-bash line-numbers\">sudo apt-get install \\\n  build-essential git autotools-dev autoconf automake libtool gettext gawk \\\n  gperf bison flex libconfuse-dev libunistring-dev libsqlite3-dev \\\n  libavcodec-dev libavformat-dev libavfilter-dev libswscale-dev libavutil-dev \\\n  libasound2-dev libxml2-dev libgcrypt20-dev libavahi-client-dev zlib1g-dev \\\n  libevent-dev libplist-dev libsodium-dev libjson-c-dev libwebsockets-dev \\\n  libcurl4-openssl-dev libprotobuf-c-dev\n<\/code><\/pre>\n<h2>2.\u4e0b\u8f7downtone\u6e90\u7801<\/h2>\n<pre><code class=\"language-bash line-numbers\">\u4e0b\u8f7d\nhttps:\/\/github.com\/owntone\/owntone-openwrt\/tree\/master\/owntone\n\u653e\u5230package\u76ee\u5f55\u4e0b\u3002\u91cc\u9762\u7684\u4ee3\u7801\u4e0d\u662f\u6700\u65b0\uff0c\u8981\u4fee\u6539makefile\uff1a\nPKG_SOURCE:=<span class=\"katex math inline\">(PKG_NAME)-<\/span>(PKG_VERSION).tar.xz\nPKG_SOURCE_URL:=https:\/\/github.com\/owntone\/owntone-server\/releases\/download\/<span class=\"katex math inline\">(PKG_VERSION)\/\nPKG_HASH:=98538566a993638ec569fc44ea2c7a7fcb5dd925c47b84b64ac2d63fc8b056b8\n\u4fee\u6539 package\/owntone\/Makefile \u6587\u4ef6\uff0c\n\u5c06 -std=c99 \u9009\u9879\u6dfb\u52a0\u5230 TARGET_CFLAGS \u53d8\u91cf\u4e2d\u3002\n\u627e\u5230 TARGET_CFLAGS +=<\/span>(FPIC) \u8fd9\u4e00\u884c\uff0c\u5e76\u5728\u5176\u524d\u9762\u6dfb\u52a0\u4ee5\u4e0b\u4ee3\u7801\uff1a\nTARGET_CFLAGS += -std=c99\n\u4fee\u6539\u540e\u7684 Makefile \u6587\u4ef6\u5e94\u8be5\u5982\u4e0b\u6240\u793a\uff1a\nTARGET_CFLAGS += -std=c99\nTARGET_CFLAGS += $(FPIC)\n<\/code><\/pre>\n<h2>3.\u5728make menuconfig\uff0c\u5728sound\u91cc\u9762\u9009\u62e9owntone<\/h2>\n<h2>4.\u5f00\u59cb\u7f16\u8bd1<\/h2>\n<p><code>make -j1 V=s package\/owntone\/compile<br \/>\n#- compile example, prepare and download if necessary<\/code><\/p>\n<blockquote><p>\n  \u5148\u5c1d\u8bd5\u7f16\u8bd1owntone,\u5982\u679c\u6ca1\u6709\u95ee\u9898\uff0c<br \/>\n  \u63a5\u4e0b\u6765\u5f00\u59cb\u7f16\u8bd1\u6574\u4e2a\u5de5\u7a0bmake -j1 V=s\n<\/p><\/blockquote>\n<h2>5.\u9664\u9519\u3002\u7f16\u8bd1\u8fc7\u7a0b\u4e2d\u4f1a\u51fa\u73b0\u5404\u79cd\u9519\u8bef<\/h2>\n<pre><code class=\"language-bash line-numbers\"> File \".\/configure\", line 992, in &lt;module&gt;\n    configure_node(output)\n  File \".\/configure\", line 530, in configure_node\n    o['variables']['gcc_version'] = 10 * cc_version[0] + cc_version[1]\nIndexError: tuple index out of range\nMakefile:72: recipe for target '\/root\/mt7628-wireless-audio\/wireless-music\/build_dir\/host\/node-v0.12.7\/.configured' failed\n<\/code><\/pre>\n<pre><code class=\"language-bash line-numbers\">\u89e3\u51b3\u65b9\u6848\uff1a\n\n\u60a8\u5728 Ubuntu 18.04 \u4e0a\u7f16\u8bd1 MT7628 \u65e0\u7ebf\u97f3\u9891\u9879\u76ee\u65f6\u9047\u5230\u7684\u9519\u8bef\uff0c\u6e90\u4e8e Node.js v0.12.7 \u7684 configure \u811a\u672c\u4e2d\u4f7f\u7528\u4e86 gcc -dumpversion \u6765\u83b7\u53d6 GCC \u7684\u7248\u672c\u53f7\u3002\u7136\u800c\uff0c\u4ece GCC 7 \u5f00\u59cb\uff0c-dumpversion \u9ed8\u8ba4\u53ea\u8fd4\u56de\u4e3b\u7248\u672c\u53f7\uff08\u4f8b\u5982 \"7\"\uff09\uff0c\u800c\u4e0d\u5305\u62ec\u6b21\u7248\u672c\u53f7\uff08\u4f8b\u5982 \"7.5\"\uff09\u3002\u8fd9\u5bfc\u81f4\u811a\u672c\u5728\u89e3\u6790\u7248\u672c\u53f7\u65f6\u51fa\u73b0 IndexError: tuple index out of range \u7684\u9519\u8bef\u3002\n\n\u4e3a\u4e86\u89e3\u51b3\u6b64\u95ee\u9898\uff0c\u60a8\u53ef\u4ee5\u4fee\u6539 configure \u811a\u672c\u4e2d\u7684\u76f8\u5173\u4ee3\u7801\uff0c\u5c06 -dumpversion \u66ff\u6362\u4e3a -dumpfullversion\uff0c\u540e\u8005\u4f1a\u8fd4\u56de\u5b8c\u6574\u7684\u7248\u672c\u53f7\u3002\n\n\u8bf7\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u64cd\u4f5c\uff1a\n\n\u5b9a\u4f4d\u5e76\u7f16\u8f91 configure \u811a\u672c\uff1a\n\n\u5728\u60a8\u7684\u9879\u76ee\u76ee\u5f55\u4e2d\uff0c\u627e\u5230\u5e76\u6253\u5f00 configure \u811a\u672c\u3002\n\n\u67e5\u627e\u4ee5\u4e0b\u4ee3\u7801\u884c\uff1a\nproc = subprocess.Popen(CC.split() + ['-dumpversion'], stdout=subprocess.PIPE)\n\u5c06\u5176\u4fee\u6539\u4e3a\uff1a\nproc = subprocess.Popen(CC.split() + ['-dumpfullversion'], stdout=subprocess.PIPE)\n\u8fd9\u6837\uff0c\u811a\u672c\u5c06\u4f7f\u7528 gcc -dumpfullversion \u6765\u83b7\u53d6\u5b8c\u6574\u7684\u7248\u672c\u53f7\u3002\n<\/code><\/pre>\n<pre><code class=\"language-bash line-numbers\">\u5728\u7f16\u8bd1openwrt\u65f6\u9047\u5230\u4e86\u5982\u4e0b\u9519\u8bef\uff0c\nchecking for CONFUSE... no\nconfigure: error: Package requirements (libconfuse &gt;= 3.0) were not met:\nRequested 'libconfuse &gt;= 3.0' but version of confuse is 2.7\nConsider adjusting the PKG_CONFIG_PATH environment variable if you \n<\/code><\/pre>\n<p>\u4f60\u5b8c\u5168\u53ef\u4ee5\u5728 \u4fdd\u6301\u76ee\u5f55\u7ed3\u6784\u4e0d\u53d8\u7684\u60c5\u51b5\u4e0b\u4fee\u6539 Makefile \u6765\u5347\u7ea7\u7248\u672c\uff0c\u8fd9\u662f\u6700\u76f4\u63a5\u7684\u65b9\u6cd5\u3002<\/p>\n<pre><code class=\"language-bash line-numbers\">Step 1:\n\u7f16\u8f91\u4f60\u73b0\u6709\u7684 feeds\/packages\/libs\/confuse\/Makefile\uff1a\nPKG_VERSION:=3.0\nPKG_SOURCE:=<span class=\"katex math inline\">(PKG_NAME)-<\/span>(PKG_VERSION).tar.xz\nPKG_SOURCE_URL:=https:\/\/github.com\/libconfuse\/releases\/download\/v$(PKG_VERSION)\/\nPKG_MD5SUM:=c534b51a2118ed57031dc548032304a3\nStep 2: \n\u6e05\u9664\u65e7\u7f13\u5b58\nrm -rf dl\/confuse*\nmake package\/confuse\/clean\nStep 3: \n\u83b7\u53d6\u6e90\u7801\u5e76\u7f16\u8bd1\nmake package\/confuse\/download V=s\nmake package\/confuse\/prepare V=s\nmake package\/confuse\/compile V=s\n<\/code><\/pre>\n<pre><code class=\"language-bash line-numbers\">checking for LIBEVENT... no\nconfigure: error: Package requirements (libevent &gt;= 2.1.4) were not met:\n\nRequested 'libevent &gt;= 2.1.4' but version of libevent is 2.0.22-stable\n\nConsider adjusting the PKG_CONFIG_PATH environment variable if you\ninstalled software in a non-standard prefix.\n<\/code><\/pre>\n<pre><code class=\"language-bash line-numbers\">Step 1: \u4e0b\u8f7d\nhttps:\/\/github.com\/libevent\/libevent\/releases\/download\/release-2.1.10-stable\/libevent-2.1.10-stable.tar.gz\n\n\u4fee\u6539makefile:\nvim  feeds\/packages\/libs\/libevent\/Makefile\n\nPKG_NAME:=libevent\nPKG_VERSION:=2.1.10\nPKG_RELEASE:=1\n\nPKG_BUILD_DIR:=<span class=\"katex math inline\">(BUILD_DIR)\/libevent-<\/span>(PKG_VERSION)-stable\nPKG_SOURCE:=libevent-<span class=\"katex math inline\">(PKG_VERSION)-stable.tar.gz\nPKG_SOURCE_URL:=https:\/\/github.com\/libevent\/libevent\/releases\/download\/release-<\/span>(PKG_VERSION)-stable\/\nPKG_MD5SUM:=999caf86f52943af2363bc8077f00167\nPKG_MAINTAINER:=Steven Barth &lt;cyrus@openwrt.org&gt;\n<\/code><\/pre>\n<pre><code class=\"language-bash line-numbers\">Step 2: \u6e05\u9664\u65e7\u7f13\u5b58\nmake package\/libevent\/clean\n\nStep 3: \u83b7\u53d6\u6e90\u7801\u5e76\u7f16\u8bd1\nmake package\/libevent\/download V=s\nmake package\/libevent\/prepare V=s\nmake package\/libevent\/compile V=s\n<\/code><\/pre>\n<pre><code class=\"language-bash line-numbers\">\u5982\u679c\u8fd8\u4e0d\u884c\uff0c\u4fee\u6539 owntone \u7684 Makefile\n\u5c06 +libevent2 \u6539\u4e3a +libevent\uff1a\n- DEPENDS:=+libevent2 +libdaemon +confuse +alsa-lib +libffmpeg-full \\\n+ DEPENDS:=+libevent +libdaemon +confuse +alsa-lib +libffmpeg-full \\\n\n\u5c06 package\/libs\/libevent2 \u5347\u7ea7\u4e3a libevent 2.1.10\uff0c\u4ee5\u6ee1\u8db3 owntone \u5bf9 libevent &gt;= 2.1.4 \u7684\u4f9d\u8d56\uff0c\u540c\u65f6\u4fdd\u6301 libevent2 \u8fd9\u4e2a\u540d\u5b57\u4e0d\u53d8\uff0c\u786e\u4fdd\u4f9d\u8d56\u94fe\u517c\u5bb9\u3002\n\n\u4fee\u6539 package\/libs\/libevent2\/Makefile \u7684\u65b9\u6cd5\n\u4f60\u5f53\u524d\u7684 Makefile \u5f88\u5b8c\u6574\uff0c\u53ea\u9700\u8981\u4ee5\u4e0b\u51e0\u4e2a\u5173\u952e\u6539\u52a8\uff1a\n\n\u6b65\u9aa4\u4e00\uff1a\u66f4\u65b0\u7248\u672c\u548c\u4e0b\u8f7d\u5730\u5740\nPKG_VERSION:=2.1.10\nPKG_SOURCE:=libevent-<span class=\"katex math inline\">(PKG_VERSION)-stable.tar.gz\nPKG_SOURCE_URL:=https:\/\/github.com\/libevent\/libevent\/releases\/download\/release-<\/span>(PKG_VERSION)-stable\/\nPKG_MD5SUM:=999caf86f52943af2363bc8077f00167\nPKG_BUILD_DIR:=<span class=\"katex math inline\">(BUILD_DIR)\/libevent-<\/span>(PKG_VERSION)-stable\n\n\u6b65\u9aa4\u4e8c\uff1a\u4fee\u6b63 install \u6bb5\nlibevent-2.1.10 \u7684 so \u6587\u4ef6\u540e\u7f00\u4ece libevent_core-2.0.so.X \u53d8\u4e3a libevent_core-2.1.so.X\uff0c\u56e0\u6b64\u4f60\u7684 install \u90e8\u5206\u9700\u8981\u652f\u6301 2.1\uff1a\n\n\u4fee\u6539\u8fd9\u51e0\u6bb5\u5b89\u88c5\u903b\u8f91\uff08\u52a0\u661f\u53f7\u8868\u793a\u8981\u4fee\u6539\uff09\uff1a\ndefine Package\/libevent2\/install\n        <span class=\"katex math inline\">(INSTALL_DIR)<\/span>(1)\/usr\/lib\n        <span class=\"katex math inline\">(CP)<\/span>(PKG_INSTALL_DIR)\/usr\/lib\/libevent-2.1.so.* <span class=\"katex math inline\">(1)\/usr\/lib\/        # \u2605 \u4fee\u6539\u8fd9\u91cc\u7684\u7248\u672c\u53f7\nendef\n\ndefine Package\/libevent2-core\/install<\/span>(INSTALL_DIR) <span class=\"katex math inline\">(1)\/usr\/lib<\/span>(CP) <span class=\"katex math inline\">(PKG_INSTALL_DIR)\/usr\/lib\/libevent_core-2.1.so.*<\/span>(1)\/usr\/lib\/   # \u2605 \u4fee\u6539\u8fd9\u91cc\nendef\n\ndefine Package\/libevent2-extra\/install\n        <span class=\"katex math inline\">(INSTALL_DIR)<\/span>(1)\/usr\/lib\n        <span class=\"katex math inline\">(CP)<\/span>(PKG_INSTALL_DIR)\/usr\/lib\/libevent_extra-2.1.so.* <span class=\"katex math inline\">(1)\/usr\/lib\/  # \u2605\nendef\n\ndefine Package\/libevent2-openssl\/install<\/span>(INSTALL_DIR) <span class=\"katex math inline\">(1)\/usr\/lib<\/span>(CP) <span class=\"katex math inline\">(PKG_INSTALL_DIR)\/usr\/lib\/libevent_openssl-2.1.so.*<\/span>(1)\/usr\/lib\/ # \u2605\nendef\n\ndefine Package\/libevent2-pthreads\/install\n        <span class=\"katex math inline\">(INSTALL_DIR)<\/span>(1)\/usr\/lib\n        <span class=\"katex math inline\">(CP)<\/span>(PKG_INSTALL_DIR)\/usr\/lib\/libevent_pthreads-2.1.so.* $(1)\/usr\/lib\/ # \u2605\nendef\n<\/code><\/pre>\n<p>\u4fee\u6539\u5b8c\u6bd5\u540e\uff0c\u5f3a\u70c8\u5efa\u8bae\u6e05\u7406\u5e76\u91cd\u65b0\u6784\u5efa\uff1a<\/p>\n<pre><code class=\"language-bash line-numbers\">make package\/libevent2\/clean\nrm -rf build_dir\/target-*\/libevent-*\nmake package\/libevent2\/download V=s\nmake package\/libevent2\/compile V=s\n<\/code><\/pre>\n<p>\u786e\u8ba4 .pc \u6587\u4ef6\uff1a<\/p>\n<pre><code class=\"language-bash line-numbers\">cat staging_dir\/target-*\/usr\/lib\/pkgconfig\/libevent.pc | grep Version\n\u5e94\u8be5\u8f93\u51fa\uff1aVersion: 2.1.10\n<\/code><\/pre>\n<h3>\u901a\u8fc7 OpenWrt \u7684 feed \u7cfb\u7edf\u5c06 ffmpeg \u66f4\u65b0\u5230 4.4 \u6216\u66f4\u9ad8\u7248\u672c\uff0c\u624b\u52a8\u5c06\u65b0\u7248 FFmpeg \u6dfb\u52a0\u5230 feed \u4e2d\uff08\u63a8\u8350\uff09<\/h3>\n<p>\u4f60\u53ef\u4ee5\u4ece\u8f83\u65b0 OpenWrt\uff08\u5982 22.03\uff09\u5206\u652f\u4e2d\u590d\u5236 ffmpeg 4.4 \u7684 Makefile \u548c\u76f8\u5173\u6587\u4ef6\uff0c\u66ff\u6362\u4f60\u672c\u5730 feed \u4e2d\u7684\u65e7\u7248\u672c\uff1a<\/p>\n<pre><code class=\"language-bash line-numbers\">\u6b65\u9aa4\u5982\u4e0b\uff1a\n\u7b2c\u4e00\u6b65\uff1a\u5907\u4efd\u5f53\u524d\u65e7\u7248\u672c\nmv feeds\/packages\/multimedia\/ffmpeg feeds\/packages\/multimedia\/ffmpeg.old\n\u7b2c\u4e8c\u6b65\uff1a\u4ece GitHub \u4e0a\u62c9\u53d6\u65b0\u7248\u672c\u7684 feed\n\u4ee5 OpenWrt 22.03 \u5206\u652f\uff08ffmpeg 4.4\uff09\u4e3a\u4f8b\uff1a\n\ngit clone https:\/\/github.com\/openwrt\/packages.git -b openwrt-22.03 openwrt-packages-22.03\n\ngit checkout a68e9db8d4c3a29c86261cd6bb1933fab1cc3a35\n\ncommit a68e9db8d4c3a29c86261cd6bb1933fab1cc3a35 (HEAD)\nAuthor: Josef Schlehofer &lt;pepe.schlehofer@gmail.com&gt;\nDate:   Sat Jan 29 11:34:56 2022 +0100\n\nffmpeg: update to version 4.3.3\n\nSigned-off-by: Josef Schlehofer &lt;pepe.schlehofer@gmail.com&gt;\n\n\ncp -r openwrt-packages-22.03\/multimedia\/ffmpeg feeds\/packages\/multimedia\/\n\n\u4f60\u4e5f\u53ef\u4ee5\u53ea\u590d\u5236\u5fc5\u8981\u6587\u4ef6\uff1a\n\ncp openwrt-packages-22.03\/multimedia\/ffmpeg\/Makefile feeds\/packages\/multimedia\/ffmpeg\/\ncp -r openwrt-packages-22.03\/multimedia\/ffmpeg\/patches feeds\/packages\/multimedia\/ffmpeg\/\ncp -r openwrt-packages-22.03\/multimedia\/ffmpeg\/files feeds\/packages\/multimedia\/ffmpeg\/\n\n\u7b2c\u4e09\u6b65\uff1a\u66f4\u65b0 feed \u548c make\n.\/scripts\/feeds update -a\n.\/scripts\/feeds install -a\nmake menuconfig   # \u786e\u4fdd libffmpeg-full \u88ab\u9009\u4e2d\nmake package\/ffmpeg\/clean\nmake package\/ffmpeg\/compile V=s\n<\/code><\/pre>\n<h3>libavutil\/libm.h<\/h3>\n<pre><code class=\"language-bash line-numbers\">+\/* Disable MIPS optimized libm due to toolchain incompatibility *\/\n+#if 0\n+#if HAVE_MIPSFPU &amp;&amp; HAVE_INLINE_ASM\n+#include \"libavutil\/mips\/libm_mips.h\"\n+#endif\n+#endif\n<\/code><\/pre>\n<h3>\u66f4\u65b0libcurl<\/h3>\n<pre><code class=\"language-bash line-numbers\">git clone https:\/\/github.com\/openwrt\/packages.git -b openwrt-22.03 openwrt-packages-22.03\ngit checkout a68e9db8d4c3a29c86261cd6bb1933fab1cc3a35\n\n\u628apackage\u4e0b\u9762\u7684curl\u6587\u4ef6\u590d\u5236\u5230openwrt 15.05\u90a3\u8fb9\uff0c\u4fee\u6539makefile\u53d6\u6d88\u5bf9ssl\u7684\u652f\u6301\nmake package\/curl\/clean\nmake package\/curl\/compile V=s\n<\/code><\/pre>\n<h3>patch\u6587\u4ef6<\/h3>\n<pre><code class=\"language-c line-numbers\">fast_copy(int fd_dst, int fd_src)\n{\n  \/\/ Here we use kernel-space copying for performance reasons\n#if defined(__APPLE__)\n  return fcopyfile(fd_src, fd_dst, 0, COPYFILE_ALL);\n#else\n  struct stat fileinfo = { 0 };\n  ssize_t bytes_copied;\n\n  fstat(fd_src, &amp;fileinfo);\n  bytes_copied = copy_file_range(fd_src, NULL, fd_dst, NULL, fileinfo.st_size, 0);\n  if (bytes_copied &lt; 0 || bytes_copied != fileinfo.st_size)\n    return -1;\n\n  return 0;\n  #endif\n}\n\n<\/code><\/pre>\n<pre><code class=\"language-bash line-numbers\">outputs\/airplay.c: In function 'chacha_open':\noutputs\/airplay.c:619:29: error: 'GCRY_CIPHER_CHACHA20' undeclared (first use in this function)\n   if (gcry_cipher_open(&amp;hd, GCRY_CIPHER_CHACHA20, GCRY_CIPHER_MODE_POLY1305, 0) != GPG_ERR_NO_ERROR)\n                             ^\noutputs\/airplay.c:619:29: note: each undeclared identifier is reported only once for each function it appears in\noutputs\/airplay.c:619:51: error: 'GCRY_CIPHER_MODE_POLY1305' undeclared (first use in this function)\n   if (gcry_cipher_open(&amp;hd, GCRY_CIPHER_CHACHA20, GCRY_CIPHER_MODE_POLY1305, 0) != GPG_ERR_NO_ERROR)\n                                                   ^\nmake[7]: *** [outputs\/airplay.o] Error 1\n<\/code><\/pre>\n<pre><code class=\"language-bash line-numbers\">\u89e3\u51b3\u65b9\u6848\u4e00\uff1a\u5347\u7ea7 libgcrypt\n\u627e\u5230\u4f60 OpenWrt \u6e90\u7801\u91cc\u7684 package\/feeds\/packages\/libgcrypt\/Makefile\n\u628a\u7248\u672c\u53f7\u6539\u4e3a 1.8.x \u6216 1.9.x\uff0c\u6bd4\u5982\uff1a\nPKG_VERSION:=1.8.8\nPKG_SOURCE:=libgcrypt-<span class=\"katex math inline\">(PKG_VERSION).tar.gz\nPKG_SOURCE_URL:=https:\/\/gnupg.org\/ftp\/gcrypt\/libgcrypt\/\nPKG_VERSION:=1.8.8\nPKG_SOURCE:=libgcrypt-<\/span>(PKG_VERSION).tar.gz\nPKG_SOURCE_URL:=https:\/\/gnupg.org\/ftp\/gcrypt\/libgcrypt\/\nPKG_MD5SUM:=4ada2c473f9ae5aff41dd9d08a4a7727\n\n\u5220\u9664\u65e7\u7248\u672c\u7684 build_dir\uff1a\nmake package\/libgcrypt\/clean\n\u91cd\u65b0\u7f16\u8bd1 libgcrypt\uff1a\nmake package\/libgcrypt\/compile V=s\n\n\u786e\u8ba4 staging_dir\/target-*\/usr\/include\/gcrypt.h \u4e2d\u6709\u8fd9\u4e24\u4e2a\u5b8f\uff1a\n#define GCRY_CIPHER_CHACHA20 ...\n#define GCRY_CIPHER_MODE_POLY1305 ...\n\u518d\u7f16\u8bd1 owntone\u3002\n<\/code><\/pre>\n<pre><code class=\"language-bash line-numbers\">checking for GPG Error - version &gt;= 1.25... no\nconfigure: error: libgpg-error is needed.\n                See ftp:\/\/ftp.gnupg.org\/gcrypt\/libgpg-error\/ .\nmake[3]: *** [\/root\/wireless-music\/build_dir\/target-mipsel_24kec+dsp_uClibc-0.9.33.2\/libgcrypt-1.8.8\/.configured_yyyyyyyy] Error 1\nmake[3]: Leaving directory `\/root\/wireless-music\/feeds\/packages\/libs\/libgcrypt'\nmake[2]: *** [package\/feeds\/packages\/libgcrypt\/compile] Error 2\n\n\n.\/package\/feeds\/packages\/libgpg-error\n\u6253\u5f00makefile\n\nPKG_NAME:=libgpg-error\nPKG_VERSION:=1.43\nPKG_RELEASE:=1\n\nPKG_SOURCE:=<span class=\"katex math inline\">(PKG_NAME)-<\/span>(PKG_VERSION).tar.gz\nPKG_SOURCE_URL:=https:\/\/www.gnupg.org\/ftp\/gcrypt\/libgpg-error\nPKG_MD5SUM:=38be4a4b038c0f36c101d81d95cd3ada\n\n\n  CC       outputs\/alsa.o\noutputs\/alsa.c: In function 'pcm_configure':\noutputs\/alsa.c:634:3: warning: implicit declaration of function 'snd_pcm_sw_params_set_tstamp_type' [-Wimplicit-function-declaration]\n   ret = snd_pcm_sw_params_set_tstamp_type(hdl, sw_params, SND_PCM_TSTAMP_TYPE_MONOTONIC);\n   ^\noutputs\/alsa.c:634:59: error: 'SND_PCM_TSTAMP_TYPE_MONOTONIC' undeclared (first use in this function)\n   ret = snd_pcm_sw_params_set_tstamp_type(hdl, sw_params, SND_PCM_TSTAMP_TYPE_MONOTONIC);\n                                                           ^\noutputs\/alsa.c:634:59: note: each undeclared identifier is reported only once for each function it appears in\nmake[7]: *** [outputs\/alsa.o] Error 1\nmake[7]: Leaving directory `\/root\/wireless-music\/build_dir\/target-mipsel_24kec+dsp_uClibc-0.9.33.2\/owntone-28.12\/src'\nmake[6]: *** [all] Error 2\nmake[6]: Leaving directory `\/root\/wireless-music\/build_dir\/target-mipsel_24kec+dsp_uClibc-0.9.33.2\/owntone-28.12\/src'\nmake[5]: *** [all-recursive] Error 1\nmake[5]: Leaving directory `\/root\/wireless-music\/build_dir\/target-mipsel_24kec+dsp_uClibc-0.9.33.2\/owntone-28.12'\nmake[4]: *** [all] Error 2\nmake[4]: Leaving directory `\/root\/wireless-music\/build_dir\/target-mipsel_24kec+dsp_uClibc-0.9.33.2\/owntone-28.12'\nmake[3]: *** [\/root\/wireless-music\/build_dir\/target-mipsel_24kec+dsp_uClibc-0.9.33.2\/owntone-28.12\/.built] Error 2\nmake[3]: Leaving directory `\/root\/wireless-music\/package\/owntone'\nmake[2]: *** [package\/owntone\/compile] Error 2\nmake[2]: Leaving directory `\/root\/wireless-music'\nmake[1]: *** [\/root\/wireless-music\/staging_dir\/target-mipsel_24kec+dsp_uClibc-0.9.33.2\/stamp\/.package_compile] Error 2\nmake[1]: Leaving directory `\/root\/wireless-music'\nmake: *** [world] Error 2\n\nfeeds\/packages\/libs\/alsa-lib\/Makefile\n\nPKG_NAME:=alsa-lib\nPKG_VERSION:=1.1.9\nPKG_RELEASE:=1\n\nPKG_SOURCE:=<span class=\"katex math inline\">(PKG_NAME)-<\/span>(PKG_VERSION).tar.bz2\nPKG_SOURCE_URL:=ftp:\/\/ftp.alsa-project.org\/pub\/lib\/ \\\n    http:\/\/alsa.cybermirror.org\/lib\/\nPKG_MD5SUM:=e6d429dbdcfaa0f034d907fa6dc3735e\nPKG_MAINTAINER:=Ted Hess &lt;thess@kitschensync.net&gt;\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u5728centos+openwrt 15.05.01\u4e0b\u7f16\u8bd1owntone Openwrt\u4e2d\u5982\u4f55\u5355\u72ec\u7f16\u8bd1\u67d0\u4e00\u4e2a\u6a21\u5757\uff1a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22],"tags":[],"class_list":["post-3180","post","type-post","status-publish","format-standard","hentry","category-plana"],"_links":{"self":[{"href":"http:\/\/www.51cos.com\/index.php?rest_route=\/wp\/v2\/posts\/3180","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.51cos.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.51cos.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.51cos.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.51cos.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3180"}],"version-history":[{"count":6,"href":"http:\/\/www.51cos.com\/index.php?rest_route=\/wp\/v2\/posts\/3180\/revisions"}],"predecessor-version":[{"id":3196,"href":"http:\/\/www.51cos.com\/index.php?rest_route=\/wp\/v2\/posts\/3180\/revisions\/3196"}],"wp:attachment":[{"href":"http:\/\/www.51cos.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3180"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.51cos.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3180"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.51cos.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3180"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}