繁体   English   中英

V4L-Utils 和 Vitis 2021.2 构建说明

[英]V4L-Utils & Vitis 2021.2 Build Instructions

我正在尝试使用说明构建 V4L-Utils

系统:

  • 葡萄 2021.2,
  • Ubuntu 20.04.4 LTS

设置:

~$ source /tools/Xilinx/Vivado/2021.2/settings64.sh
~$ source /home/max/petalinux/2021.2/settings.sh
~$ export INSTALL_PREFIX=/usr
~$ ./configure --prefix=$INSTALL_PREFIX --host=arm-linux-gnueabihf --without-jpeg --with-udevdir=$INSTALL_PREFIX/lib/udev
 
...
compile time options summary
============================
 
    Host OS                    : linux-gnueabihf
    X11                        : yes
    GL                         : yes
    glu                        : yes
    libelf             : no
    libjpeg                    : 
    libudev                    : yes
    pthread                    : yes
    QT version                 : none
    ALSA support               : yes
    SDL support            : no
 
    build dynamic libs         : yes
    build static libs          : yes
 
    gconv                      : no
 
    dynamic libv4l             : yes
    v4l_plugins                : yes
    v4l_wrappers               : yes
    libdvbv5                   : yes
    dvbv5-daemon               : yes
    v4lutils                   : yes
    qv4l2                      : no
    qvidcap                    : no
    v4l2-ctl uses libv4l       : yes
    v4l2-ctl-32                : no
    v4l2-compliance            : yes
    v4l2-compliance uses libv4l: yes
    v4l2-compliance-32         : no
    BPF IR Decoders:           : no
 
~$ make 
...
  CC       libdvbv5_la-dvb-dev.lo
dvb-dev.c:19:10: fatal error: libudev.h: No such file or directory
   19 | #include <libudev.h>
      |          ^~~~~~~~~~~
compilation terminated.

我可以确认我的系统上有/usr/include/libudev.h ...

该指令与 Xilinx 软件开发套件 (SDK) 相关联,因此问题是如果可能的话,如何使用 Vitis 构建 V4L-Utils。

我找到了解决方案

~$ export INSTALL_PREFIX=/tools/Xilinx/Vitis/2021.2/gnu/aarch32/lin/gcc-arm-linux-gnueabi/cortexa9t2hf-neon-xilinx-linux-gnueabi/usr
~$ ./configure --prefix=$INSTALL_PREFIX --host=arm-linux-gnueabihf --without-jpeg --with-udevdir=$INSTALL_PREFIX/lib/udev
~$ make -j16
~$ make install DESTDIR=$INSTALL_PREFIX

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM