简体   繁体   中英

V4L-Utils & Vitis 2021.2 Build Instructions

I'm trying to build V4L-Utils using the instructions

System:

  • Vitis 2021.2,
  • Ubuntu 20.04.4 LTS

Setup:

~$ 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.

I can confirm i have the /usr/include/libudev.h on my system...

The instruction is tied to the Xilinx Software Development Kit (SDK), so the question is how to build V4L-Utils with Vitis, if at all possible.

I found a solution

~$ 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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