{"id":347294,"date":"2023-03-26T15:00:48","date_gmt":"2023-03-26T15:00:48","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=347294"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=347294","title":{"rendered":"<span>\u0421\u0431\u043e\u0440\u043a\u0430 v4l-utils. \u0421\u0438\u0441\u0442\u0435\u043c\u0430 \u0441\u0431\u043e\u0440\u043a\u0438 meson<\/span>"},"content":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041d\u0435\u0434\u0430\u0432\u043d\u043e \u0434\u043b\u044f <a href=\"https:\/\/git.linuxtv.org\/v4l-utils.git\" rel=\"noopener noreferrer nofollow\">\u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u043e\u0433\u043e \u043f\u0430\u043a\u0435\u0442\u0430<\/a> \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043c\u0443\u043b\u044c\u0442\u0438\u043c\u0435\u0434\u0438\u0430 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438 (\u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c, \u0441 \u043a\u0430\u043c\u0435\u0440\u0430\u043c\u0438) \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u0431\u043e\u0440\u043a\u0438 \u0447\u0435\u0440\u0435\u0437 meson. \u0412 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u0430\u043a \u044d\u0442\u043e \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0438\u0442\u044c. \u0421\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0431\u0443\u0434\u0435\u043c \u0432 Ubuntu 22, \u043d\u043e \u043f\u043e\u0434\u043e\u0439\u0434\u0451\u0442 \u0438 \u043b\u044e\u0431\u043e\u0439 \u0434\u0440\u0443\u0433\u043e\u0439 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0439 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0439 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432.<\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0431\u0430\u0437\u043e\u0432\u044b\u0439 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 v4l-utilsFromGit, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0432 \u0441\u0435\u0431\u0435 \u0442\u0440\u0438 \u043f\u043e\u0434\u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430: \u043a\u0430\u0442\u0430\u043b\u043e\u0433 v4l-utils \u0441 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u043c\u0438 \u043a\u043e\u0434\u0430\u043c\u0438, \u043a\u0430\u0442\u0430\u043b\u043e\u0433 build \u0441 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u044b\u043c\u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043c\u0438 \u0441\u0431\u043e\u0440\u043a\u0438 \u0438 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 build_artifacts \u0441 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043c\u0438 \u0441\u0431\u043e\u0440\u043a\u0438 (\u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u043c\u0438 \u0444\u0430\u0439\u043b\u0430\u043c\u0438).<\/p>\n<pre><code class=\"bash\">mkdir ~\/v4l-utilsFromGit &amp;&amp; cd ~\/v4l-utilsFromGit  mkdir build build_artifacts  git clone https:\/\/git.linuxtv.org\/v4l-utils.git v4l-utils<\/code><\/pre>\n<p> \u041f\u0440\u043e\u0432\u0435\u0434\u0435\u043c \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e. \u0412\u043e \u0432\u0440\u0435\u043c\u044f \u044d\u0442\u043e\u0433\u043e \u0448\u0430\u0433\u0430 meson \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u043d\u0430\u0448\u0435\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u0443\u0434\u043e\u0441\u0442\u043e\u0432\u0435\u0440\u0438\u0442\u0441\u044f \u0447\u0442\u043e \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u043a\u0438 \u0435\u0441\u0442\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430 (\u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u0438 \u0442.\u043f.)<br \/> <code>meson setup build\/ v4l-utils\/<\/code><\/p>\n<details class=\"spoiler\">\n<summary>\u0412\u044b\u0432\u043e\u0434 meson setup \u043d\u0430 Ubuntu 22 server<\/summary>\n<div class=\"spoiler__content\">\n<p>$ meson setup build\/ v4l-utils\/<br \/> The Meson build system<br \/> Version: 0.63.2<br \/> Source dir: \/home\/q\/v4l-utilsFromGit\/v4l-utils<br \/> Build dir: \/home\/q\/v4l-utilsFromGit\/build<br \/> Build type: native build<br \/> Project name: v4l-utils<br \/> Project version: 1.25.0<br \/> C compiler for the host machine: cc (gcc 12.2.0 &#171;cc (Ubuntu 12.2.0-3ubuntu1) 12.2.0&#187;)<br \/> C linker for the host machine: cc ld.bfd 2.39<br \/> C++ compiler for the host machine: c++ (gcc 12.2.0 &#171;c++ (Ubuntu 12.2.0-3ubuntu1) 12.2.0&#187;)<br \/> C++ linker for the host machine: c++ ld.bfd 2.39<br \/> Host machine cpu family: x86_64<br \/> Host machine cpu: x86_64<br \/> Compiler for C supports link arguments -m32: NO<br \/> Compiler for C supports arguments -fvisibility=hidden: YES<br \/> Compiler for C supports function attribute visibility:default: YES<br \/> Program bash found: YES (\/usr\/bin\/bash)<br \/> Program clang found: NO<br \/> Program doxygen found: NO<br \/> Program grep found: YES (\/usr\/bin\/grep)<br \/> Program perl found: YES (\/usr\/bin\/perl)<br \/> Did not find pkg-config by name &#8216;pkg-config&#8217;<br \/> Found Pkg-config: NO<br \/> Did not find CMake &#8216;cmake&#8217;<br \/> Found CMake: NO<br \/> Run-time dependency alsa found: NO (tried pkgconfig and cmake)<br \/> Run-time dependency gl found: NO (tried pkgconfig and system)<br \/> Run-time dependency glu found: NO (tried pkgconfig and cmake)<br \/> Run-time dependency json-c found: NO (tried pkgconfig and cmake)<br \/> Library dl found: YES<br \/> Library elf found: NO<br \/> Library m found: YES<br \/> Library rt found: YES<br \/> qmake found: NO need [&#8216;>= 5&#8217;, &#8216;&lt; 6&#8217;]<br \/> Run-time dependency qt5 (modules: Core, Gui, OpenGL, Widgets) found: NO (tried pkgconfig and config-tool)<br \/> Run-time dependency libbpf found: NO (tried pkgconfig and cmake)<br \/> sdl2-config found: NO<br \/> Run-time dependency sdl2 found: NO (tried pkgconfig and config-tool)<br \/> Has header &#171;SDL2\/SDL.h&#187; : NO<br \/> Run-time dependency sdl2_image found: NO (tried pkgconfig and cmake)<br \/> Has header &#171;SDL2\/SDL_image.h&#187; : NO<br \/> Run-time dependency threads found: YES<br \/> Run-time dependency x11 found: NO (tried pkgconfig and cmake)<br \/> Run-time dependency xmlrpc found: NO (tried pkgconfig and cmake)<br \/> Checking for function &#171;fork&#187; : YES<br \/> Has header &#171;linux\/i2c-dev.h&#187; : YES<br \/> Checking for function &#171;klogctl&#187; : YES<br \/> Checking for function &#171;secure_getenv&#187; : YES<br \/> Checking for function &#171;__secure_getenv&#187; : NO<br \/> Has header &#171;sys\/klog.h&#187; : YES<br \/> Header &#171;execinfo.h&#187; has symbol &#171;backtrace&#187; : YES<br \/> Checking for function &#171;argp_parse&#187; : YES<br \/> Checking for function &#171;strerrorname_np&#187; : YES<br \/> Run-time dependency iconv found: YES<br \/> Has header &#171;gconv.h&#187; : YES<br \/> Library JIS found: YES<br \/> Library JISX0213 found: YES<br \/> Run-time dependency libjpeg found: NO (tried pkgconfig and cmake)<br \/> Run-time dependency systemd found: NO (tried pkgconfig and cmake)<br \/> Run-time dependency libudev found: NO (tried pkgconfig and cmake)<br \/> Run-time dependency udev found: NO (tried pkgconfig and cmake)<br \/> Program git found: YES (\/usr\/bin\/git)<br \/> Program msgfmt found: NO<br \/> v4l-utils\/libdvbv5-po\/meson.build:2: WARNING: Gettext not found, all translation (po) targets will be ignored.<br \/> v4l-utils\/v4l-utils-po\/meson.build:2: WARNING: Gettext not found, all translation (po) targets will be ignored.<br \/> Configuring cec-gen-dummy.stamp with command<br \/> Configuring config.h using configuration<br \/> Configuring cec-ctl.1 using configuration<br \/> Configuring cec-follower.1 using configuration<br \/> Configuring ir-ctl.1 using configuration<br \/> Configuring ir-keytable.1 using configuration<br \/> Configuring rc_keymap.5 using configuration<br \/> Configuring v4l2-ctl.1 using configuration<br \/> Configuring cec-compliance.1 using configuration<br \/> Configuring v4l2-compliance.1 using configuration<br \/> Configuring v4l-utils.spec using configuration<br \/> Build targets in project: 42<br \/> NOTICE: Future-deprecated features used:<\/p>\n<ul>\n<li>\n<p>0.60.0: {&#8216;install_subdir with empty directory&#8217;}<\/p>\n<\/li>\n<\/ul>\n<p>v4l-utils 1.25.0<\/p>\n<p>Dependencies<br \/> ALSA              : NO<br \/> GL                : NO<br \/> GLU               : NO<br \/> JSON-C            : NO<br \/> Qt5               : NO<br \/> without QtGL<br \/> SDL               : NO<br \/> X11               : NO<br \/> gconv             : YES<br \/> iconv             : YES<br \/> libjpeg           : NO<br \/> libudev           : NO<br \/> threads           : YES<\/p>\n<p>Directories<br \/> udevdir           : \/lib\/udev<\/p>\n<p>Libraries<br \/> libdvbv5          : NO<br \/> v4l-plugins       : YES<br \/> v4l-wrappers      : YES<\/p>\n<p>Applications<br \/> BPF IR decoders   : NO<br \/> qv4l2             : NO<br \/> qvidcap           : NO<br \/> v4l-utils         : YES<br \/> v4l2-compliance   : YES<br \/> with libv4l<br \/> v4l2-compliance-32: NO<br \/> v4l2-ctl          : YES<br \/> with libv4l<br \/> v4l2-ctl-32       : NO<br \/> v4l2-tracer       : NO<\/p>\n<p>Found ninja-1.11.0 at \/usr\/bin\/ninja<\/p>\n<\/div>\n<\/details>\n<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u0442\u0435\u043a\u0443\u0449\u0443\u044e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e (\u043a\u0430\u043a\u0438\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0438 \u043a\u0430\u043a\u0438\u0435 \u0438\u0437 \u043d\u0438\u0445 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u044b)<br \/> <code>meson configure build\/<\/code><\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0437\u0430\u0434\u0430\u0434\u0438\u043c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u043f\u0446\u0438\u0438. \u0415\u0441\u043b\u0438 \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c shared \u043a\u0430\u043a \u043f\u043e\u0434\u0440\u0430\u0437\u0443\u043c\u0435\u0432\u0430\u0435\u0442 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0439 <a href=\"https:\/\/git.linuxtv.org\/v4l-utils.git\/tree\/INSTALL.md\" rel=\"noopener noreferrer nofollow\">INSTALL.md<\/a>, \u0442\u043e \u043f\u0440\u0438 \u043f\u043e\u043f\u044b\u0442\u043a\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432\u044b\u043b\u0435\u0442\u0438\u0442 \u043e\u0448\u0438\u0431\u043a\u0430<br \/> <em>v4l2-ctl: error while loading shared libraries: libv4l2.so.0: cannot open shared object file: No such file or directory<\/em><br \/> \u041d\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445 \u043a\u0430\u043a \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0435\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0441 \u043e\u043f\u0446\u0438\u0435\u0439 shared.<\/p>\n<p>\u0410 \u043f\u043e\u043a\u0430 \u0447\u0442\u043e \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u043c \u043d\u0430 static \u0447\u0442\u043e\u0431\u044b \u0432\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e.<br \/> <code>meson configure build\/ -Ddefault_library=static<\/code><\/p>\n<p>\u0412\u043d\u043e\u0432\u044c \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u0442\u0435\u043a\u0443\u0449\u0443\u044e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e, \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 shared \u043d\u0430 static.<br \/> <code>meson configure build\/<\/code><\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u0441\u0431\u043e\u0440\u043a\u0443. \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0441\u0431\u043e\u0440\u043a\u0438 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043c\u0435\u0449\u0451\u043d \u043f\u043e \u043f\u0443\u0442\u0438 destdir.<br \/> <code>meson install --destdir ..\/build_artifacts\/ -C build\/<\/code><\/p>\n<p>\u041c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0447\u0442\u043e \u0443\u0442\u0438\u043b\u0438\u0442\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f<br \/> <code>~\/v4l-utilsFromGit\/build_artifacts\/usr\/local\/bin\/v4l2-ctl --help<\/code><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/b06\/4e7\/914\/b064e7914f957788839d6b8e35a15dcd.png\" alt=\"\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u044b\u0432\u043e\u0434\u0430\" title=\"\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u044b\u0432\u043e\u0434\u0430\" width=\"808\" height=\"177\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/b06\/4e7\/914\/b064e7914f957788839d6b8e35a15dcd.png\"\/><\/p>\n<div><figcaption>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u044b\u0432\u043e\u0434\u0430<\/figcaption><\/div>\n<\/figure>\n<\/div>\n<\/div>\n<\/div>\n<p> <!----> <!----><\/div>\n<p> <!----> <!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/724818\/\"> https:\/\/habr.com\/ru\/post\/724818\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041d\u0435\u0434\u0430\u0432\u043d\u043e \u0434\u043b\u044f <a href=\"https:\/\/git.linuxtv.org\/v4l-utils.git\" rel=\"noopener noreferrer nofollow\">\u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u043e\u0433\u043e \u043f\u0430\u043a\u0435\u0442\u0430<\/a> \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043c\u0443\u043b\u044c\u0442\u0438\u043c\u0435\u0434\u0438\u0430 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438 (\u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c, \u0441 \u043a\u0430\u043c\u0435\u0440\u0430\u043c\u0438) \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u0431\u043e\u0440\u043a\u0438 \u0447\u0435\u0440\u0435\u0437 meson. \u0412 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u0430\u043a \u044d\u0442\u043e \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0438\u0442\u044c. \u0421\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0431\u0443\u0434\u0435\u043c \u0432 Ubuntu 22, \u043d\u043e \u043f\u043e\u0434\u043e\u0439\u0434\u0451\u0442 \u0438 \u043b\u044e\u0431\u043e\u0439 \u0434\u0440\u0443\u0433\u043e\u0439 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0439 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0439 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432.<\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0431\u0430\u0437\u043e\u0432\u044b\u0439 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 v4l-utilsFromGit, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0432 \u0441\u0435\u0431\u0435 \u0442\u0440\u0438 \u043f\u043e\u0434\u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430: \u043a\u0430\u0442\u0430\u043b\u043e\u0433 v4l-utils \u0441 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u043c\u0438 \u043a\u043e\u0434\u0430\u043c\u0438, \u043a\u0430\u0442\u0430\u043b\u043e\u0433 build \u0441 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u044b\u043c\u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043c\u0438 \u0441\u0431\u043e\u0440\u043a\u0438 \u0438 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 build_artifacts \u0441 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043c\u0438 \u0441\u0431\u043e\u0440\u043a\u0438 (\u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u043c\u0438 \u0444\u0430\u0439\u043b\u0430\u043c\u0438).<\/p>\n<pre><code class=\"bash\">mkdir ~\/v4l-utilsFromGit &amp;&amp; cd ~\/v4l-utilsFromGit  mkdir build build_artifacts  git clone https:\/\/git.linuxtv.org\/v4l-utils.git v4l-utils<\/code><\/pre>\n<p> \u041f\u0440\u043e\u0432\u0435\u0434\u0435\u043c \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e. \u0412\u043e \u0432\u0440\u0435\u043c\u044f \u044d\u0442\u043e\u0433\u043e \u0448\u0430\u0433\u0430 meson \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u043d\u0430\u0448\u0435\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u0443\u0434\u043e\u0441\u0442\u043e\u0432\u0435\u0440\u0438\u0442\u0441\u044f \u0447\u0442\u043e \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u043a\u0438 \u0435\u0441\u0442\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430 (\u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u0438 \u0442.\u043f.)<br \/> <code>meson setup build\/ v4l-utils\/<\/code><\/p>\n<details class=\"spoiler\">\n<summary>\u0412\u044b\u0432\u043e\u0434 meson setup \u043d\u0430 Ubuntu 22 server<\/summary>\n<div class=\"spoiler__content\">\n<p>$ meson setup build\/ v4l-utils\/<br \/> The Meson build system<br \/> Version: 0.63.2<br \/> Source dir: \/home\/q\/v4l-utilsFromGit\/v4l-utils<br \/> Build dir: \/home\/q\/v4l-utilsFromGit\/build<br \/> Build type: native build<br \/> Project name: v4l-utils<br \/> Project version: 1.25.0<br \/> C compiler for the host machine: cc (gcc 12.2.0 &#171;cc (Ubuntu 12.2.0-3ubuntu1) 12.2.0&#187;)<br \/> C linker for the host machine: cc ld.bfd 2.39<br \/> C++ compiler for the host machine: c++ (gcc 12.2.0 &#171;c++ (Ubuntu 12.2.0-3ubuntu1) 12.2.0&#187;)<br \/> C++ linker for the host machine: c++ ld.bfd 2.39<br \/> Host machine cpu family: x86_64<br \/> Host machine cpu: x86_64<br \/> Compiler for C supports link arguments -m32: NO<br \/> Compiler for C supports arguments -fvisibility=hidden: YES<br \/> Compiler for C supports function attribute visibility:default: YES<br \/> Program bash found: YES (\/usr\/bin\/bash)<br \/> Program clang found: NO<br \/> Program doxygen found: NO<br \/> Program grep found: YES (\/usr\/bin\/grep)<br \/> Program perl found: YES (\/usr\/bin\/perl)<br \/> Did not find pkg-config by name &#8216;pkg-config&#8217;<br \/> Found Pkg-config: NO<br \/> Did not find CMake &#8216;cmake&#8217;<br \/> Found CMake: NO<br \/> Run-time dependency alsa found: NO (tried pkgconfig and cmake)<br \/> Run-time dependency gl found: NO (tried pkgconfig and system)<br \/> Run-time dependency glu found: NO (tried pkgconfig and cmake)<br \/> Run-time dependency json-c found: NO (tried pkgconfig and cmake)<br \/> Library dl found: YES<br \/> Library elf found: NO<br \/> Library m found: YES<br \/> Library rt found: YES<br \/> qmake found: NO need [&#8216;>= 5&#8217;, &#8216;&lt; 6&#8217;]<br \/> Run-time dependency qt5 (modules: Core, Gui, OpenGL, Widgets) found: NO (tried pkgconfig and config-tool)<br \/> Run-time dependency libbpf found: NO (tried pkgconfig and cmake)<br \/> sdl2-config found: NO<br \/> Run-time dependency sdl2 found: NO (tried pkgconfig and config-tool)<br \/> Has header &#171;SDL2\/SDL.h&#187; : NO<br \/> Run-time dependency sdl2_image found: NO (tried pkgconfig and cmake)<br \/> Has header &#171;SDL2\/SDL_image.h&#187; : NO<br \/> Run-time dependency threads found: YES<br \/> Run-time dependency x11 found: NO (tried pkgconfig and cmake)<br \/> Run-time dependency xmlrpc found: NO (tried pkgconfig and cmake)<br \/> Checking for function &#171;fork&#187; : YES<br \/> Has header &#171;linux\/i2c-dev.h&#187; : YES<br \/> Checking for function &#171;klogctl&#187; : YES<br \/> Checking for function &#171;secure_getenv&#187; : YES<br \/> Checking for function &#171;__secure_getenv&#187; : NO<br \/> Has header &#171;sys\/klog.h&#187; : YES<br \/> Header &#171;execinfo.h&#187; has symbol &#171;backtrace&#187; : YES<br \/> Checking for function &#171;argp_parse&#187; : YES<br \/> Checking for function &#171;strerrorname_np&#187; : YES<br \/> Run-time dependency iconv found: YES<br \/> Has header &#171;gconv.h&#187; : YES<br \/> Library JIS found: YES<br \/> Library JISX0213 found: YES<br \/> Run-time dependency libjpeg found: NO (tried pkgconfig and cmake)<br \/> Run-time dependency systemd found: NO (tried pkgconfig and cmake)<br \/> Run-time dependency libudev found: NO (tried pkgconfig and cmake)<br \/> Run-time dependency udev found: NO (tried pkgconfig and cmake)<br \/> Program git found: YES (\/usr\/bin\/git)<br \/> Program msgfmt found: NO<br \/> v4l-utils\/libdvbv5-po\/meson.build:2: WARNING: Gettext not found, all translation (po) targets will be ignored.<br \/> v4l-utils\/v4l-utils-po\/meson.build:2: WARNING: Gettext not found, all translation (po) targets will be ignored.<br \/> Configuring cec-gen-dummy.stamp with command<br \/> Configuring config.h using configuration<br \/> Configuring cec-ctl.1 using configuration<br \/> Configuring cec-follower.1 using configuration<br \/> Configuring ir-ctl.1 using configuration<br \/> Configuring ir-keytable.1 using configuration<br \/> Configuring rc_keymap.5 using configuration<br \/> Configuring v4l2-ctl.1 using configuration<br \/> Configuring cec-compliance.1 using configuration<br \/> Configuring v4l2-compliance.1 using configuration<br \/> Configuring v4l-utils.spec using configuration<br \/> Build targets in project: 42<br \/> NOTICE: Future-deprecated features used:<\/p>\n<ul>\n<li>\n<p>0.60.0: {&#8216;install_subdir with empty directory&#8217;}<\/p>\n<\/li>\n<\/ul>\n<p>v4l-utils 1.25.0<\/p>\n<p>Dependencies<br \/> ALSA              : NO<br \/> GL                : NO<br \/> GLU               : NO<br \/> JSON-C            : NO<br \/> Qt5               : NO<br \/> without QtGL<br \/> SDL               : NO<br \/> X11               : NO<br \/> gconv             : YES<br \/> iconv             : YES<br \/> libjpeg           : NO<br \/> libudev           : NO<br \/> threads           : YES<\/p>\n<p>Directories<br \/> udevdir           : \/lib\/udev<\/p>\n<p>Libraries<br \/> libdvbv5          : NO<br \/> v4l-plugins       : YES<br \/> v4l-wrappers      : YES<\/p>\n<p>Applications<br \/> BPF IR decoders   : NO<br \/> qv4l2             : NO<br \/> qvidcap           : NO<br \/> v4l-utils         : YES<br \/> v4l2-compliance   : YES<br \/> with libv4l<br \/> v4l2-compliance-32: NO<br \/> v4l2-ctl          : YES<br \/> with libv4l<br \/> v4l2-ctl-32       : NO<br \/> v4l2-tracer       : NO<\/p>\n<p>Found ninja-1.11.0 at \/usr\/bin\/ninja<\/p>\n<\/div>\n<\/details>\n<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u0442\u0435\u043a\u0443\u0449\u0443\u044e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e (\u043a\u0430\u043a\u0438\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0438 \u043a\u0430\u043a\u0438\u0435 \u0438\u0437 \u043d\u0438\u0445 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u044b)<br \/> <code>meson configure build\/<\/code><\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0437\u0430\u0434\u0430\u0434\u0438\u043c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u043f\u0446\u0438\u0438. \u0415\u0441\u043b\u0438 \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c shared \u043a\u0430\u043a \u043f\u043e\u0434\u0440\u0430\u0437\u0443\u043c\u0435\u0432\u0430\u0435\u0442 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0439 <a href=\"https:\/\/git.linuxtv.org\/v4l-utils.git\/tree\/INSTALL.md\" rel=\"noopener noreferrer nofollow\">INSTALL.md<\/a>, \u0442\u043e \u043f\u0440\u0438 \u043f\u043e\u043f\u044b\u0442\u043a\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432\u044b\u043b\u0435\u0442\u0438\u0442 \u043e\u0448\u0438\u0431\u043a\u0430<br \/> <em>v4l2-ctl: error while loading shared libraries: libv4l2.so.0: cannot open shared object file: No such file or directory<\/em><br \/> \u041d\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445 \u043a\u0430\u043a \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0435\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0441 \u043e\u043f\u0446\u0438\u0435\u0439 shared.<\/p>\n<p>\u0410 \u043f\u043e\u043a\u0430 \u0447\u0442\u043e \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u043c \u043d\u0430 static \u0447\u0442\u043e\u0431\u044b \u0432\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e.<br \/> <code>meson configure build\/ -Ddefault_library=static<\/code><\/p>\n<p>\u0412\u043d\u043e\u0432\u044c \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u0442\u0435\u043a\u0443\u0449\u0443\u044e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e, \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 shared \u043d\u0430 static.<br \/> <code>meson configure build\/<\/code><\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u0441\u0431\u043e\u0440\u043a\u0443. \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0441\u0431\u043e\u0440\u043a\u0438 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043c\u0435\u0449\u0451\u043d \u043f\u043e \u043f\u0443\u0442\u0438 destdir.<br \/> <code>meson install --destdir ..\/build_artifacts\/ -C build\/<\/code><\/p>\n<p>\u041c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0447\u0442\u043e \u0443\u0442\u0438\u043b\u0438\u0442\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f<br \/> <code>~\/v4l-utilsFromGit\/build_artifacts\/usr\/local\/bin\/v4l2-ctl --help<\/code><\/p>\n<figure class=\"full-width\">\n<div><figcaption>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u044b\u0432\u043e\u0434\u0430<\/figcaption><\/div>\n<\/figure>\n<\/div>\n<\/div>\n<\/div>\n<p> <!----> <!----><\/div>\n<p> <!----> <!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/724818\/\"> https:\/\/habr.com\/ru\/post\/724818\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-347294","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/347294","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=347294"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/347294\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=347294"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=347294"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=347294"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}