{"id":10305,"date":"2023-08-25T19:06:12","date_gmt":"2023-08-25T11:06:12","guid":{"rendered":"http:\/\/xinyiworld.top\/wordpress_it\/?p=10305"},"modified":"2023-10-09T15:42:07","modified_gmt":"2023-10-09T07:42:07","slug":"v4l2-util%e4%ba%a4%e5%8f%89%e7%bc%96%e8%af%91","status":"publish","type":"post","link":"http:\/\/xinyiworld.top\/wordpress_it\/?p=10305","title":{"rendered":"v4l2-util\u4ea4\u53c9\u7f16\u8bd1"},"content":{"rendered":"<p>\u4e0b\u8f7d\u5730\u5740\uff1a<a href=\"https:\/\/www.linuxfromscratch.org\/blfs\/view\/svn\/multimedia\/v4l-utils.html\">https:\/\/www.linuxfromscratch.org\/blfs\/view\/svn\/multimedia\/v4l-utils.html<\/a><\/p>\n<h3>aarch64\u5e73\u53f0<\/h3>\n<p><a href=\"http:\/\/www.360doc.com\/content\/22\/0721\/18\/17302338_1040750239.shtml\">http:\/\/www.360doc.com\/content\/22\/0721\/18\/17302338_1040750239.shtml<\/a><\/p>\n<p><code>.\/configure --prefix=\/home\/xinyi\/code\/cplus\/libs\/v4l-utils-1.24.1\/build  --host=arm-linux  CC=\/usr\/bin\/aarch64-linux-gnu-gcc CXX=\/usr\/bin\/aarch64-linux-gnu-g++<\/code><\/p>\n<p>\u53ef\u80fd\u4f1a\u62a5\u9519\uff1a<\/p>\n<ul>\n<li>\u62a5\u95191\n<pre><code class=\"language-bash\">macro `AM_GNU_GETTEXT&#039; not found in library\nmacro `AM_GNU_GETTEXT_VERSION&#039; not found in library<\/code><\/pre>\n<\/li>\n<\/ul>\n<p>\u9700\u8981\u5b89\u88c5<code>sudo apt-get install gettext-base gettext liblocale-gettext-perl<\/code>\uff0c\u91cd\u65b0\u6267\u884c\u7f16\u8bd1\u6d41\u7a0b\u3002<\/p>\n<ul>\n<li>\u62a5\u95192<\/li>\n<\/ul>\n<pre><code class=\"language-bash\">config.status: creating libdvbv5-po\/Makefile\n  CXX      v4l2_dbg-v4l2-dbg.o\n  CXX      v4l2_dbg-v4l2-info.o\n  CXXLD    v4l2-dbg\nMaking all in v4l2-sysfs-path\n  CC       v4l2-sysfs-path.o\n\/bin\/bash: ..\/..\/build-aux\/depcomp: \u6ca1\u6709\u90a3\u4e2a\u6587\u4ef6\u6216\u76ee\u5f55\nmake[3]: *** [Makefile:529\uff1av4l2-sysfs-path.o] \u9519\u8bef 127\nmake[2]: *** [Makefile:490\uff1aall-recursive] \u9519\u8bef 1\nmake[1]: *** [Makefile:598\uff1aall-recursive] \u9519\u8bef 1\nmake: *** [Makefile:525\uff1aall] \u9519\u8bef 2\n<\/code><\/pre>\n<p>clean\u91cd\u65b0\u7f16\u8bd1\u5c31\u6ca1\u6709\u62a5\u8fd9\u4e2a\u9519\u8bef\uff0c\u518d\u7f16\u8bd1\u62a5\u95193.<\/p>\n<ul>\n<li>\u62a5\u95193<br \/>\n<code>\/usr\/lib\/gcc-cross\/aarch64-linux-gnu\/9\/..\/..\/..\/..\/aarch64-linux-gnu\/bin\/ld: cannot find -lX11<\/code><\/li>\n<\/ul>\n<p><strong>X11\u4ea4\u53c9\u7f16\u8bd1\uff1a<\/strong><br \/>\nX\u7cfb\u5217\u76f8\u5173\u7684\u5e93\u5728<a href=\"https:\/\/www.x.org\/releases\/individual\/lib\/\">https:\/\/www.x.org\/releases\/individual\/lib\/<\/a>\u4e0b\u90fd\u80fd\u627e\u5230<\/p>\n<p>X11\u7f16\u8bd1\u4f1a\u63d0\u793a\u627e\u4e0d\u5230XCB\uff0c\u4e8e\u662f\u4e0b\u8f7dXCB\u3002<\/p>\n<p><strong>xorg-macros\u5b89\u88c5\uff1a<\/strong><br \/>\n\u62a5\u9519\uff1aerror: must install xorg-macros 1.12 or later before running autoconf\/autogen<br \/>\n<code>apt-get install xutils-dev<\/code><\/p>\n<p><strong>XCB\u4ea4\u53c9\u7f16\u8bd1\uff1a<\/strong><br \/>\n1\uff09xcb\u7f16\u8bd1\u4f1a\u627e\u4e0d\u5230xcb-proto\uff0c\u4e8e\u662f\u5728\u4e0a\u9762\u7684\u7f51\u7ad9<a href=\"https:\/\/www.x.org\/releases\/individual\/xcb\/\">https:\/\/www.x.org\/releases\/individual\/xcb\/<\/a>\u4e0b\u8f7dxcb-proto\u6700\u65b0\u7248\u672c\u53ea\u67091.15\uff0c\u7f16\u8bd1\u62a5\u9519\u9700\u89811.16\u7248\u672c<a href=\"https:\/\/www.linuxfromscratch.org\/blfs\/view\/svn\/x\/xcb-proto.html\">https:\/\/www.linuxfromscratch.org\/blfs\/view\/svn\/x\/xcb-proto.html<\/a><br \/>\n2\uff09\u627e\u5230Xau,\u53bb<a href=\"https:\/\/www.x.org\/releases\/individual\/lib\/\">https:\/\/www.x.org\/releases\/individual\/lib\/<\/a>\u4e0b\u8f7d\u6700\u65b0\u76841.0.11\u7248\u672c\uff0c\u7f16\u8bd1\u6210\u529f\u3002<\/p>\n<h3>Android\u5e73\u53f0NDK\u7f16\u8bd1<\/h3>\n<p>\u56e0\u4e3a\u53ea\u7528\u5230v4l2-ctl\uff0c\u6240\u4ee5\u5c31\u53ea\u7f16\u8bd1<code>utils\/v4l2-ctl<\/code>\u6a21\u5757\u3002<br \/>\n1)\u6ce8\u91ca<code>epoll_ev.events = EPOLLPRI<\/code>\uff0c\u5426\u5219\u4f1a\u62a5\u9519<code>error: unknown type name &#039;__force&#039;<\/code><br \/>\n2)\u6ce8\u91caAndroid.mk\u5bf9libstlport\u7684\u4f9d\u8d56<br \/>\n3)v4l2-ctl.cpp\u4e0ev4l2-tpg-colors.c\u90fd\u6709main\u65b9\u6cd5\uff0c\u4f46\u662fndk\u7f16\u8bd1\u5e76\u6ca1\u6709\u62a5\u9519\u3002<br \/>\n\u67e5\u770bv4l2-tpg-colors.c\u6587\u4ef6\u4e2d\uff0c<code>#ifndef COMPILE_APP<\/code>\u5b83\u7684main\u65b9\u6cd5\u5c31\u4f1a\u6267\u884c\uff0c\u800c\u4e14\u6b63\u597d\u8eb2\u8fc7\u4e86\u68c0\u67e5\u3002<br \/>\n\u8981\u4e48\u5728\u6587\u4ef6\u4e2d\u5b9a\u4e49COMPILE_APP\u5b8f\uff0c\u8981\u4e48\u628amain\u65b9\u6cd5\u6ce8\u91ca\u6389\u3002<br \/>\n4)\u5b9a\u4e49Application.mk<br \/>\n\u7136\u540e\u5c31\u53ef\u6210\u529f\u7f16\u8bd1\u51faandroid\u5e73\u53f0\u7684v4l2-ctl\u5de5\u5177<\/p>\n<button class=\"simplefavorite-button\" data-postid=\"10305\" data-siteid=\"1\" data-groupid=\"1\" data-favoritecount=\"0\" style=\"\">\u6536\u85cf <i class=\"sf-icon-star-empty\"><\/i><\/button>","protected":false},"excerpt":{"rendered":"<p>\u4e0b\u8f7d\u5730\u5740\uff1ahttps:\/\/www.linuxfromscratch.org\/blfs\/view\/sv [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[832],"tags":[],"_links":{"self":[{"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/posts\/10305"}],"collection":[{"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10305"}],"version-history":[{"count":9,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/posts\/10305\/revisions"}],"predecessor-version":[{"id":10410,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/posts\/10305\/revisions\/10410"}],"wp:attachment":[{"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10305"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10305"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10305"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}